12016-08-15 Even Rouault <even.rouault at spatialys.com> 2 3 * tools/rgb2ycbcr.c: validate values of -v and -h parameters to 4 avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569) 5 62016-08-15 Even Rouault <even.rouault at spatialys.com> 7 8 * tools/tiffcrop.c: Fix out-of-bounds write in loadImage(). 9 From patch libtiff-CVE-2016-3991.patch from 10 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543) 11 122016-08-15 Even Rouault <even.rouault at spatialys.com> 13 14 * libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode 15 if more input samples are provided than expected by PixarLogSetupEncode. 16 Idea based on libtiff-CVE-2016-3990.patch from 17 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and 18 simpler check. (bugzilla #2544) 19 202016-08-15 Even Rouault <even.rouault at spatialys.com> 21 22 * tools/tiff2rgba.c: Fix integer overflow in size of allocated 23 buffer, when -b mode is enabled, that could result in out-of-bounds 24 write. Based initially on patch tiff-CVE-2016-3945.patch from 25 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for 26 invalid tests that rejected valid files. (bugzilla #2545) 27 282016-07-11 Even Rouault <even.rouault at spatialys.com> 29 30 * tools/tiffcrop.c: Avoid access outside of stack allocated array 31 on a tiled separate TIFF with more than 8 samples per pixel. 32 Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360 33 (CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559) 34 352016-07-10 Even Rouault <even.rouault at spatialys.com> 36 37 * libtiff/tif_read.c: Fix out-of-bounds read on 38 memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1() 39 when stripoffset is beyond tmsize_t max value (reported by 40 Mathias Svensson) 41 422016-07-10 Even Rouault <even.rouault at spatialys.com> 43 44 * tools/tiffdump.c: fix a few misaligned 64-bit reads warned 45 by -fsanitize 46 472016-07-03 Even Rouault <even.rouault at spatialys.com> 48 49 * libtiff/tif_read.c: make TIFFReadEncodedStrip() and 50 TIFFReadEncodedTile() directly use user provided buffer when 51 no compression (and other conditions) to save a memcpy(). 52 53 * libtiff/tif_write.c: make TIFFWriteEncodedStrip() and 54 TIFFWriteEncodedTile() directly use user provided buffer when 55 no compression to save a memcpy(). 56 572016-07-01 Even Rouault <even.rouault at spatialys.com> 58 59 * libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and 60 PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid 61 potential invalid memory write on corrupted/unexpected images when 62 using the TIFFRGBAImageBegin() interface (reported by 63 Clay Wood) 64 652016-06-28 Even Rouault <even.rouault at spatialys.com> 66 67 * libtiff/tif_pixarlog.c: fix potential buffer write overrun in 68 PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson) 69 (CVE-2016-5875) 70 712016-06-15 Bob Friesenhahn <[email protected]> 72 73 * libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64 74 to libtiff.def 75 762016-06-05 Bob Friesenhahn <[email protected]> 77 78 * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff, 79 ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from 80 the distribution. The libtiff tools rgb2ycbcr and thumbnail are 81 only built in the build tree for testing. Old files are put in 82 new 'archive' subdirectory of the source repository, but not in 83 distribution archives. These changes are made in order to lessen 84 the maintenance burden. 85 862016-05-10 Bob Friesenhahn <[email protected]> 87 88 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the 89 HAVE_SNPRINTF definition.' 90 912016-05-09 Bob Friesenhahn <[email protected]> 92 93 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward 94 Lam to define HAVE_SNPRINTF for Visual Studio 2015. 95 962016-04-27 Even Rouault <even.rouault at spatialys.com> 97 98 * libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD, 99 fix regression, introduced on 2014-12-23, when reading a one-strip 100 file without a StripByteCounts tag. GDAL #6490 101 1022016-04-07 Bob Friesenhahn <[email protected]> 103 104 * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for 105 purposes of security issue reporting. 106 1072016-01-23 Even Rouault <even.rouault at spatialys.com> 108 109 * libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr) 110 coming from GDAL internal libtiff 111 1122016-01-09 Even Rouault <even.rouault at spatialys.com> 113 114 * libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure 115 a uint16 to reduce size of the binary. 116 1172016-01-03 Even Rouault <even.rouault at spatialys.com> 118 119 * libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised 120 by GCC 6 -Wmisleading-indentation 121 1222015-12-27 Even Rouault <even.rouault at spatialys.com> 123 124 * libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL 125 string to %s formatter, which is undefined behaviour in sprintf(). 126 1272015-12-27 Even Rouault <even.rouault at spatialys.com> 128 129 * libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode() 130 triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif 131 (bugzilla #2508) 132 1332015-12-27 Even Rouault <even.rouault at spatialys.com> 134 135 * libtiff/tif_luv.c: fix potential out-of-bound writes in decode 136 functions in non debug builds by replacing assert()s by regular if 137 checks (bugzilla #2522). 138 Fix potential out-of-bound reads in case of short input data. 139 1402015-12-26 Even Rouault <even.rouault at spatialys.com> 141 142 * libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage 143 interface in case of unsupported values of SamplesPerPixel/ExtraSamples 144 for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in 145 TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and 146 CVE-2015-8683 reported by zzf of Alibaba. 147 1482015-12-21 Even Rouault <even.rouault at spatialys.com> 149 150 * libtiff/tif_dirread.c: workaround false positive warning of Clang Static 151 Analyzer about null pointer dereference in TIFFCheckDirOffset(). 152 1532015-12-19 Even Rouault <even.rouault at spatialys.com> 154 155 * libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found 156 by Clang Static Analyzer 157 1582015-12-18 Even Rouault <even.rouault at spatialys.com> 159 160 * libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in 161 TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory 162 offsets on a even offset (affects BigTIFF). This was a regression of the 163 changeset of 2015-10-19. 164 1652015-12-12 Even Rouault <even.rouault at spatialys.com> 166 167 * libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile() 168 should return -1 in case of failure of tif_encodestrip() as documented 169 * libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of 170 failure so that the above mentionned functions detect the error. 171 1722015-12-06 Even Rouault <even.rouault at spatialys.com> 173 174 * libtiff/uvcode.h: const'ify uv_code array 175 1762015-12-06 Even Rouault <even.rouault at spatialys.com> 177 178 * libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields, 179 tiffFieldArray and exifFieldArray arrays 180 1812015-12-06 Even Rouault <even.rouault at spatialys.com> 182 183 * libtiff/tif_print.c: constify photoNames and orientNames arrays 184 1852015-12-06 Even Rouault <even.rouault at spatialys.com> 186 187 * libtiff/tif_close.c, libtiff/tif_extension.c : rename link 188 variable to avoid -Wshadow warnings 189 1902015-11-22 Even Rouault <even.rouault at spatialys.com> 191 192 * libtiff/*.c: fix typos in comments (patch by Kurt Schwehr) 193 1942015-11-22 Even Rouault <even.rouault at spatialys.com> 195 196 * libtiff/*.c: fix MSVC warnings related to cast shortening and 197 assignment within conditional expression 198 1992015-11-18 Even Rouault <even.rouault at spatialys.com> 200 201 * libtiff/*.c: fix clang -Wshorten-64-to-32 warnings 202 2032015-11-18 Even Rouault <even.rouault at spatialys.com> 204 205 * libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL 206 to please MSVC 2013 207 2082015-11-17 Even Rouault <even.rouault at spatialys.com> 209 210 * libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction 211 if BitsPerPixel > 24, so as to avoid huge memory allocation and file 212 read attempts 213 2142015-11-02 Even Rouault <even.rouault at spatialys.com> 215 216 * libtiff/tif_dirread.c: remove duplicated assignment (reported by 217 Clang static analyzer) 218 2192015-10-28 Even Rouault <even.rouault at spatialys.com> 220 221 * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c, 222 libtiff/tif_jpeg_12.c: suppress warnings about 'no previous 223 declaration/prototype' 224 2252015-10-19 Even Rouault <even.rouault at spatialys.com> 226 227 * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix 228 'warning: negative integer implicitly converted to unsigned type' warning 229 (part of -Wconversion) 230 2312015-10-17 Even Rouault <even.rouault at spatialys.com> 232 233 * libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c, 234 libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/) 235 2362015-09-12 Bob Friesenhahn <[email protected]> 237 238 * libtiff 4.0.6 released. 239 240 * html/v4.0.6.html: Added release notes for 4.0.6. 241 2422015-09-06 Bob Friesenhahn <[email protected]> 243 244 * tools/tiffgt.c: Silence glut API deprecation warnings on MacOS 245 X. Patch by Roger Leigh. 246 247 * Makefile.am: Added a 'coverity' rule to assist with Coverity 248 submissions. 249 250 * tools/tiff2pdf.c: Fix compiler warning about unused function 251 when JPEG is not available. 252 253 * tools/fax2ps.c (main): Detect failure to write to temporary 254 file. 255 2562015-09-05 Bob Friesenhahn <[email protected]> 257 258 * libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8): 259 Change implementation so that it does not sometimes overflow the 260 range of a 32-bit int and to avoid a signed vs unsigned compare 261 compiler warning. 262 (TIFF_INT64_MAX): Avoid use of platform-specific large constants. 263 (TIFF_UINT32_MAX): Avoid use of platform-specific large constants. 264 2652015-09-01 Bob Friesenhahn <[email protected]> 266 267 * Makefile.am (distcheck-hook), configure.ac: Applied patches by 268 Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue 269 with BSD make and to make use of cmake in 'distcheck' target 270 conditional on if cmake is available. 271 272 * CMakeLists.txt, Makefile.am, configure.ac: Applied patches by 273 Roger Leigh (via tiff mailing list on 2015-09-01). 274 275 CMake build is now included in 'distcheck' target. 276 277 Builds with CMake 2.8.9 and newer. 278 279 Tar is now resquested to use POSIX PAX format. 280 2812015-08-31 Bob Friesenhahn <[email protected]> 282 283 * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by 284 Roger Leigh (via tiff mailing list on 2015-08-31. 285 286 CMake reads all version information directly from configure.ac to 287 avoid duplication of values. This basically greps over the file 288 for the LIBTIFF_* variables, then translates them to the form 289 needed for cmake. This includes the release version and libtool 290 shared library version information. 291 292 Make shared/static library building configurable. Currently it 293 always builds shared libraries, with static libs having a _static 294 suffix (copying zlib, but it means it's got a non-standard name). 295 CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the 296 other, which is now used instead. There's now a single "tiff" 297 target to build either shared or static as required, and all the 298 tests and tools are linked with this. Note: the Windows tests fail 299 when linked with a static libtiff (says: libtiff.dll not found). 300 Not really a regression since this was not tested up to this 301 point, and it's likely the unit tests haven't (ever?) been run on 302 Windows with a static libtiff, so there's some additional 303 portability issue here to address. Works fine on UNIX systems, 304 and fine on Windows with the default to build a DLL. 305 306 Add a missing file which wasn't being distributed, causing unit 307 tests to fail. Note that "find . -name '*.cmake'" lists all the 308 CMake files which need distributing in addition to all the 309 CMakeLists.txt files (which now are distributed). 310 3112015-08-31 Even Rouault <even.rouault at spatialys.com> 312 313 * libtiff/tif_predict.c: pedantic change to add explicit masking 314 with 0xff before casting to uchar in floating-point horizontal 315 differencing and accumulation routines. 316 3172015-08-31 Even Rouault <even.rouault at spatialys.com> 318 319 * libtiff/tif_predict.c: fix generation of output with 16 bit 320 or 32 bit integer, when byte swapping is needed, in 321 horizontal predictor (#2521). Also fixes decoding when there is 322 a single pixel to code (unlikely case...) and byte swapping is 323 involved. 324 3252015-08-30 Even Rouault <even.rouault at spatialys.com> 326 327 * libtiff/tif_lzw.c: make nextdata a unsigned type to avoid 328 undefined behaviour with shifts (gcc -fsanitize=shift) 329 3302015-08-30 Even Rouault <even.rouault at spatialys.com> 331 332 * libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c: 333 add explicit masking with 0xff before casting 334 to unsigned char (make icc -check=conversions happy) 335 336 * libtiff/tif_predict.c: operate on unsigned datatypes when 337 computing/applying differences to avoid undefined behaviour of 338 signed types (C standard compliance) 339 3402015-08-30 Bob Friesenhahn <[email protected]> 341 342 * configure.ac: libtiff 4.0.5 released. 343 3442015-08-29 Bob Friesenhahn <[email protected]> 345 346 * CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing 347 list on 2015-08-29) to add ld-version-script option to cmake build 348 to match autoconf. Note: defaults to 'on' to be ABI-compatible by 349 default with common Linux distribution builds. Note that the 350 autoconf configure script defaults to 'off'. 351 352 * html/build.html: Applied patch by Roger Leigh (via tiff mailing 353 list on 2015-08-29) to describe how to use CMake to build libtiff. 354 3552015-08-28 Bob Friesenhahn <[email protected]> 356 357 * html/v4.0.5.html: Added HTML file describing the changes which 358 will appear in the 4.0.5 release. 359 3602015-08-23 Bob Friesenhahn <[email protected]> 361 362 * libtiff/tiffiop.h: For MinGW comiles, make sure that build 363 supports necessary __MSVCRT_VERSION__ (at least at least 0x800). 364 Otherwise large files can not be supported for POSIX-style I/O. 365 366 * tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit 367 builds about cast to thandle_t. 368 369 * test/rewrite_tag.c (main): Does not require any arguments. 370 3712015-08-20 Bob Friesenhahn <[email protected]> 372 373 * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to 374 fix build issues when using Cmake due to Windows large file 375 changes. 376 3772015-08-18 Bob Friesenhahn <[email protected]> 378 379 * libtiff/tiffiop.h: First cut at supporting large files under 380 Microsoft Windows using tif_unix.c and the libtiff tools. This 381 only works if the Windows CDK is new enough to support the APIs 382 used (Visual C++ 2005 or later). Support for large files is not 383 actually tested yet. 384 3852015-08-15 Bob Friesenhahn <[email protected]> 386 387 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that 388 client_data is initialized to a known value, and to report an 389 error on two memory allocation failures. 390 3912015-08-13 Bob Friesenhahn <[email protected]> 392 393 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx 394 symbol versioning. Patch was mailed to libtiff list on Thu, 13 395 Aug 2015. 396 3972015-07-04 Bob Friesenhahn <[email protected]> 398 399 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3 400 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 401 +0100. 402 403 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh 404 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 405 406 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by 407 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 408 4092015-06-24 Bob Friesenhahn <[email protected]> 410 411 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 412 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several 413 corrections to ensure that the autotools build still works were 414 added by me. I have not yet tested the build using 'cmake' or 415 MSVC with 'nmake'. 416 4172015-06-21 Bob Friesenhahn <[email protected]> 418 419 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG 420 library so only execute if JPEG is available. 421 422 * libtiff 4.0.4 released. 423 424 * configure.ac: Add a HAVE_FOO Automake conditional for each 425 add-on library. 426 427 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode 428 requires JPEG support to compile. Use Automake conditional to 429 only include it when JPEG support is available. 430 431 * html/build.html: Try to improve the nmake-based VC++ build 432 description. 433 434 * libtiff/tiffconf.vc.h: Build fixes based on testing. 435 436 * libtiff/tif_config.vc.h: Build fixes based on testing. 437 438 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove 439 export for it. 440 4412015-06-20 Bob Friesenhahn <[email protected]> 442 443 * libtiff/tif_config.vc.h: Make adjustments to match the new 444 definitions that configure produces, including for WIN64. Still 445 needs to be tested. 446 447 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting 448 specifier. 64-bit MinGW supports 'long long' but support for 449 'lld' is not assured by the run-time DLLs and so GCC warns. 450 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition 451 and printf format specifier to deal with printing values of 452 'size_t' type. In particular, this was necessary for WIN64. 453 Added a configure test for if the system headers provide 'optarg' 454 (normal case) and block out the many explicit 'extern' statements 455 in the utilities. This was found to be necessary under Windows 456 when getopt is in a DLL and the symbols are already imported with 457 dllimport via standard header files. 458 459 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32 460 and boolean in MinGW build due to including jpeglib.h. 461 462 * test/rewrite_tag.c (main): Fix problem with location of variable 463 declaration. 464 465 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs, 466 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme, 467 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc, 468 TIFFRasterScanline, TIFFSetErrorHandlerExt, 469 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories, 470 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory, 471 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by 472 Roger Leigh and justified by use in libtiff tests, documentation, 473 and changelog notes. Also sorted symbol list and removed 474 duplicate entries. 475 4762015-06-16 Bob Friesenhahn <[email protected]> 477 478 * libtiff/tif_getimage.c: Fix four Coverity issues related to 479 unintended sign extension. 480 4812015-06-16 Even Rouault <even.rouault at spatialys.com> 482 483 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna) 484 4852015-06-14 Lee Howard <[email protected]> 486 487 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on 488 Bugzilla Bug #2510 fixes several harmless but still annoying 489 warnings 490 491 * configure: contribution from Ludolf Holzheid on Bugzilla 492 Bug #2498. Adds an option to select the file I/O style on 493 Windows hosts. 494 495 * libtiff/tif_getimage.c: contribution from Gary Cramblitt 496 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs. 497 498 * configure, configure.ac: contribution from Marcos H. Woehrmann 499 on Bugzilla Bug #2405. Correct shell equality operator. 500 501 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt 502 on Bugzilla Bug #2401. Appropriately call glFlush(). 503 504 * tools/tiff2pdf.c: change ColorTransform from "0" to "1" 505 following Bugzilla Bug #2150. 506 5072015-06-13 Lee Howard <[email protected]> 508 509 * libtiff/tif_lzw.c: contribution from Andy Cave - decode 510 files that contain consecutive CODE_CLEAR codes. 511 512 * tools/tiff2pdf.c: contribution from Antti S. Lankila on 513 Bugzilla Bug #2078. Suppress initial output of the header. 514 515 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy - 516 Take care in using the return value from snprintf(). 517 518 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira - 519 correctly copy the compression tag from the source TIFF. 520 521 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira - 522 correct sizing and scaling problems with output document. 523 5242015-06-10 Bob Friesenhahn <[email protected]> 525 526 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two 527 clean implementations in order to avoid pre-processor hell. Only 528 one of the implementations is used in a given build. 529 5302015-06-08 Even Rouault <even.rouault at spatialys.com> 531 532 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12 533 case 534 5352015-06-07 Bob Friesenhahn <[email protected]> 536 537 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975 538 "Division or modulo by zero". 539 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division 540 or modulo by zero". 541 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by 542 zero". 543 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by 544 zero". 545 546 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and 547 715974 "Division or modulo by zero". 548 5492015-05-31 Bob Friesenhahn <[email protected]> 550 551 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity 552 1134470 "Logically dead code" by making the roll-over check 553 explicit. 554 555 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227 556 "Division or modulo by zero". 557 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by 558 zero". 559 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by 560 zero". 561 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by 562 zero". 563 564 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix 565 Coverity 298626 "Logically dead code". 566 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead 567 code". 568 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead 569 code". 570 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead 571 code" 572 573 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++ 574 operator precedenc in evaluation. Might quench Coverity 1134470 575 "Logically dead code". 576 577 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands 578 don't affect result". This change uses ifdefs to include 579 applicable code based on properties of libjpeg. Still needs to be 580 re-tested with 12-bit "6b" and "MK1". 581 5822015-05-30 Bob Friesenhahn <[email protected]> 583 584 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310 585 "Resource leak". 586 587 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix 588 Coverity 601720 "Resource leak". 589 590 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624 591 "Dereference before null check". 592 593 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400 594 "Missing break in switch". 595 596 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer 597 size calculation for overflow. 598 599 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity 600 1024226 "Untrusted value as argument". 601 602 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted 603 value as argument". 604 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes 605 read". 606 (readextension): Fix Coverity 1024893 "Ignoring number of bytes 607 read". 608 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes 609 read". 610 (readraster): Fix Coverity 1024891 "Ignoring number of bytes 611 read". 612 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes 613 read". 614 615 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181 616 "Structurally dead code". 617 618 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return 619 value from library". 620 (guessSize): Fix Coverity 1024888 "Unchecked return value from 621 library". 622 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read". 623 (guessSize): Fix Coverity 1024889 "Unchecked return value from 624 library". 625 626 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621 627 "Resource leak". 628 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead 629 code". 630 (t2p_write_pdf): Fix Coverity 1227690 "Unused value". 631 6322015-05-29 Bob Friesenhahn <[email protected]> 633 634 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468 635 "Infinite loop". 636 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value". 637 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound". 638 6392015-05-28 Bob Friesenhahn <[email protected]> 640 641 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 642 Coverity 298615 "Resource leak". 643 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign 644 extension". 645 646 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value 647 as argument". 648 (main): Fix Coverity 1024678 "Unchecked return value from 649 library". 650 (main): Fix Coverity 1024679 "Unchecked return value from 651 library". 652 (main): Fix Coverity 1214160 "Ignoring number of bytes read". 653 654 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 655 Coverity 298615 "Resource leak". 656 657 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309 658 "Resource leak". 659 660 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource 661 leak". 662 (cpStrips): Fix Coverity 1024305 "Resource leak". 663 6642015-05-27 Bob Friesenhahn <[email protected]> 665 666 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe 667 for 64-bit systems. Add some header validations. Should fix many 668 Coverity issues. 669 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)". 670 (main): Quiet Coverity 1024223 "Untrusted value as argument". 671 672 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting 673 level does not match indentation". 674 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read". 675 This was a benign mis-diagnosis but added code to enforce against 676 buffer overflow. 677 678 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical 679 vs. bitwise operator". 680 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or 681 modulo by zero". 682 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead 683 code". 684 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not 685 match indentation". 686 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not 687 match indentation". 688 (loadImage): Fix Coverity 1299741 "Dereference before null check". 689 (loadImage): Fix Coverity 1299740 "Out-of-bounds write". 690 6912015-03-02 Even Rouault <[email protected]> 692 693 * tools/tiffdither.c: check memory allocations to avoid writing to 694 NULL pointer. Also check multiplication overflow. Fixes #2501, 695 CVE-2014-8128. Derived from patch by Petr Gajdos. 696 6972015-01-26 Even Rouault <[email protected]> 698 699 * add html/v4.0.4beta.html under version control 700 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used 701 7022015-01-26 Even Rouault <[email protected]> 703 704 * libtiff 4.0.4beta released 705 7062015-01-26 Even Rouault <[email protected]> 707 708 * automake: updated to 1.15 709 * libtool: updated to 2.4.5 710 7112015-01-22 Even Rouault <[email protected]> 712 713 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013) 714 7152015-01-05 Frank Warmerdam <[email protected]> 716 717 * html/bugs.html: remove note about needing to email the tiff mailing 718 list administrator about being approved for membership, this appears 719 not to be true. 720 7212015-01-05 Olivier Paquet <[email protected]> 722 723 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection. 724 7252015-01-03 Even Rouault <[email protected]> 726 727 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow 728 when reading more than 65535 directories, and effectively error out when 729 reaching that limit. 730 7312014-12-29 Even Rouault <[email protected]> 732 733 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10 734 markers to avoid emitting a warning (even if, according to the TechNote, 735 there are admitedly unusual/not recommended or even forbidden variants, but 736 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2, 737 SOF9 and SOF10). 738 Define in_color_space and input_components to the right values in 739 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by 740 libjpeg API documentation, so as to be compatible with mozjpeg library. 741 Note: the default settings of mozjpeg will produce progressive scans, which 742 is forbidden by the TechNote. 743 7442014-12-29 Even Rouault <[email protected]> 745 746 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling. 747 to avoid buffer leak (fix previous fix, found by Coverity scan) 748 7492014-12-29 Even Rouault <[email protected]> 750 751 * libtiff/tif_next.c: add new tests to check that we don't read outside of 752 the compressed input stream buffer. 753 754 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height 755 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and 756 putcontig8bitYCbCr21tile cases. 757 7582014-12-27 Even Rouault <[email protected]> 759 760 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing 761 extented tags installed by user code through the extender mechaninm before 762 calling the extender callback (GDAL #5054) 763 7642014-12-26 Bob Friesenhahn <[email protected]> 765 766 * tools/tiffcrop.c: Fix warnings about variables set but not used. 767 768 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set 769 but not used. 770 771 * tools/tiffgt.c: Fix warnings about unused parameters. 772 773 * libtiff/tif_stream.cxx: Fix warnings about unused parameters. 774 7752014-12-25 Even Rouault <[email protected]> 776 777 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix 778 various typos found by Debian lintian tool (GDAL #5756) 779 7802014-12-24 Even Rouault <[email protected]> 781 782 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling. 783 http://bugzilla.maptools.org/show_bug.cgi?id=2235 784 7852014-12-24 Even Rouault <[email protected]> 786 787 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images. 788 http://bugzilla.maptools.org/show_bug.cgi?id=2445 789 7902014-12-24 Even Rouault <[email protected]> 791 792 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image. 793 Derived from patch by Petr Gajdos, 794 http://bugzilla.maptools.org/show_bug.cgi?id=2443 795 7962014-12-23 Even Rouault <[email protected]> 797 798 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code 799 of _TIFFFillStriles(). This solves crashing bug on corrupted 800 images generated by afl. 801 8022014-12-23 Even Rouault <[email protected]> 803 804 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with 805 <= 0 by casting it to int64 first. This solves crashing bug on corrupted 806 images generated by afl. 807 8082014-12-21 Bob Friesenhahn <[email protected]> 809 810 * tools/tiffdump.c: Guard against arithmetic overflow when 811 calculating allocation buffer sizes. 812 8132014-12-21 Even Rouault <[email protected]> 814 815 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if 816 SamplesPerPixel = 3. Enforce that 817 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127) 818 8192014-12-21 Even Rouault <[email protected]> 820 821 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES 822 copying. The right fix would be to properly copy it, but not worth the burden 823 for those esoteric utilities. 824 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127) 825 8262014-12-21 Even Rouault <[email protected]> 827 828 * tools/thumbnail.c: fix out-of-buffer write 829 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128) 830 8312014-12-21 Even Rouault <[email protected]> 832 833 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS 834 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or 835 COMPRESSION_CCITTFAX4 836 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128) 837 8382014-12-21 Even Rouault <[email protected]> 839 840 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes 841 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129) 842 8432014-12-21 Even Rouault <[email protected]> 844 845 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading 846 TIFFTAG_SAMPLESPERPIXEL 847 8482014-12-21 Even Rouault <[email protected]> 849 850 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none. 851 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480) 852 Description: fix for Debian bug #741451 853 tiffcp crashes when converting JPEG-encoded TIFF to a different 854 encoding (like none or lzw). For example this will probably fail: 855 tiffcp -c none jpeg_encoded_file.tif output.tif 856 The reason is that when the input file contains JPEG data, 857 the tiffcp code forces conversion to RGB space. However, 858 the output normally inherits YCbCr subsampling parameters 859 from the input, which leads to a smaller working buffer 860 than necessary. The buffer is subsequently overrun inside 861 cpStripToTile() (called from writeBufferToContigTiles). 862 Note that the resulting TIFF file would be scrambled even 863 if tiffcp wouldn't crash, since the output file would contain 864 RGB data intepreted as subsampled YCbCr values. 865 This patch fixes the problem by forcing RGB space on the output 866 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded. 867 Author: Tomasz Buchert <[email protected]> 868 8692014-12-21 Even Rouault <[email protected]> 870 871 Fix various crasher bugs on fuzzed images. 872 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for 873 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing 874 the directory 875 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or 876 TransferFunction if BitsPerSample has not yet been read, otherwise reading 877 it later will cause user code to crash if BitsPerSample > 1 878 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with 879 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8 880 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images 881 instead of imagewidth to avoid crash 882 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions 883 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by 884 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB 885 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight 886 * tools/tiffdump.c: fix crash due to overflow of entry count. 887 8882014-12-15 Even Rouault <[email protected]> 889 890 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused 891 all tiles/strips to include quantization tables even when the jpegtablesmode 892 had the JPEGTABLESMODE_QUANT bit set. 893 Also add explicit removal of Huffman tables when jpegtablesmode has the 894 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the 895 first tile/strip (only useful in update scenarios. create-only was 896 fine) 897 8982014-12-09 Bob Friesenhahn <[email protected]> 899 900 * tools/tiff2pdf.c: Assure that memory size calculations for 901 _TIFFmalloc() do not overflow the range of tmsize_t. 902 9032014-12-07 Even Rouault <[email protected]> 904 905 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with 906 Valgrind and Address Sanitizer on test suite 907 9082014-12-07 Bob Friesenhahn <[email protected]> 909 910 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION 911 tag can return one channel, with the other two channels set to 912 NULL. The tiff2pdf code was expecting that other two channels 913 were duplicate pointers in the case where there is only one 914 channel. Detect this condition in order to avoid a crash, and 915 presumably perform correctly with just one channel. 916 9172014-12-06 Bob Friesenhahn <[email protected]> 918 919 * tools/tiffdump.c: Fix double-free bug. 920 9212014-11-27 Even Rouault <[email protected]> 922 923 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with 924 Visual Studio 2015 aka VC 14 aka MSVC 1900 925 9262014-11-20 Even Rouault <[email protected]> 927 928 * libtiff/tif_lzw.c: prevent potential null dereference of 929 sp->dec_codetab in LZWPreDecode (bug #2459) 930 931 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size 932 to TIFFmalloc() if passed user buffer size is 0 (bug #2459) 933 934 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459) 935 936 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make 937 Coverity happier (not a bug, #2459) 938 939 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier 940 (not a bug, #2459) 941 942 * tools/tiff2pdf.c: close PDF file (bug #2479) 943 944 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470) 945 946 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463) 947 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459) 948 949 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option 950 (bug #2459) and add missing va_end in dump_info (#2459) 951 952 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451) 953 9542014-11-20 Even Rouault <[email protected]> 955 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on 956 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471) 957 9582014-11-20 Even Rouault <[email protected]> 959 * automake: updated to 1.14.1 960 * libtool: updated to 2.4.3 961 * HOWTO-RELEASE: small update about autotools building order 962 9632014-10-20 Olivier Paquet <[email protected]> 964 * tools/tiff2pdf.c: Preserve input file directory order when pages 965 are tagged with the same page number. 966 9672014-08-31 Bob Friesenhahn <[email protected]> 968 969 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect 970 count for tag should be a warning rather than an error since 971 errors terminate processing. 972 9732014-06-07 Bob Friesenhahn <[email protected]> 974 975 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip 976 was wrongly described. Fix suggested by Miguel Medalha. 977 9782014-05-06 Bob Friesenhahn <[email protected]> 979 980 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for 981 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood. 982 Reviewed and forwarded by Lee Howard. 983 9842013-11-30 Frank Warmerdam <[email protected]> 985 986 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories() 987 9882013-10-21 Frank Warmerdam <[email protected]> 989 990 * libtiff/tif_dir.c: generate error in case of directory count 991 overflow. 992 9932013-10-01 Frank Warmerdam <[email protected]> 994 995 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for 996 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457) 997 9982013-09-12 Bob Friesenhahn <[email protected]> 999 1000 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to 1001 be defective, then set it to zero before returning error in order 1002 to terminate processing of truncated TIFF. Issue found and fix 1003 suggested by Richard Nolde. 1004 10052013-08-14 Frank Warmerdam <[email protected]> 1006 1007 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244) 1008 10092013-08-13 Frank Warmerdam <[email protected]> 1010 1011 * tools/gif2tiff.c: Be more careful about corrupt or 1012 hostile input files (#2450, CVE-2013-4231) 1013 1014 * tools/tiff2pdf.c: terminate after failure of allocating 1015 ycbcr buffer (bug #2449, CVE-2013-4232) 1016 10172013-07-09 Frank Warmerdam <[email protected]> 1018 1019 * tools/tiffinfo.c: Default various values fetched with 1020 TIFFGetField() to avoid being uninitialized. 1021 10222013-05-02 Tom Lane <[email protected]> 1023 1024 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in 1025 t2p_process_jpeg_strip to be at least marginally competent. The 1026 approach is still fundamentally flawed, but at least now it won't 1027 stomp all over memory when given bogus input. Fixes CVE-2013-1960. 1028 10292013-05-02 Tom Lane <[email protected]> 1030 1031 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c, 1032 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c, 1033 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c, 1034 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't 1035 large enough, and eliminate substantially all uses of sprintf(buf, 1036 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to 1037 protect against overflow of fixed-size buffers. This responds in 1038 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's 1039 t2p_write_pdf_page(), but in general it seems like a good idea to 1040 deprecate use of sprintf(). 1041 10422013-03-29 Bob Friesenhahn <[email protected]> 1043 1044 * configure.ac: Applied patch by Brad Smith to improve pkg-config 1045 static linking by adding -lm to Libs.private when needed. 1046 10472013-03-05 Tom Lane <[email protected]> 1048 1049 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html, 1050 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1, 1051 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c, 1052 tools/tiffdither.c: Sync tool usage printouts and man pages with 1053 reality (quite a few options had escaped being documented in one 1054 or both places). Per an old report from Miroslav Vadkerti. 1055 10562013-01-25 Bob Friesenhahn <[email protected]> 1057 1058 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a 1059 rotation angle was set by the auto rotate check, it was retained 1060 for all pages that followed instead ofa being retested for each 1061 page. Patch by Richard Nolde. 1062 10632013-01-18 Frank Warmerdam <[email protected]> 1064 1065 * libtiff/tif_write.c: tmsize_t related casting warning fixed for 1066 64bit linux. 1067 1068 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings. 1069 http://bugzilla.maptools.org/show_bug.cgi?id=2427 1070 10712012-12-20 Tom Lane <[email protected]> 1072 1073 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that 1074 it will pass with more versions of libjpeg. (There are at least 1075 three in active use now, and JPEG_LIB_VERSION doesn't tell us 1076 enough to uniquely identify expected results.) 1077 10782012-12-12 Tom Lane <[email protected]> 1079 1080 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of 1081 field_passcount fields: it had the TIFF_VARIABLE and 1082 TIFF_VARIABLE2 cases backwards. 1083 10842012-12-10 Tom Lane <[email protected]> 1085 1086 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564: 1087 check the linebytes calculation too, get the max() calculation 1088 straight, avoid redundant error messages, check for malloc 1089 failure. 1090 10912012-12-10 Tom Lane <[email protected]> 1092 1093 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447 1094 (to enlarge tbuf for possible partial stride at end) so that 1095 overflow in the integer addition is detected. Per gripe from 1096 Huzaifa Sidhpurwala. 1097 10982012-12-03 Bob Friesenhahn <[email protected]> 1099 1100 * tools/tiffset.c: tiffset now supports a -u option to unset a 1101 tag. Patch by Zach Baker. See 1102 http://bugzilla.maptools.org/show_bug.cgi?id=2419 1103 11042012-11-18 Bob Friesenhahn <[email protected]> 1105 1106 * automake: Update Automake to 1.12.5 release. 1107 1108 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not 1109 require malloc() to return NULL pointer if requested allocation 1110 size is zero. Assure that _TIFFmalloc does. 1111 11122012-11-01 Frank Warmerdam <[email protected]> 1113 1114 * tools/ppm2tiff.c: avoid zero size buffer vulnerability. 1115 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the 1116 Red Hat Security Response team for the fix. 1117 11182012-10-18 Frank Warmerdam <[email protected]> 1119 1120 * tif_zip.c: Avoid crash on NULL error messages. 1121 11222012-09-22 Bob Friesenhahn <[email protected]> 1123 1124 * libtiff 4.0.3 released. 1125 11262012-09-20 Bob Friesenhahn <[email protected]> 1127 1128 * Makefile.am: Update to Automake 1.12.4 1129 11302012-08-19 Bob Friesenhahn <[email protected]> 1131 1132 * Makefile.in: Update to Automake 1.12.3 1133 1134 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add 1135 some TIFF/FX support in libtiff. Add the tag definitions to 1136 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c, 1137 and also fixes an error in a comment. Adds the photometric values 1138 to tif_print.c, and fixes a bug. These changes are by Steve 1139 Underwood. 1140 11412012-08-13 Frank Warmerdam <[email protected]> 1142 1143 * libtiff/tif_write.c: Fix bug rewriting image tiles in a 1144 compressed file: http://trac.osgeo.org/gdal/ticket/4771 1145 11462012-08-02 Frank Warmerdam <[email protected]> 1147 1148 * libtiff/tif_dirread.c: report error in case of mismatch value 1149 counts for tags (ie. DotRange). 1150 11512012-07-26 Tom Lane <[email protected]> 1152 1153 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new 1154 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(), 1155 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount() 1156 as external accessors for the opaque type TIFFField. 1157 1158 * tools/tiffset.c: Make tiffset use the above functions instead of 1159 relying on library private headers. 1160 11612012-07-19 Tom Lane <[email protected]> 1162 1163 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set 1164 after a malloc failure. No crash risk AFAICS, but the program 1165 might not report exit code 1 as desired. h/t [email protected] 1166 11672012-07-18 Tom Lane <[email protected]> 1168 1169 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This 1170 prevents core dumps or perhaps even arbitrary code execution when 1171 processing a corrupt input file (CVE-2012-3401). 1172 11732012-07-06 Bob Friesenhahn <[email protected]> 1174 1175 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+. 1176 IJG JPEG 7+ uses a different upsampling algorithm which produces 1177 different numeric results. 1178 1179 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to 1180 work with IJG JPEG 7+. 1181 11822012-07-04 Bob Friesenhahn <[email protected]> 1183 1184 * test/raw_decode.c: Add changes so that test can run with build 1185 directory outside of source directory. 1186 11872012-07-02 Frank Warmerdam <[email protected]> 1188 1189 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed 1190 imagery (http://trac.osgeo.org/gdal/ticket/4732) 1191 11922012-06-20 Frank Warmerdam <[email protected]> 1193 1194 * libtiff/tif_fax3.c: fix memory initialization of runs, only 1195 partly done. 1196 1197 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one 1198 full "stride" past the end. 1199 12002012-06-19 Frank Warmerdam <[email protected]> 1201 1202 * libtiff/tif_packbits.c: fix read past end of data buffer. 1203 12042012-06-15 Frank Warmerdam <[email protected]> 1205 1206 * libtiff 4.0.2 released. 1207 1208 * tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable 1209 warnings with clang. 1210 12112012-06-15 Tom Lane <[email protected]> 1212 1213 * tools/tiff2pdf.c: Defend against integer overflows while 1214 calculating required buffer sizes (CVE-2012-2113). 1215 12162012-06-12 Frank Warmerdam <[email protected]> 1217 1218 * libtiff/tif_print.c: Be careful about printing corrupt inknames. 1219 1220 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros. 1221 12222012-06-07 Frank Warmerdam <[email protected]> 1223 1224 * libtiff/tif_print.c: avoid pretty printing other fields when 1225 we don't have the proper amount and type of data or if the field 1226 is actually autodefined. 1227 12282012-06-05 Frank Warmerdam <[email protected]> 1229 1230 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal 1231 ycbcrsubsampling values result in a runtime error, not just an 1232 assertion. 1233 1234 * tests/custom_dir.c: Add testing of EXIF and custom directory 1235 reading and writing. 1236 1237 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory() 1238 and TIFFCreateEXIFDirectory() functions. 1239 1240 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for 1241 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE 1242 differently. This is to avoid using special TIFFGetField/TIFFSetField 1243 rules for these fields in non-image directories (like EXIF). 1244 12452012-06-04 Frank Warmerdam <[email protected]> 1246 1247 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling 1248 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner 1249 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong. 1250 12512012-06-01 Frank Warmerdam <[email protected]> 1252 1253 * tools/tiffinfo.c: Do not try to read image data in EXIF directories. 1254 1255 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images. 1256 http://bugzilla.maptools.org/show_bug.cgi?id=2379 1257 1258 * libtiff/tif_unix.c: use strerror() to return a more specific error message 1259 on failed open. 1260 http://bugzilla.maptools.org/show_bug.cgi?id=2341 1261 1262 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs. 1263 http://bugzilla.maptools.org/show_bug.cgi?id=2386 1264 1265 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support 1266 for testing jpeg in tiff image decoding including the "raw" decode interface. 1267 12682012-05-31 Frank Warmerdam <[email protected]> 1269 1270 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in 1271 JPEGDecodeRaw() - mostly likely to occur when there is confusion about 1272 sampling values. 1273 1274 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed. 1275 1276 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval. 1277 http://bugzilla.maptools.org/show_bug.cgi?id=2398 1278 12792012-05-29 Frank Warmerdam <[email protected]> 1280 1281 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories, 1282 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting 1283 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations 1284 to get/set functions for different tags! 1285 1286 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata 1287 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag. 1288 12892012-05-24 Frank Warmerdam <[email protected]> 1290 1291 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward 1292 accumulate" and overwrite the end by one word in at least some cases. 1293 12942012-05-23 Frank Warmerdam <[email protected]> 1295 1296 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs. 1297 1298 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files. 1299 1300 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on 1301 the same image. 1302 1303 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without 1304 stripbytecounts or stripoffsets or where loading these fails. 1305 1306 * libtiff/tif_print.c: be careful about whether min/max values are singular 1307 or one per sample. 1308 1309 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields. 1310 May affect things like ISOSpeedRatings. 1311 1312 * libtiff/tif_dir.c: avoid one byte past end of ink names reading 1313 in some cases. 1314 13152012-05-19 Bob Friesenhahn <[email protected]> 1316 1317 * man/TIFFGetField.3tiff: Correct the 'count' field type in the 1318 example for how to retreive the value of unsupported tags. 1319 13202012-03-30 Frank Warmerdam <[email protected]> 1321 1322 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173) 1323 care of Tom Lane @ Red Hat. 1324 13252012-02-18 Bob Friesenhahn <[email protected]> 1326 1327 * libtiff 4.0.1 released. 1328 1329 * Update automake used to 1.11.3. 1330 1331 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf 1332 attribute specification to lessen the risk of accidental macro 1333 substitution. Patch from Vincent Torri. 1334 13352012-01-31 Frank Warmerdam <[email protected]> 1336 1337 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around 1338 assumption tag fetching is always successful. 1339 1340 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL. 1341 13422012-01-22 Bob Friesenhahn <[email protected]> 1343 1344 * configure.ac: Add support for using library symbol versioning on 1345 ELF systems with the GNU linker. Support is enabled via 1346 --enable-ld-version-script. Disabled by default for now until 1347 there is a decision for how to deploy a libtiff with versioned 1348 symbols after libtiff 4.0.0 was already released. 1349 13502011-12-22 Bob Friesenhahn <[email protected]> 1351 1352 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in 1353 1354 tif_win32.c. Patch by Edward Lam. 1355 1356 * configure.ac: Add libtiff private dependency on -llzma for 1357 pkg-config. Patch by Mark Brand. 1358 Updated Automake to 1.11.2. 1359 13602011-12-21 Bob Friesenhahn <[email protected]> 1361 1362 * libtiff 4.0.0 released. 1363 13642011-12-08 Frank Warmerdam <[email protected]> 1365 1366 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking 1367 of _TIFFFillStriles() results (#gdal 4372) 1368 13692011-12-07 Frank Warmerdam <[email protected]> 1370 1371 * libtiff/tif_dirread.c: fixes to deal with invalid files where 1372 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372) 1373 1374 * libtiff/tif_dirread.c: fix error reporting when there is no 1375 tag information struct and name (gdal #4373) 1376 13772011-10-22 Bob Friesenhahn <[email protected]> 1378 1379 * Update GNU libtool to 2.4.2. 1380 1381 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be 1382 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe 1383 Deroulers. 1384 13852011-06-21 Frank Warmerdam <[email protected]> 1386 1387 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo. 1388 13892011-05-31 Jim Meyering <[email protected]> 1390 1391 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also 1392 upon failure to allocate "resizeddata". 1393 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for 1394 allocation failure, not before. 1395 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path 1396 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc 1397 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark 1398 NULL-deref and possible overflow 1399 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written" 1400 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration 1401 and set of otherwise unused local, data_is_empty. 1402 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]: 1403 Diagnose out-of-memory failure and return 0 rather than 1404 dereferencing NULL. 1405 14062011-05-24 Frank Warmerdam <[email protected]> 1407 1408 * libtiff/tif_dirread.c: produce special error message for zero tag 1409 directories instead of error out on the malloc(0) failure. 1410 14112011-05-16 Frank Warmerdam <[email protected]> 1412 1413 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and 1414 related declarations as they are in active use by libraries 1415 such as libgeotiff, and work just fine. (#2315) 1416 14172011-04-20 Frank Warmerdam <[email protected]> 1418 1419 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete 1420 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API. 1421 http://bugzilla.maptools.org/show_bug.cgi?id=2315 1422 1423 * libtiff/libtiff.def: add some missing (64bit) APIs. 1424 http://bugzilla.maptools.org/show_bug.cgi?id=2316 1425 14262011-04-09 Bob Friesenhahn <[email protected]> 1427 1428 * libtiff 4.0.0beta7 released. 1429 14302011-04-09 Bob Friesenhahn <[email protected]> 1431 1432 * configure.ac: Should use AC_CANONICAL_HOST since host specifies 1433 the run-time target whereas target is used to specify the final 1434 output target if the package is a build tool (like a compiler), 1435 which libtiff is not. Resolves libtiff bug 2307 "Use 1436 AC_CANONICAL_HOST macro". 1437 14382011-04-02 Bob Friesenhahn <[email protected]> 1439 1440 * configure.ac: Support configuring TIFF_INT64_FORMAT and 1441 TIFF_UINT64_FORMAT appropriately for MinGW32. 1442 1443 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32 1444 printf conventions for 64-bit types because it uses the WIN32 CRT. 1445 1446 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c, 1447 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32 1448 printf conventions for 64-bit types because it uses the WIN32 CRT. 1449 1450 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not 1451 understood by WIN32 CRT. 1452 1453 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC. 1454 1455 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since 1456 it is much more portable. Tmpfile is included in ISO/IEC 1457 9899:1990 and the WIN32 CRT. 1458 14592011-03-26 Frank Warmerdam <[email protected]> 1460 1461 * tools/tiffset.c: add -d and -sd switches to allow operation on 1462 a particular directory, not just the first (jef). 1463 14642011-03-21 Frank Warmerdam <[email protected]> 1465 1466 * libtiff/tif_thunder.c: Correct potential buffer overflow with 1467 thunder encoded files with wrong bitspersample set. The libtiff 1468 development team would like to thank Marin Barbella and TippingPoint's 1469 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004, 1470 CVE-2011-1167). 1471 http://bugzilla.maptools.org/show_bug.cgi?id=2300 1472 14732011-03-10 Frank Warmerdam <[email protected]> 1474 1475 * libtiff/tif_fax3.h: Fix to last change allowing zero length 1476 runs at the start of a scanline - needed for legal cases. 1477 14782011-03-02 Frank Warmerdam <[email protected]> 1479 1480 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding 1481 a move left. Without this, a malicious input file can generate an 1482 indefinitely large series of runs without a0 ever reaching the right 1483 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192. 1484 This is a modified version of a patch proposed by Drew Yao of Apple 1485 Product Security. It adds an unexpected() report, and disallows the 1486 equality case, since emitting a run without increasing a0 still allows 1487 buffer overrun. 1488 14892011-02-23 Frank Warmerdam <[email protected]> 1490 1491 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296) 1492 1493 * tools/tiff2rgba.c: close source file on error to make leak 1494 detection easier. 1495 1496 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails. 1497 1498 http://bugzilla.maptools.org/show_bug.cgi?id=2295 1499 15002011-02-22 Frank Warmerdam <[email protected]> 1501 1502 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ 1503 _SUPPORT) 1504 15052011-02-18 Frank Warmerdam <[email protected]> 1506 1507 * configure.ac, configure: Added support for --enable-chunky-strip-read 1508 configure option to enable the experimental feature from a couple 1509 months ago for reading big strips in chunks. 1510 1511 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h, 1512 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c: 1513 Implement optional support for deferring the load of strip/tile 1514 offset and size tags for optimized scanning of directories. Enabled 1515 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD 1516 #define in tif_config.h). 1517 15182011-02-11 Frank Warmerdam <[email protected]> 1519 1520 * libtiff/tif_print.c: remove unused variable. 1521 15222011-02-09 Frank Warmerdam <[email protected]> 1523 1524 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem 1525 with non-console (popup message) builds on win32. 1526 1527 http://bugzilla.maptools.org/show_bug.cgi?id=2293 1528 15292011-01-24 Olivier Paquet <[email protected]> 1530 1531 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c, 1532 tif_print.c, tiff.h, tiffiop.h} : Added support for 1533 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different 1534 values for each sample. Presents the min/max of all samples by default for 1535 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags 1536 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag. 1537 http://www.asmail.be/msg0055458208.html 1538 15392011-01-06 Frank Warmerdam <[email protected]> 1540 1541 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not 1542 maintained. 1543 1544 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding 1545 for CHUNKY_STRIP_READ_SUPPORT. 1546 1547 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained 1548 during JPEGPreDecode and JPEGDecode calls. 1549 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT, 1550 as compression formats like JPEG keep 16 lines interleaved in a sense 1551 and might need to touch quite a bit of data. 1552 1553 http://trac.osgeo.org/gdal/ticket/3894 1554 15552011-01-03 Lee Howard <[email protected]> 1556 1557 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images 1558 caused by commit on 2010-12-14. Submitted by e-mail from 1559 Even Rouault <[email protected]> 1560 15612010-12-31 Olivier Paquet <[email protected]> 1562 1563 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE. 1564 http://bugzilla.maptools.org/show_bug.cgi?id=2266 1565 15662010-12-23 Andrey Kiselev <[email protected]> 1567 1568 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the 1569 compression level parameter (preset) for Deflate and LZMA encoders, 1570 e.g "-c lzma:p1" or "-c zip:p9". 1571 1572 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level 1573 (preset) in LZMAVSetField(). 1574 15752010-12-18 Bob Friesenhahn <[email protected]> 1576 1577 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to 1578 Makefile. 1579 15802010-12-14 Andrey Kiselev <[email protected]> 1581 1582 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h, 1583 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new 1584 TIFF compression scheme LZMA reserving a new value 34925 for 1585 Compression tag. As per 1586 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221 1587 15882010-12-14 Lee Howard <[email protected]> 1589 1590 * libtiff/tif_dirread.c: tolerate some cases where 1591 FIELD_COLORMAP is missing 1592 http://bugzilla.maptools.org/show_bug.cgi?id=2189 1593 15942010-12-14 Lee Howard <[email protected]> 1595 1596 * libtiff/tif_read.c: change read_ahead to tmsize_t 1597 http://bugzilla.maptools.org/show_bug.cgi?id=2222 1598 15992010-12-14 Lee Howard <[email protected]> 1600 1601 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on 1602 Windows except on Cygwin 1603 http://bugzilla.maptools.org/show_bug.cgi?id=2224 1604 16052010-12-14 Lee Howard <[email protected]> 1606 1607 * tools/gif2tiff.c: fix buffer overrun 1608 http://bugzilla.maptools.org/show_bug.cgi?id=2270 1609 16102010-12-14 Lee Howard <[email protected]> 1611 1612 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order 1613 to improve compatibility with various viewers 1614 submitted by e-mail from Dwight Kelly <[email protected]> 1615 16162010-12-13 Lee Howard <[email protected]> 1617 1618 * tools/fax2ps.c: be consistent with page-numbering 1619 http://bugzilla.maptools.org/show_bug.cgi?id=2225 1620 16212010-12-13 Lee Howard <[email protected]> 1622 1623 * libtiff/tif_color.c: prevent crash in handling bad TIFFs 1624 resolves CVE-2010-2595 1625 http://bugzilla.maptools.org/show_bug.cgi?id=2208 1626 16272010-12-13 Lee Howard <[email protected]> 1628 1629 * tools/tiffcrop.c: new release by Richard Nolde 1630 http://bugzilla.maptools.org/show_bug.cgi?id=2004 1631 16322010-12-12 Lee Howard <[email protected]> 1633 1634 * tools/tiff2pdf.c: fix colors for images with RGBA 1635 interleaved data 1636 http://bugzilla.maptools.org/show_bug.cgi?id=2250 1637 16382010-12-12 Lee Howard <[email protected]> 1639 1640 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files 1641 http://bugzilla.maptools.org/show_bug.cgi?id=2164 1642 16432010-12-11 Lee Howard <[email protected]> 1644 1645 * tools/tiff2pdf.c: remove invalid duplication for Lab 1646 http://bugzilla.maptools.org/show_bug.cgi?id=2162 1647 16482010-12-11 Lee Howard <[email protected]> 1649 1650 * libtiff/tif_jpeg.c: fix use of clumplines calculation 1651 http://bugzilla.maptools.org/show_bug.cgi?id=2149 1652 16532010-12-11 Lee Howard <[email protected]> 1654 1655 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp() 1656 http://bugzilla.maptools.org/show_bug.cgi?id=2118 1657 16582010-12-11 Lee Howard <[email protected]> 1659 1660 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c, 1661 libtiff/tif_zip.c: fix build errors for VC6 1662 http://bugzilla.maptools.org/show_bug.cgi?id=2105 1663 16642010-12-11 Lee Howard <[email protected]> 1665 1666 * libtiff/tif_stream.cxx: warnings cleanup 1667 http://bugzilla.maptools.org/show_bug.cgi?id=2091 1668 * libtiff/tif_dirread.c: warnings cleanup 1669 http://bugzilla.maptools.org/show_bug.cgi?id=2092 1670 16712010-12-11 Lee Howard <[email protected]> 1672 1673 * tools/tiff2pdf.c: add fill-page option 1674 http://bugzilla.maptools.org/show_bug.cgi?id=2051 1675 16762010-12-11 Lee Howard <[email protected]> 1677 1678 * libtiff/tif_dirread.c: modify warnings 1679 http://bugzilla.maptools.org/show_bug.cgi?id=2016 1680 16812010-12-11 Lee Howard <[email protected]> 1682 1683 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data 1684 http://bugzilla.maptools.org/show_bug.cgi?id=1999 1685 16862010-12-11 Lee Howard <[email protected]> 1687 1688 * tools/tiffinfoce.c: strip byte counts are uint64* now 1689 16902010-12-11 Lee Howard <[email protected]> 1691 1692 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero 1693 or missing byte-count tag 1694 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count 1695 per http://bugzilla.maptools.org/show_bug.cgi?id=1996 1696 16972010-12-08 Lee Howard <[email protected]> 1698 1699 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed 1700 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994 1701 17022010-12-06 Lee Howard <[email protected]> 1703 1704 * libtiff/tif_open.c: Fix mode check before opening a file. 1705 http://bugzilla.maptools.org/show_bug.cgi?id=1906 1706 17072010-11-27 Bob Friesenhahn <[email protected]> 1708 1709 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support. 1710 Patch by Vincent Torri. 1711 17122010-10-21 Frank Warmerdam <[email protected]> 1713 1714 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler. 1715 1716 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf. 1717 1718 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools. 1719 17202010-09-25 Lee Howard <[email protected]> 1721 1722 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde 1723 with additional command line options for Document Title, 1724 Document Creator, and Page Orientation 1725 17262010-07-13 Bob Friesenhahn <[email protected]> 1727 1728 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a 1729 potentially unterminated buffer due to using an exceptionally long 1730 file name. 1731 17322010-07-08 Andrey Kiselev <[email protected]> 1733 1734 * tools/tiff2pdf.c: Fixed ID buffer filling in 1735 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 1736 17372010-07-07 Andrey Kiselev <[email protected]> 1738 1739 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount() 1740 to expected value as the warning message suggests. As per bug 1741 http://bugzilla.maptools.org/show_bug.cgi?id=1963 1742 17432010-07-06 Andrey Kiselev <[email protected]> 1744 1745 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER, 1746 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE 1747 which should be set by value. 1748 1749 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag() 1750 and _TIFFFieldWithName() if the tag is not found in the tag table. 1751 This should be normal situation and returned NULL value should be 1752 properly handled by the caller. 1753 17542010-07-02 Andrey Kiselev <[email protected]> 1755 1756 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned 1757 integer type conversions. As per bug 1758 http://bugzilla.maptools.org/show_bug.cgi?id=2207 1759 1760 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for 1761 WhitePoint tag as per bug 1762 http://bugzilla.maptools.org/show_bug.cgi?id=2042 1763 1764 * libtiff/tif_getimage.c: Check the number of samples per pixel when 1765 working with YCbCr image in PickContigCase(). As per bug 1766 http://bugzilla.maptools.org/show_bug.cgi?id=2216 1767 1768 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing 1769 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when 1770 we don't need any post-processing. That helps to reset the hook if we 1771 previously set this field to some other value and the hook was 1772 initialized accordingly. As per bug 1773 http://bugzilla.maptools.org/show_bug.cgi?id=2035 1774 17752010-07-01 Andrey Kiselev <[email protected]> 1776 1777 * tools/tiffgt.c: Properly check the raster buffer allocations for 1778 integer overflows. As per bug 1779 http://bugzilla.maptools.org/show_bug.cgi?id=2108 1780 1781 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the 1782 upstream. 1783 1784 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move 1785 multiply_32() and multiply_64() functions into tif_aux.c file and 1786 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively. 1787 17882010-06-30 Andrey Kiselev <[email protected]> 1789 1790 * tools/tiff2pdf.c: Better generation of ID field in 1791 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings. 1792 1793 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when 1794 converting JPEG encoded tiles. 1795 1796 * tools/tiff2pdf.c: Better handling of string fields, use static 1797 string buffers instead of dynamically allocated, use strncpy() instead 1798 of strcpy(), control the string lengths. 1799 18002010-06-25 Andrey Kiselev <[email protected]> 1801 1802 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid 1803 referencing to uninitialized memory in some cases (e.g. when tile size 1804 set bigger than the image size). 1805 18062010-06-15 Bob Friesenhahn <[email protected]> 1807 1808 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr 1809 subsampled data since tiffcrop currently doesn't support it. Fix 1810 JPEG support. 1811 18122010-06-13 Frank Warmerdam <[email protected]> 1813 1814 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201) 1815 1816 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return" 1817 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely 1818 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual 1819 size is larger. Also, there are a bunch of places that try to 1820 memset() a malloc'd buffer before checking for malloc failure, which 1821 would result in core dump if there actually were a failure. (#2211) 1822 18232010-06-11 Bob Friesenhahn <[email protected]> 1824 1825 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to 1826 avoid compiler warnings if parameter types are not sign 1827 consistent. 1828 1829 * libtiff 4.0.0alpha6 released. 1830 1831 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected 1832 European page size dimensions. Added an option to allow the user 1833 to specify a custom page size on the command line. Fix the case 1834 where a page size specified with a fractional part was being 1835 coerced to an integer by retyping the variables that define the 1836 paper size. 1837 1838 * html/index.html: Update for the 3.9.3 release. 1839 1840 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject 1841 YCbCr subsampled data since tiffcp currently doesn't support it. 1842 http://bugzilla.maptools.org/show_bug.cgi?id=2097 1843 1844 * Update libtool to version 2.2.10. 1845 18462010-06-10 Bob Friesenhahn <[email protected]> 1847 1848 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if 1849 multiplier is zero. 1850 18512010-06-09 Bob Friesenhahn <[email protected]> 1852 1853 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for 1854 CVE-2010-1411 was not complete. 1855 1856 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely 1857 multiply two integers. Returns zero if there is an integer 1858 overflow. 1859 1860 * tools/tiffcp.c (main): tiffcp should not leak memory if an error 1861 is reported when reading the input file. 1862 18632010-06-08 Bob Friesenhahn <[email protected]> 1864 1865 * Update libtool to version 2.2.8. 1866 1867 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of 1868 buffer due to integer overflow in TIFFroundup() and several other 1869 potential overflows. In conjunction with the fix to TIFFhowmany(), 1870 fixes CVE-2010-1411. 1871 1872 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would 1873 result in an integer overflow. This causes TIFFroundup() to also 1874 return zero if there would be an integer overflow. 1875 1876 * contrib: Add an emacs formatting mode footer to all source files 1877 so that emacs can be effectively used. 1878 18792010-06-03 Oliver Chen Feng <[email protected]> 1880 1881 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff 1882 file PAGENUMBER value in sequence for users who care the page 1883 sequence, this will also prevent tiff2pdf from creating pdf file from 1884 the merged tiff file with wrong page sequence. 1885 18862010-05-08 Olivier Paquet <[email protected]> 1887 1888 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order 1889 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag. 1890 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1891 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2). 1892 http://bugzilla.maptools.org/show_bug.cgi?id=2192 1893 18942010-05-07 Frank Warmerdam <[email protected]> 1895 1896 * libtiff/tif_jpeg.c: Ensure that quality is always set in 1897 JPEGPreEncode(), not just when we want to output local tables. 1898 Otherwise the quality used during compression may not be right and 1899 might not match the tables in the tables tag. This bug only occurs 1900 when seeking between directories in the midst of writing blocks. 1901 http://trac.osgeo.org/gdal/ticket/3539 1902 19032010-05-06 Andrey Kiselev <[email protected]> 1904 1905 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html: 1906 Regenerated from the source. 1907 19082010-05-05 Olivier Paquet <[email protected]> 1909 1910 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which 1911 had stopped working. Also made it always print 6 floats instead of 1912 2*SamplesPerPixel. 1913 http://bugzilla.maptools.org/show_bug.cgi?id=2191 1914 http://bugzilla.maptools.org/show_bug.cgi?id=2186 1915 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the 1916 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats. 1917 19182010-05-05 Frank Warmerdam <[email protected]> 1919 1920 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking 1921 if the jpeg table was written. This is a fix for the last fix on 04-21. 1922 19232010-04-21 Frank Warmerdam <[email protected]> 1924 1925 * libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime 1926 JPEGSetupEncode() is called if the tables already seem to be 1927 established. This prevents spurious updates and rewriting of 1928 directories with jpegtables when doing updates to existing images. 1929 http://trac.osgeo.org/gdal/ticket/3539 1930 19312010-04-20 Olivier Paquet <[email protected]> 1932 1933 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1934 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH, 1935 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA. 1936 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2. 1937 http://bugzilla.maptools.org/show_bug.cgi?id=2139 1938 19392010-04-10 Bob Friesenhahn <[email protected]> 1940 1941 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for 1942 when the tag count value is zero. Error handling is still a 1943 regression since in 3.9.2, empty tags are skipped (with a warning) 1944 rather than returning a hard error and refusing to read the file. 1945 1946 * tools/ppm2tiff.c (main): While case for parsing comment line 1947 requires extra parenthesis to work as expected. Reported by 1948 Thomas Sinclair. 1949 19502010-04-02 Frank Warmerdam <[email protected]> 1951 1952 * libtiff/tif_read.c (primarily): Add support for 1953 CHUNKY_STRIP_READ_SUPPORT where large strips are 1954 read in chunks for applications using TIFFReadScanline(). 1955 This is intended to make it more practical work with very 1956 large compressed one-strip files. Feature is off by default. 1957 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro. 1958 http://trac.osgeo.org/gdal/ticket/3514 1959 19602010-03-31 Frank Warmerdam <[email protected]> 1961 1962 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing 1963 directories so previously placed directories will be migrated to 1964 the end of file if needed. 1965 19662010-03-30 Frank Warmerdam <[email protected]> 1967 1968 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64 1969 to support operating on strips/tiles of more than 256MB. 1970 http://trac.osgeo.org/gdal/ticket/3512 1971 19722010-03-10 Bob Friesenhahn <[email protected]> 1973 1974 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so 1975 that it is clearly a memory allocation error message, and also 1976 includes the size of the allocation request. 1977 19782010-02-22 Lee Howard <[email protected]> 1979 1980 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating 1981 the JPEG TIFF as is is not required in order to prevent it from 1982 being unused and filled with invalid data. (Leave it to be 1983 generated by later activity.) 1984 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1985 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip 1986 data rather than skipping them. This fixes the ability to view in 1987 Acrobat Reader, Evince, and Ghostscript. 1988 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1989 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR 1990 strips. 1991 http://bugzilla.maptools.org/show_bug.cgi?id=2029 1992 19932009-12-03 Frank Warmerdam <[email protected]> 1994 1995 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns. 1996 Made so that when working with downsampled images a stub function 1997 reporting an error is used for tif_decoderow. We cannot meaningfully 1998 support reading scanlines in this situation. (#1936) 1999 2000 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after 2001 resetting of the upsampling values (gdal:#3259). 2002 http://bugzilla.maptools.org/show_bug.cgi?id=1936 2003 20042009-11-30 Frank Warmerdam <[email protected]> 2005 2006 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c, 2007 tools/ras2tiff.c: Fix resource leaks on error. 2008 http://bugzilla.maptools.org/show_bug.cgi?id=2121 2009 2010 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling 2011 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead 2012 of as a custom(generic) field to avoid a potential reentrancy problem. 2013 http://bugzilla.maptools.org/show_bug.cgi?id=2125 2014 2015 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h, 2016 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit 2017 const, and display_sRGB static and const. 2018 http://bugzilla.maptools.org/show_bug.cgi?id=2124 2019 20202009-11-04 Bob Friesenhahn <[email protected]> 2021 2022 * libtiff 4.0.0alpha5 released. 2023 20242009-11-03 Bob Friesenhahn <[email protected]> 2025 2026 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This 2027 version has undergone substantial testing with arbitrary sample 2028 bit depths. Also eliminates GCC compilation warnings. 2029 20302009-11-02 Bob Friesenhahn <[email protected]> 2031 2032 * port/libport.h: Add extern declarations for getopt standard 2033 globals. 2034 20352009-10-31 Bob Friesenhahn <[email protected]> 2036 2037 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings 2038 noticed in 64-bit build of libtiff with Visual Studio 2005. 2039 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in 2040 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067 2041 2042 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important 2043 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 - 2044 Visual Studio 2005 64-bit warning in tif_pixarlog.c", 2045 http://bugzilla.maptools.org/show_bug.cgi?id=2068 2046 20472009-10-29 Bob Friesenhahn <[email protected]> 2048 2049 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned 2050 pointer" warnings. 2051 20522009-10-28 Bob Friesenhahn <[email protected]> 2053 2054 * html/tools.html: Add manual page links, and a summary 2055 description of tiffcrop. 2056 20572009-10-07 Bob Friesenhahn <[email protected]> 2058 2059 * configure.ac: x86_64 should use the same fill order as i386. 2060 20612009-09-24 Bob Friesenhahn <[email protected]> 2062 2063 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard 2064 Nolde. Major updates to add significant functionality for reading 2065 and writing tile based images with bit depths not a multiple of 8 2066 which cannot be handled by tiffcp. 2067 20682009-09-03 Bob Friesenhahn <[email protected]> 2069 2070 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs 2071 do_fancy_upsampling=FALSE in order to read raw data. Resolves 2072 "Bug 2090 - OJPEG crash with libjpeg v7". 2073 http://bugzilla.maptools.org/show_bug.cgi?id=2090 2074 20752009-09-03 Frank Warmerdam <[email protected]> 2076 2077 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA 2078 interface when stoponerror is set. 2079 http://bugzilla.maptools.org/show_bug.cgi?id=2071 2080 20812009-08-30 Bob Friesenhahn <[email protected]> 2082 2083 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to 2084 fix build with gcc when using the "-Wformat 2085 -Werror=format-security" flags. 2086 20872009-08-29 Bob Friesenhahn <[email protected]> 2088 2089 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2090 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional 2091 utilities tests. 2092 20932009-08-28 Bob Friesenhahn <[email protected]> 2094 2095 * tools/tiffinfo.c: tiffinfo should return error status to the 2096 caller. Register a private error callback to accomplish that. 2097 2098 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and 2099 PNM formats so that we will be able to test more of the tools. 2100 While adding these test images I notice that bmp2tiff and gif2tiff 2101 only support ancient versions of their respective formats. 2102 21032009-08-27 Bob Friesenhahn <[email protected]> 2104 2105 * libtiff 4.0.0alpha4 released. 2106 2107 * HOWTO-RELEASE: Improved release instructions. 2108 21092009-08-24 Bob Friesenhahn <[email protected]> 2110 2111 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied 2112 fixes for "Bug 2023 - nroff errors in manual pages". 2113 http://bugzilla.maptools.org/show_bug.cgi?id=2023 2114 2115 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 - 2116 CVE-2009-2347 libtiff: integer overflows in various inter-color 2117 space conversion tools". 2118 http://bugzilla.maptools.org/show_bug.cgi?id=2079 2119 2120 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay 2121 Berkenbilt for "Bug 2024 - possible null pointer dereference with 2122 one-line fix". 2123 http://bugzilla.maptools.org/show_bug.cgi?id=2024 2124 2125 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch 2126 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c: 2127 segfault after setting tdir_tag = IGNORE". 2128 http://bugzilla.maptools.org/show_bug.cgi?id=1895 2129 21302009-08-23 Bob Friesenhahn <[email protected]> 2131 2132 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing 2133 tiffcrop.sh into a collection of many specific tests. Re-wrote 2134 all of the existing tests to be based on some simple shell 2135 functions. Make distcheck works again. 2136 2137 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and 2138 added 'memcheck' and 'ptrcheck' targets to make it easy to run the 2139 tests under valgrind. 2140 21412009-08-21 Bob Friesenhahn <[email protected]> 2142 2143 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH 2144 build. 2145 2146 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not 2147 actually activated since it needed to be enabled in this 2148 Makefile.am. Also activated parallel-tests mode since it offers 2149 useful features such as per-test .log files and a summary test 2150 report .log file. 2151 21522009-08-20 Bob Friesenhahn <[email protected]> 2153 2154 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11, 2155 libtool 2.2.6. Enabled support for silent build rules 2156 (--enable-silent-rules or 'make V=0') and colorized tests. 2157 2158 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release. 2159 21602009-06-30 Frank Warmerdam <[email protected]> 2161 2162 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression. 2163 2164 * tools/tiffcp.c: add -c sgilog support. 2165 2166 * libtiff/tif_luv.c: correct return codes from encoderow to be 2167 1 on success instead of zero. 2168 http://bugzilla.maptools.org/show_bug.cgi?id=2069 2169 2170 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from 2171 #1085 for a better underflow fix that errors properly. 2172 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2173 http://bugzilla.maptools.org/show_bug.cgi?id=1985 2174 21752009-06-26 Frank Warmerdam <[email protected]> 2176 2177 * libtiff/tif_strip.c: Remove an inappropriate assertion that often 2178 fails on oddly sized 12bit jpeg compressed ycbcr images. 2179 21802009-06-22 Frank Warmerdam <[email protected]> 2181 2182 * libtiff/tif_lzw.c: Fix buffer underflow bug. 2183 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2184 21852009-06-21 Frank Warmerdam <[email protected]> 2186 2187 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support 2188 for dual mode 8/12 bit jpeg support. 2189 21902009-06-03 Frank Warmerdam <[email protected]> 2191 2192 * libtiff/tif_write.c: do not override the planar configuration to be 2193 contig for one sample files if planar configuration is already set. 2194 http://bugzilla.maptools.org/show_bug.cgi?id=2057 2195 21962009-06-02 Frank Warmerdam <[email protected]> 2197 2198 * libtiff/libtiff.def: Add TIFFUnsetField. 2199 22002009-05-03 Frank Warmerdam <[email protected]> 2201 2202 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various 2203 error reports to use "%s" as format string. 2204 http://trac.osgeo.org/gdal/ticket/2976 2205 22062009-03-12 Frank Warmerdam <[email protected]> 2207 2208 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining 2209 for some codecs (#2020). 2210 22112009-02-12 Frank Warmerdam <[email protected]> 2212 2213 * libtiff/tif_luv.c: Fix handling of tiled logluv images. 2214 http://bugzilla.maptools.org/show_bug.cgi?id=2005 2215 22162009-02-09 Frank Warmerdam <[email protected]> 2217 2218 * libtiff/tif_dirread.c: Improve allocation safety when allocated 2219 buffer for large tags. (#1998) Related to (#1993) 2220 22212009-02-06 Frank Warmerdam <[email protected]> 2222 2223 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the 2224 test suite should pass. 2225 22262009-02-05 Frank Warmerdam <[email protected]> 2227 2228 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size, 2229 but at the 2GB boundary to avoid overflow on 32bit systems. 2230 http://bugzilla.maptools.org/show_bug.cgi?id=1993 2231 2232 * libtiff/tif_dirread.c: Remove some assertions that blow due to 2233 corrupt files rather than in response to library internal 2234 inconsistencies. 2235 http://bugzilla.maptools.org/show_bug.cgi?id=1995 2236 http://bugzilla.maptools.org/show_bug.cgi?id=1991 2237 2238 * libtiff/tif_dirread.c: Fixed testing for failed result from 2239 TIFFReadDirectoryFindFieldInfo(). 2240 http://bugzilla.maptools.org/show_bug.cgi?id=1992 2241 22422009-01-23 Frank Warmerdam <[email protected]> 2243 2244 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors. 2245 http://bugzilla.maptools.org/show_bug.cgi?id=1911 2246 2247 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset. 2248 2249 http://bugzilla.maptools.org/show_bug.cgi?id=1924 2250 2251 * tools/tiffcrop.c: initialize xres/yres values. 2252 2253 * test/*.sh - default ${srcdir} to local directory. 2254 2255 * test/common.sh - start verbose mode after common settings. 2256 2257 * libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to 2258 avoid type mismatches on different platforms. 2259 http://bugzilla.maptools.org/show_bug.cgi?id=1889 2260 22612009-01-22 Frank Warmerdam <[email protected]> 2262 2263 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c, 2264 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues. 2265 2266 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT 2267 defined, primarily to reduce prototype warnings on windows. 2268 2269 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings 2270 about unused parameters, and uninitialized variables. 2271 22722009-01-21 Bob Friesenhahn <[email protected]> 2273 2274 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in 2275 order to trace full execution detail while executing the test suite. 2276 22772009-01-20 Frank Warmerdam <[email protected]> 2278 2279 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv. 2280 22812009-01-20 Bob Friesenhahn <[email protected]> 2282 2283 * test/Makefile.am (CLEANFILES): Make sure that test output files 2284 are removed by 'make clean' 2285 2286 * Update autotools for 4.0.0 beta3 2287 2288 * 4.0.0 beta3 produced. 2289 22902009-01-12 Bob Friesenhahn <[email protected]> 2291 2292 * test/tiffcrop.sh: New test script for tiffcrop from Richard 2293 Nolde. 2294 2295 * tools/tiff2ps.c: Remove spurious message to stderr. 2296 22972009-01-11 Bob Friesenhahn <[email protected]> 2298 2299 * tools/tiff2ps.c: Incorporated significant functionality update 2300 from Richard Nolde. In particular, support for rotating the image 2301 by 90, 180, 270, and 'auto' has been added. 2302 2303 * man/tiffcrop.1: Incorporated documentation updates from Richard 2304 Nolde. 2305 2306 * tools/tiffcrop.c: Incorporated significant functionality update 2307 from Richard Nolde. 2308 23092008-12-31 Bob Friesenhahn <[email protected]> 2310 2311 * libtiff/tiffio.h: GCC will now validate format specifications 2312 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and 2313 TIFFWarningExt() in order to reveal bugs. 2314 2315 * Many fixes throughout to work better as a 64-bit build. 2316 23172008-12-30 Bob Friesenhahn <[email protected]> 2318 2319 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length 2320 tags now require 64-bit parameter rather than 32-bit. 2321 2322 * libtiff/tif_dirread.c: Fixed issues with unaligned access to 2323 64-bit values. 2324 2325 * tools/thumbnail.c: Eliminate crash noticed while running test 2326 suite. 2327 23282008-12-29 Bob Friesenhahn <[email protected]> 2329 2330 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer): 2331 Initialize stack variables to avoid compiler warning. 2332 2333 * tools/tiffinfoce.c (main): Use toff_t for offset type when 2334 retrieving offset of EXIF IFD. 2335 2336 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the 2337 TIFFClientOpen() callback and other external function definitions. 2338 2339 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit 2340 type now. Fixes crash when dumping files containing an EXIF IFD. 2341 2342 * m4/libtool.m4: Update to libtool 2.2.6. 2343 23442008-12-21 Frank Warmerdam <[email protected]> 2345 2346 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function. 2347 2348 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full 2349 strip for the last partial strip in a jpeg compressed file. 2350 http://bugzilla.maptools.org/show_bug.cgi?id=1981 2351 23522008-10-29 Frank Warmerdam <[email protected]> 2353 2354 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when 2355 we take the shortcut to only update the strip/tile offsets in place. 2356 http://trac.osgeo.org/gdal/ticket/2621 2357 23582008-10-21 Andrey Kiselev <[email protected]> 2359 2360 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with 2361 the older versions retained). 2362 23632008-10-09 Frank Warmerdam <[email protected]> 2364 2365 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using 2366 IPP enabled version of libjpeg from Intel. 2367 http://bugzilla.maptools.org/show_bug.cgi?id=1951 2368 23692008-09-05 Andrey Kiselev <[email protected]> 2370 2371 * tools/tiffsplit.c: Use byte counts of proper size (uint64). 2372 Required for libtiff 4.0. 2373 2374 * tools/tiffsplit.c: Use dynamically allocated array instead of static 2375 when constructing output file names. 2376 23772008-09-03 Andrey Kiselev <[email protected]> 2378 2379 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when 2380 doing the filename/path construction. 2381 2382 * tools/tiff2pdf.c: More appropriate format string in 2383 t2p_write_pdf_string(); avoid signed/unsigned mismatch. 2384 2385 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug 2386 2387 http://bugzilla.maptools.org/show_bug.cgi?id=1929 2388 2389 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes 2390 CVE-2008-2327 security issue. 2391 23922008-09-01 Frank Warmerdam <[email protected]> 2393 2394 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function. 2395 2396 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD 2397 depending on whether the file is bigtiff or classic tiff. 2398 http://bugzilla.maptools.org/show_bug.cgi?id=1917 2399 24002008-08-12 Edward Lam <[email protected]> 2401 2402 * tools/tiffdump.c: When compiling for Microsoft Windows, apply 2403 consistent (__int64) casting when testing if _lseeki64 has 2404 successfully seeked as requested. This is necessary for large 2405 file support to work since off_t is only 32-bit. 2406 24072008-07-29 Frank Warmerdam <[email protected]> 2408 2409 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or 2410 the subsampling values not being 1, 2 or 4 (for jpeg compressed images) 2411 with control logic to return runtime errors (c/o Even Rouault) (#1927). 2412 24132008-06-17 Frank Warmerdam <[email protected]> 2414 2415 * tools/tiffcrop.c: Fix some portability problems. 2416 2417 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are 2418 used in tif_jpeg.c. 2419 2420 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags 2421 as TIFFOpen(). 2422 24232008-06-01 Frank Warmerdam <[email protected]> 2424 2425 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures 2426 like Sparc/Solaris. 2427 http://bugzilla.maptools.org/show_bug.cgi?id=1892 2428 24292008-05-27 Frank Warmerdam <[email protected]> 2430 2431 * libtiff.def: Add TIFFFindField 2432 http://bugzilla.maptools.org/show_bug.cgi?id=1891 2433 24342008-05-26 Frank Warmerdam <[email protected]> 2435 2436 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused. 2437 2438 * li2008-04-15 Andrey Kiselev <[email protected]> 2439 2440btiff/tif_win32.c: Replace custom Win32 memory api with generic 2441 POSIX one. No apparent value to use of GlobalAlloc() in the modern 2442 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885 2443 2444 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items 2445 in windows version (care of Edward Lam). 2446 24472008-05-24 Frank Warmerdam <[email protected]> 2448 2449 * tif_codec.c: Avoid NULL pointer dereferencing for exotic 2450 compression codec codes. 2451 2452 * tif_dirwrite.c: fix potential memory leak. 2453 2454 * tif_dirread.c: Fix unchecked malloc result. 2455 24562008-05-24 Bob Friesenhahn <[email protected]> 2457 2458 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh 2459 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh 2460 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh 2461 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh 2462 tiffdump.sh tiffinfo.sh}: Added more test scripts based on 2463 suggestions from Lee Howard posted to the tiff list on 13 Sep 2464 2007. 2465 24662008-05-23 Frank Warmerdam <[email protected]> 2467 2468 * libtiff/tif_fax3.c: Add an assert in an effort to detect a 2469 possible runtime problem reported by coverity. 2470 2471 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str. 2472 2473 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde. 2474 http://bugzilla.maptools.org/show_bug.cgi?id=1888 2475 2476 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak. 2477 2478 * tools/rgb2ycbcr.c: fix memory leak of raster buffer. 2479 2480 * tools/tiffcp.c: Simplify inknames code to avoid pointless test. 2481 Cleanup scanline allocation to avoid coverity warning. 2482 2483 * tools/thumbnail.c: Check for TIFFOpen() failure. 2484 24852008-05-18 Frank Warmerdam <[email protected]> 2486 2487 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT 2488 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear 2489 why this is needed. 2490 24912008-05-09 Bob Friesenhahn <[email protected]> 2492 2493 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like 2494 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4". 2495 24962008-04-15 Andrey Kiselev <[email protected]> 2497 2498 * test/: Test suite updated. Everything is passed now. 2499 2500 * libtiff/tif_dirinfo.c: Fixed description of the 2501 TIFFTAG_NUMBEROFINKS tag. 2502 25032008-04-14 Andrey Kiselev <[email protected]> 2504 2505 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}: 2506 Get rid of some of "dereferencing type-punned" warnings by converting 2507 tdir_offset field of TIFFDirEntry structure into union. 2508 25092008-04-10 Andrey Kiselev <[email protected]> 2510 2511 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}: 2512 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out 2513 from the public interface. Type of its 'count' parameter changed 2514 from uint32 to tmsize_t. 2515 2516 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields 2517 of the tiff structure have the size_t type instead of uint32. 2518 25192008-04-09 Andrey Kiselev <[email protected]> 2520 2521 * tools/tiffdump.c: Added support for MSVS 6.0. 2522 2523 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat() 2524 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating 2525 point values on MSVS 6.0 platform. 2526 25272008-03-14 Frank Warmerdam <[email protected]> 2528 2529 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in 2530 TIFFReadDirEntryArray() since they are interfering with seemingly 2531 legitimate files. http://trac.osgeo.org/gdal/ticket/2005 2532 25332008-02-09 Joris Van Damme <[email protected]> 2534 2535 * tif_dirread.c: Added handling for the case of number of values for 2536 PageNumber tag different from 2 (previously resulted in an assert 2537 indicating lack of handling and was forgotten about) 2538 25392008-02-01 Frank Warmerdam <[email protected]> 2540 2541 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on 2542 the actual jpeg data stream if the first strip/tile has zero size. 2543 This is the case when GDAL creates a new file with zero sizes, closes 2544 and reopens it. 2545 25462008-01-07 Frank Warmerdam <[email protected]> 2547 2548 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam). 2549 25502008-01-01 Frank Warmerdam <[email protected]> 2551 2552 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions. 2553 2554 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean 2555 targets. 2556 2557 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c 2558 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005 2559 (x64). 2560 2561 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag() 2562 and TIFFFieldWithName() now return TIFFField pointers instead of 2563 TIFFFieldInfo pointers. 2564 2565 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't 2566 exist. This makes it compile again on Windows 2567 2568 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c, 2569 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64. 2570 2571 * test/rewrite_tag.c: New test for TIFFRewriteField(). 2572 25732007-12-31 Frank Warmerdam <[email protected]> 2574 2575 * tif_dirwrite.c: Added TIFFRewriteField(). This new function 2576 rewrites one field "on disk" updating an existing directory 2577 entry. Lots of limitations still... 2578 2579 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of 2580 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that 2581 the strip offset/size values are dirty but nothing else about the 2582 directory is dirty. In flush handle "just stripmaps dirty" as a 2583 special case that just rewrites these values without otherwise 2584 modifying the directory on disk using TIFFRewriteField(). 2585 2586 We also modify logic so that in update mode the directory is not 2587 marked dirty on read, but only when something is changed. This 2588 means we need to keep track of updates to the stripmap stuff in 2589 TIFFAppendToStrip(). 2590 25912007-12-10 Frank Warmerdam <[email protected]> 2592 2593 * tif_jpeg.c: Improve ability to switch between encoding and decoding 2594 in the jpeg code (gdal bug #2033). 2595 25962007-11-23 Frank Warmerdam <[email protected]> 2597 2598 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c, 2599 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the 2600 rawcp/rawcc buffer are for writing and thus may require flushing. 2601 Necessary to distinguish whether they need to be written to disk when 2602 in mixed read/write mode and doing a mixture of writing followed by 2603 reading. http://trac.osgeo.org/gdal/ticket/1758 2604 26052007-11-23 Andrey Kiselev <[email protected]> 2606 2607 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches 2608 from Alexey Chupahin. 2609 26102007-11-02 Frank Warmerdam <[email protected]> 2611 2612 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for 2613 establishing if an existing tile can be rewritten to the same location 2614 by comparing the current size to all the other blocks in the same 2615 directory. This is dangerous in many situations and can easily 2616 corrupt a file. (observed in esoteric GDAL situation that's hard to 2617 document). This change involves leaving the stripbytecount[] values 2618 unaltered till TIFFAppendToStrip(). Now we only write a block back 2619 to the same location it used to be at if the new data is the same 2620 size or smaller - otherwise we move it to the end of file. 2621 2622 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile 2623 data when writing the directory just because we have BEENWRITING at 2624 some point in the past. This was causing odd junk to be written out 2625 in a tile of data when a single tile had an interleaving of reading 2626 and writing with reading last. (highlighted by gdal 2627 autotest/gcore/tif_write.py test 7. 2628 2629 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid 2630 modifying callers buffer. 2631 http://trac.osgeo.org/gdal/ticket/1965 2632 2633 * tif_predict.c/h: more fixes related to last item, keeping a 2634 distinct pfunc for encode and decode cases as these were getting 2635 mixed up sometimes. 2636 http://trac.osgeo.org/gdal/ticket/1948 2637 26382007-11-01 Frank Warmerdam <[email protected]> 2639 2640 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that 2641 predictor based encoding and decoding works in read-write update 2642 mode properly. 2643 http://trac.osgeo.org/gdal/ticket/1948 2644 26452007-10-24 Joris Van Damme <[email protected]> 2646 2647 * tif_dirread.c: Fixed problem with bogus file triggering 2648 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in 2649 ChopUpSingleUncompressedStrip 2650 26512007-10-22 Joris Van Damme <[email protected]> 2652 2653 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images 2654 at best, access violation at worst, when subsampled JPEG compressed imagery 2655 is decoded without the JPEG_COLORMODE feature 2656 26572007-10-11 Frank Warmerdam <[email protected]> 2658 2659 * html/index.html: Update "people responsible" section. 2660 26612007-10-05 Frank Warmerdam <[email protected]> 2662 2663 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases 2664 as reported on the mailing list. 2665 26662007-10-01 Joris Van Damme <[email protected]> 2667 2668 * changed some more incorrect %lud printf flags to %lu 2669 26702007-09-29 Joris Van Damme <[email protected]> 2671 2672 * tif_dirread.c: Strip chopping interfered badly with uncompressed 2673 subsampled images because it tried to divide subsampled rowblocks, 2674 leading to all sorts of errors throughout the library for these 2675 images. Fixed by making strip chopping divide in row counts that 2676 are a multiple of vertical subsampling value. 2677 26782007-09-28 Joris Van Damme <[email protected]> 2679 2680 * tif_dirread.c: Logical cast working around compiler warning 2681 2682 * tif_read.c: Correction of some error flags and parameter lists 2683 26842007-09-27 Joris Van Damme <[email protected]> 2685 2686 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust 2687 when dealing with large bitspersample values, shutting up purification 2688 tools that warn about truncation, though it remains incorrect and 2689 indicates a conceptual problem there. 2690 2691 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading 2692 of first IFD) to proper place because it badly interfered with memory 2693 mapping, resulting in mapping flag even with dummy mapping functions 2694 that returned 0 whilst at the same time the mapping tif_size wasn't 2695 set, thus resulting in continuous incorrect beyond-eof errors. 2696 26972007-09-24 Joris Van Damme <[email protected]> 2698 2699 * tif_dirinfo.c: Fixed (MSVC) compiler reports about 2700 inconsistent use of const in tiffFields and exifFields definition 2701 27022007-09-20 Frank Warmerdam <[email protected]> 2703 2704 * tif_dirwrite.c: Always write tile/strip offsets and sizes 2705 using LONG8 type when output format is BigTIFF. The 2706 TIFFWriteDirectoryTagLongLong8Array() function was restructured 2707 accordingly. 2708 2709 * tif_dirread.c: Improvements to error reporting text in 2710 TIFFFetchDirectory(). 2711 27122007-09-19 Bob Friesenhahn <[email protected]> 2713 2714 * test/images: Added a small collection of test images for use by 2715 test programs and scripts. 2716 * test/tiffinfo.sh: A trivial example test script. 2717 * test/common.sh: Added small script for setting the environment 2718 used by script-based tests. 2719 27202007-08-24 Frank Warmerdam <[email protected]> 2721 2722 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed 2723 zero when writing directory contents to preserve the ability to 2724 rewrite directories in place, even in the middle of a directory 2725 chain. 2726 2727 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field 2728 definitions that are missing. Existing definitions are silently 2729 ignored. 2730 2731 * tif_dirread.c: Add runtime error for fields for which no definition 2732 is found (in addition to an assert for developers) in 2733 TIFFFetchNormalTag(). Not sure if this is needed, but it seems 2734 prudent. 2735 27362007-08-10 Joris Van Damme <[email protected]> 2737 2738 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer 2739 from _TIFFRGBAImage structure to revert unwanted ABI change. 2740 27412007-08-10 Joris Van Damme <[email protected]> 2742 2743 * libtiff/tif_win32.c: use SetFilePointer instead of 2744 SetFilePointerEx, as per bug 2745 2746 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580 2747 27482007-07-19 Andrey Kiselev <[email protected]> 2749 2750 * libtiff/tif_stream.cxx: Put all callback functions declarations 2751 inside extern "C" block. 2752 2753 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c, 2754 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf() 2755 formatter instead of "%lld" with MSVC compiler. 2756 2757 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and 2758 _TIFFUInt64ToDouble() functions. 2759 27602007-07-18 Andrey Kiselev <[email protected]> 2761 2762 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit 2763 integer constants. 2764 2765 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h, 2766 remove tif_config.h/tiffconf.h during cleaning. As per bug 2767 2768 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573 2769 2770 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug 2771 2772 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577 2773 27742007-07-13 Andrey Kiselev <[email protected]> 2775 2776 * libtiff 4.0.0alpha released. 2777 27782007-07-12 Andrey Kiselev <[email protected]> 2779 2780 * tools/tiff2pdf.c: Added missed extern optind as per bug 2781 2782 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567 2783 2784 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c, 2785 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag 2786 extending scheme completed. 2787 27882007-07-11 Bob Friesenhahn <[email protected]> 2789 2790 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to 2791 use standard C++ library size types and attempt to detect overflow 2792 cases. 2793 27942007-07-08 Andrey Kiselev <[email protected]> 2795 2796 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h, 2797 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new 2798 tag extending scheme. Use the new scheme everywhere. 2799 2800 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c, 2801 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c, 2802 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}: 2803 TIFFFIeldInfo structure replaced with TIFFField structure. 2804 TIFFFieldInfo retained for the backward compatibility. 2805 28062007-07-05 Bob Friesenhahn <[email protected]> 2807 2808 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not 2809 defined. 2810 28112007-07-04 Andrey Kiselev <[email protected]> 2812 2813 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused 2814 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration 2815 removed. 2816 2817 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move 2818 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS, 2819 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory. 2820 These tags are not codec-specific and relate to image content, so 2821 process them as other normal tags. 2822 2823 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the 2824 public tiffio.h to private tif_dir.h. 2825 2826 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and 2827 outdated. 2828 28292007-07-03 Andrey Kiselev <[email protected]> 2830 2831 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c, 2832 tif_win3.c}: Obsoleted portability stuff removed. 2833 2834 * tools/tiff2ps.c: Added support 16-bit images as per bug 2835 2836 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566 2837 2838 Patch from William Bader. 2839 2840 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and 2841 significant upgrade of the whole utility as per bug 2842 2843 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560 2844 2845 Now we don't need tiffiop.h in tiff2pdf anymore and will open output 2846 PDF file using TIFFClientOpen() machinery as it is implemented 2847 by Leon Bottou. 2848 28492007-06-26 Bob Friesenhahn <[email protected]> 2850 2851 * configure.ac: Fix typo when substituting value for unsigned 8 bit type. 2852 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic. 2853 Added support for a TIFF_SSIZE_T in order to return memory sizes but still 2854 allow returning -1 for errors. 2855 * libtiff/tiffconf.vc.h: Add porting type defintions for WIN32. 2856 28572007-06-25 Bob Friesenhahn <[email protected]> 2858 2859 * port/strtoull.c: New porting function in case strtoull() is not 2860 available on the target system. 2861 * configure.ac: Add configure support for determining sized types 2862 in a portable way and performing necessary substitutions in 2863 tif_config.h and tiffconf.h. Updated tiff.h to use the new 2864 definitions. 2865 28662007-04-27 Andrey Kiselev <[email protected]> 2867 2868 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug 2869 2870 http://bugzilla.remotesensing.org/show_bug.cgi?id=154 2871 28722007-04-07 Andrey Kiselev <[email protected]> 2873 2874 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c, 2875 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c, 2876 tif_predict.c, tif_zip.c}: Finally fix bug 2877 2878 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274 2879 2880 by introducing _TIFFMergeFieldInfo() returning integer error status 2881 instead of void in case of problems with field merging (e.g., if the 2882 field with such a tag already registered). TIFFMergeFieldInfo() in 2883 public API remains void. Use _TIFFMergeFieldInfo() everywhere and 2884 check returned value. 2885 28862007-04-07 Frank Warmerdam <[email protected]> 2887 2888 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output 2889 blocks in TIFF_DownSample_Subsampled() (bug 1542). 2890 28912007-04-06 Frank Warmerdam <[email protected]> 2892 2893 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it 2894 will convert from decompressor to compressor or compress to decompress 2895 if required by the force arguments. This works around a problem in 2896 where the JPEGFixupTestSubsampling() may cause a decompressor to 2897 be setup on a directory when later a compressor is required with the 2898 force flag set. Occurs with the addtiffo program for instance. 2899 29002007-04-06 Andrey Kiselev <[email protected]> 2901 2902 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in 2903 functionality from Richard Nolde. As per bug 2904 2905 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525 2906 29072007-03-28 Frank Warmerdam <[email protected]> 2908 2909 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC. 2910 29112007-03-17 Joris Van Damme <[email protected]> 2912 2913 * start of BigTIFF upgrade - CVS HEAD unstable until further notice 2914 29152007-03-07 Joris Van Damme <[email protected]> 2916 2917 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading 2918 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling 2919 factor. This bug is mentioned in: 2920 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390 2921 http://www.asmail.be/msg0054766825.html 2922 29232007-03-07 Joris Van Damme <[email protected]> 2924 2925 * libtiff/tif_win32.c: made inclusion of windows.h unconditional 2926 2927 * libtiff/tif_win32.c: replaced preprocessor indication for consiously 2928 unused arguments by standard C indication for the same 2929 29302007-02-27 Andrey Kiselev <[email protected]> 2931 2932 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte 2933 counters in TIFFFetchData(). Should finally fix the issue 2934 2935 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2936 29372007-02-24 Andrey Kiselev <[email protected]> 2938 2939 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount. 2940 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350 2941 2942 * libtiff/tif_dirread.c: Added special function to handle 2943 SubjectDistance EXIF tag as per bug 2944 2945 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362 2946 2947 * tools/tiff2pdf.c: Do not assume inches when the resolution units 2948 do not specified. As per bug 2949 2950 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366 2951 2952 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if 2953 it was set as infinite. As per bug 2954 2955 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368 2956 2957 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed 2958 by Richard Nolde. As per bug 2959 2960 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383 2961 29622007-02-22 Andrey Kiselev <[email protected]> 2963 2964 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with 2965 ExtraSamples == 999 produced by Corel Draw. As per bug 2966 2967 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490 2968 2969 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters 2970 changed from tsize_t to uint32 to be able to work with data arrays 2971 larger than 2GB. Fixes bug 2972 2973 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2974 2975 Idea submitted by Matt Hancher. 2976 29772007-01-31 Andrey Kiselev <[email protected]> 2978 2979 * tools/tif2rgba.c: This utility does not work properly on big-endian 2980 architectures. It was fixed including the bug 2981 2982 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149 2983 29842007-01-15 Mateusz Loskot <[email protected]> 2985 2986 * Submitted libtiff port for Windows CE platform 2987 * libtiff/tif_config.wince.h: Added configuration header for WinCE. 2988 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE. 2989 * libtiff/tif_wince.c: Added WinCE-specific implementation of some 2990 functons from tif_win32.c. 2991 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c. 2992 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some 2993 standard header files for Windows CE build. 2994 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE. 2995 29962006-11-19 Frank Warmerdam <[email protected]> 2997 2998 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if 2999 we move a strip. 3000 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359 3001 30022006-10-13 Andrey Kiselev <[email protected]> 3003 3004 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported 3005 in Gentoo bug (): 3006 3007 http://bugs.gentoo.org/show_bug.cgi?id=142383 3008 3009 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable. 3010 Though it is still far from the state of being working and useful. 3011 30122006-10-12 Andrey Kiselev <[email protected]> 3013 3014 * libtiff/tif_fax3.c: Save the state of printdir codec dependent 3015 method. 3016 3017 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method 3018 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273 3019 3020 * libtiff/tif_win32.c: Fixed problem with offset value manipulation 3021 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322 3022 3023 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for 3024 vulnerabilities, reported in Gentoo bug (): 3025 3026 http://bugs.gentoo.org/show_bug.cgi?id=142383 3027 30282006-09-28 Andrey Kiselev <[email protected]> 3029 3030 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple 3031 vulnerabilities, as per Gentoo bug (): 3032 3033 http://bugs.gentoo.org/show_bug.cgi?id=142383 3034 30352006-09-27 Frank Warmerdam <[email protected]> 3036 3037 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing 3038 encoding and decoding on the same read-write TIFF handle. The LZW 3039 code can now maintain encode and decode state at the same time. The 3040 ZIP code will switch back and forth as needed. 3041 http://bugzilla.remotesensing.org/show_bug.cgi?id=757 3042 30432006-09-20 Frank Warmerdam <[email protected]> 3044 3045 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and 3046 tif_config.vc.h for easier identification by folks using an IDE. 3047 30482006-07-25 Frank Warmerdam <[email protected]> 3049 3050 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron 3051 30522006-07-19 Frank Warmerdam <[email protected]> 3053 3054 * tif_dirwrite.c: take care not to flush out buffer of strip/tile 3055 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates 3056 to bug report by Peng Gao with black strip at bottom of images. 3057 30582006-07-12 Frank Warmerdam <[email protected]> 3059 3060 * tif_dirwrite.c: make sure to use uint32 for wordcount in 3061 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields. 3062 It already seems to have been done for other field types. Needed 3063 for "tiffset" on files with geotiff ascii text. 3064 30652006-07-04 Bob Friesenhahn <[email protected]> 3066 3067 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c} 3068 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and 3069 its use does not appear to be required, so use it only when it is 3070 available. 3071 30722006-06-24 Andrey Kiselev <[email protected]> 3073 3074 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961). 3075 3076 * libtiff/tif_dirread.c: Move IFD fetching code in the separate 3077 function TIFFFetchDirectory() avoiding code duplication in 3078 TIFFReadDirectory() and TIFFReadCustomDirectory(). 3079 30802006-06-19 Frank Warmerdam <[email protected]> 3081 3082 * tools/tiff2pdf.c: Fix handling of -q values. 3083 http://bugzilla.remotesensing.org/show_bug.cgi?id=587 3084 30852006-06-17 Frank Warmerdam <[email protected]> 3086 3087 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled 3088 files. Modified TIFFReadDirectory() to not invoke 3089 EstimateStripByteCounts() for case where entry 0 and 1 are unequal 3090 but one of them is zero. 3091 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204 3092 30932006-06-08 Andrey Kiselev <[email protected]> 3094 3095 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping 3096 checking code in the separate function TIFFCheckDirOffset(). 3097 3098 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function. 3099 3100 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug 3101 3102 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191 3103 3104 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug 3105 3106 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194 3107 3108 * tools/tiff2pdf.c: Fixed buffer overflow condition in 3109 t2p_write_pdf_string() as per bug 3110 3111 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196 3112 31132006-06-07 Andrey Kiselev <[email protected]> 3114 3115 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added 3116 support for JBIG compression scheme (34661 code) contributed by Lee 3117 Howard. As per bug 3118 3119 http://bugzilla.remotesensing.org/show_bug.cgi?id=896 3120 3121 * configure, configure.ac: OJPEG support enabled by default. 3122 3123 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch. 3124 31252006-06-03 Bob Friesenhahn <[email protected]> 3126 3127 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in 3128 TIFFPrintDirectory(). Joris Van Damme authored the fix. 3129 31302006-04-21 Andrey Kiselev <[email protected]> 3131 3132 * tools/tiff2pdf.c: Unified line ending characters (always use '\n') 3133 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163 3134 3135 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am, 3136 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}: 3137 Added support for OpenVMS by Alexey Chupahin, [email protected]. 3138 31392006-04-20 Andrey Kiselev <[email protected]> 3140 3141 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}: 3142 Properly set the binary mode for stdin stream as per bug 3143 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141 3144 3145 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1, 3146 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1, 3147 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1, 3148 tiffset.1}: Improvements in page formatting as per bug 3149 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140 3150 3151 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed 3152 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139 3153 31542006-04-18 Frank Warmerdam <[email protected]> 3155 3156 * nmake.opt: use /EHsc for VS2005 compatibility. Also define 3157 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005. 3158 31592006-04-12 Joris Van Damme <[email protected]> 3160 3161 * libtiff/tif_getimage.c: Added support for planarconfig separate 3162 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1]) 3163 31642006-04-11 Joris Van Damme <[email protected]> 3165 3166 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines 3167 - Conversion of unassociated alpha to associated alpha now done with 3168 more performant LUT, and calculation more correct 3169 - Conversion of 16bit data to 8bit data now done with 3170 more performant LUT, and calculation more correct 3171 - Bugfix of handling of 16bit RGB with unassociated alpha 3172 31732006-04-11 Joris Van Damme <[email protected]> 3174 3175 * libtiff/tif_getimage.c: 3176 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated 3177 buffer for alpha strile and filled it, only to never read it back. 3178 Removed allocation and fill. 3179 - Minor rename of vars in gtTileSeparate and gtStripSeparate 3180 anticipating planned functionality extension 3181 31822006-04-08 Joris Van Damme <[email protected]> 3183 3184 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase 3185 and pickTileSeparateCase to PickSeparateCase as both work on strips as 3186 well 3187 3188 * libtiff/tif_getimage.c: moved img->get selection from 3189 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create 3190 logical hook for planned functionality extension 3191 31922006-04-08 Joris Van Damme <[email protected]> 3193 3194 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence 3195 of inappropriate use of jpeg_abort instead of jpeg_destroy 3196 31972006-04-07 Joris Van Damme <[email protected]> 3198 3199 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in 3200 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour 3201 on subsampled images - this ought to get sorted when we feel brave 3202 enough to replace TIFFScanlineSize alltogether 3203 3204 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip 3205 32062006-04-04 Joris Van Damme <[email protected]> 3207 3208 * libtiff/tiffio.h: added new type tstrile_t 3209 3210 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips 3211 to new tstrile_t, types of td_stripoffset and td_stripbytecount to 3212 toff_t* 3213 3214 * libtiff/tif_ojpeg.c: totally new implementation 3215 3216 * libtiff/tif_dirread.c: added several hacks to suit new support of 3217 OJPEG 3218 3219 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling 3220 of OJPEG images in favor of tif_getimage.c native handling of 3221 YCbCr and desubsampling 3222 32232006-03-29 Frank Warmerdam <[email protected]> 3224 3225 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric 3226 interpretation causes the "upsampled" flag to be recomputed. Fixes 3227 peculiar bug where photometric flag had to be set before jpegcolormode 3228 flag. 3229 32302006-03-25 Joris Van Damme <[email protected]> 3231 3232 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw 3233 3234 * libtiff/tif_strip.c: temporarilly added two new versions of 3235 TIFFScanlineSize 3236 - TIFFNewScanlineSize: proposed new version, after all related 3237 issues and side-effects are sorted out 3238 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change 3239 This needs further sorting out. 3240 32412006-03-25 Joris Van Damme <[email protected]> 3242 3243 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size 3244 of last truncated strip data to TIFFWriteEncodedStrip 3245 32462006-03-25 Joris Van Damme <[email protected]> 3247 3248 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw 3249 32502006-03-25 Joris Van Damme <[email protected]> 3251 3252 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile 3253 3254 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile 3255 3256 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to 3257 prepare the path for new tif_ojpeg.c 3258 32592006-03-23 Andrey Kiselev <[email protected]> 3260 3261 * libtiff 3.8.2 released. 3262 3263 * tools/Makefile.am: Use runtime paths linker flags when rpath 3264 option enabled. 3265 32662006-03-21 Andrey Kiselev <[email protected]> 3267 3268 * libtiff/libtiff.def: Added missed exports as per bug 3269 http://bugzilla.remotesensing.org/attachment.cgi?id=337 3270 3271 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc, 3272 tools/Makefile.vc: Makefiles improvements as per bug 3273 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128 3274 3275 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h}, 3276 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions 3277 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127 3278 3279 * libtiff/tif_strip.c: Take subsampling in account when calculating 3280 TIFFScanlineSize(). 3281 3282 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length. 3283 32842006-03-17 Andrey Kiselev <[email protected]> 3285 3286 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug 3287 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125 3288 3289 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug 3290 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124 3291 32922006-03-16 Andrey Kiselev <[email protected]> 3293 3294 * libtiff/tiffiop.h: Added decalration for 3295 _TIFFSetDefaultCompressionState(). 3296 3297 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c, 3298 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all 3299 codec cleanup methods. As per bug 3300 3301 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120 3302 33032006-03-15 Andrey Kiselev <[email protected]> 3304 3305 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As 3306 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119 3307 3308 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength. 3309 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110 3310 3311 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro 3312 removed; move here the STRIP_SIZE_DEFAULT macro definition. 3313 3314 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT 3315 macro definition. 3316 3317 * libtiff/tif_dir.c: Use double type instead of dblparam_t. 3318 33192006-03-14 Andrey Kiselev <[email protected]> 3320 3321 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence 3322 in TIFFReadDirectory, because it is always set at the start of 3323 function and we allow TIFFs without that tag set. 3324 33252005-03-13 Andrey Kiselev <[email protected]> 3326 3327 * libtiff 3.8.1 released. 3328 33292006-03-07 Andrey Kiselev <[email protected]> 3330 3331 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray() 3332 function as per bug 3333 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3334 3335 * libtiff/tif_dirread.c: More wise check for integer overflow 3336 condition as per bug 3337 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3338 3339 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}: 3340 Properly restore setfield/getfield methods in cleanup functions. As 3341 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3342 33432006-03-03 Andrey Kiselev <[email protected]> 3344 3345 * libtiff/{tif_predict.c, tif_predict.h}: Added new function 3346 TIFFPredictorCleanup() to restore parent decode/encode/field methods. 3347 3348 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use 3349 TIFFPredictorCleanup() in codec cleanup methods. As per bug 3350 3351 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3352 3353 * libtiff/tif_dirread.c: Fixed integer overflow condition in 3354 TIFFFetchData() function. As per bug 3355 3356 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3357 33582006-03-01 Andrey Kiselev <[email protected]> 3359 3360 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the 3361 TIFFSetField() method, not directly. As per bug 3362 3363 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043 3364 3365 * tools/ppm2tiff.c: Added support for PBM files as per bug 3366 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044 3367 33682006-02-27 Andrey Kiselev <[email protected]> 3369 3370 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline() 3371 to avoid crash as per bug 3372 3373 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081. 3374 33752006-02-26 Andrey Kiselev <[email protected]> 3376 3377 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and 3378 t2p_sample_rgba_to_rgb() was used in place of each other, that was 3379 resulted in problems with RGBA images with associated alpha. 3380 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097 3381 33822006-02-23 Andrey Kiselev <[email protected]> 3383 3384 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per 3385 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3386 3387 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER, 3388 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE 3389 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3390 3391 * tools/tiff2ps.c: Properly scale all the pages when converting 3392 multipage TIFF with /width/height/center options set. As per bug 3393 3394 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080 3395 33962006-02-15 Andrey Kiselev <[email protected]> 3397 3398 * tools/tiff2pdf.c: Do not create output file until all option checks 3399 will be done. As per bug 3400 3401 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072 3402 3403 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the 3404 list of input files as per bug: 3405 3406 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077 3407 34082006-02-09 Andrey Kiselev <[email protected]> 3409 3410 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per 3411 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063. 3412 3413 * tools/tiffgt.c: Avoid crashing in case of image unsupported by 3414 TIFFRGBAImage interface. 3415 3416 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per 3417 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065. 3418 34192006-02-07 Frank Warmerdam <[email protected]> 3420 3421 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG 3422 compressed TIFF files, per submission from Dan Cobra. 3423 34242006-02-07 Andrey Kiselev <[email protected]> 3425 3426 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly 3427 cast values to avoid warnings. As per bug 3428 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3429 3430 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when 3431 appropriate. As per bug 3432 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3433 3434 * libtiff/tif_aux.c: Fixed type of temporary variable in 3435 _TIFFCheckMalloc() as per bug 3436 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3437 34382006-02-06 Andrey Kiselev <[email protected]> 3439 3440 * libtiff/tif_aux.c: Return static array when fetching default 3441 YCbCrCoefficients (another problem, reported a the 3442 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry). 3443 34442006-02-03 Andrey Kiselev <[email protected]> 3445 3446 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints, 3447 YCbCrSubsampling and DotRange tags as per bugs 3448 3449 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 3450 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034 3451 3452 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of 3453 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug 3454 3455 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026. 3456 34572006-01-23 Andrey Kiselev <[email protected]> 3458 3459 * libtool related stuff updated from the 2.1a branch. 3460 34612006-01-11 Frank Warmerdam <[email protected]> 3462 3463 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff, 3464 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works 3465 properly as per bug: 3466 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025 3467 34682006-01-09 Bob Friesenhahn <[email protected]> 3469 3470 * configure.ac: Fix with_default_strip_size comparison as reported 3471 by Norihiko Murase. 3472 34732006-01-08 Bob Friesenhahn <[email protected]> 3474 3475 * test/Makefile.am (LIBTIFF): Due to linking against libtiff 3476 incorrectly, tests were not actually testing the uninstalled 3477 libtiff. Now they are. 3478 34792006-01-04 Andrey Kiselev <[email protected]> 3480 3481 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE, 3482 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount 3483 should be uint32 value. 3484 34852006-01-02 Bob Friesenhahn <[email protected]> 3486 3487 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can 3488 be used if build directory is not the same as source directory. 3489 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented 3490 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET, 3491 and re-sorted tag names in alphabetical order. 3492 34932005-12-29 Andrey Kiselev <[email protected]> 3494 3495 * libtiff 3.8.0 released. 3496 34972005-12-28 Bob Friesenhahn <[email protected]> 3498 3499 * tools/bmp2tiff.c (main): Fixed warning regarding returning 3500 inconsistent types from a condition. 3501 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf 3502 format. 3503 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs. 3504 35052005-12-28 Joris Van Damme <[email protected]> 3506 3507 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML 3508 35092005-12-27 Andrey Kiselev <[email protected]> 3510 3511 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including 3512 windows.h, to reduce the compile time. 3513 35142005-12-26 Bob Friesenhahn <[email protected]> 3515 3516 * libtiff/tif_jpeg.c: Improve compilation under MinGW. 3517 35182005-12-26 Andrey Kiselev <[email protected]> 3519 3520 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}: 3521 tiffFieldInfo and exifFieldInfo arrays definitions moved back to 3522 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo() 3523 private functions to retrieve FieldInfo arrays. 3524 35252005-12-24 Bob Friesenhahn <[email protected]> 3526 3527 * html/build.html: Added some additional instructions for when 3528 building using MSVC under Windows. Also fixed two HTML syntax 3529 errors and used HTML Tidy to tidy up the HTML syntax and 3530 formatting. 3531 35322005-12-24 Andrey Kiselev <[email protected]> 3533 3534 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c, 3535 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and 3536 StoNits tags custom. 3537 35382005-12-23 Andrey Kiselev <[email protected]> 3539 3540 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make 3541 WhitePoint tag custom. 3542 3543 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added. 3544 35452005-12-23 Joris Van Damme <[email protected]> 3546 3547 * libtiff/tiffio.h: fixed typo that potentially resulted in 3548 redefininition of USE_WIN32_FILEIO 3549 3550 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning 3551 calls in core LibTiff. 3552 35532005-12-21 Andrey Kiselev <[email protected]> 3554 3555 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC, 3556 Photoshop and ICCProfile tags custom. 3557 35582005-12-21 Joris Van Damme <[email protected]> 3559 3560 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling 3561 newer code to get context indicator in error handler and still 3562 remain compatible with older code: Done TIFFError calls everywhere 3563 except in tools 3564 35652005-12-20 Andrey Kiselev <[email protected]> 3566 3567 * tools/tiffcp.c: Added many error reporting messages; fixed integer 3568 overflow as per bug 3569 3570 http://bugzilla.remotesensing.org/show_bug.cgi?id=789 3571 35722005-12-16 Frank Warmerdam <[email protected]> 3573 3574 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled 3575 YCbCr images in jpeg compressed TIFF files. 3576 35772005-12-14 Andrey Kiselev <[email protected]> 3578 3579 * tools/tiffcp.c: Return non-zero status when reading fails (again). 3580 35812005-12-13 Andrey Kiselev <[email protected]> 3582 3583 * tools/tiffcp.c: Return non-zero status when reading fails. 3584 35852005-12-12 Andrey Kiselev <[email protected]> 3586 3587 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags. 3588 35892005-12-09 Andrey Kiselev <[email protected]> 3590 3591 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag 3592 custom. 3593 3594 * tools/tiffinfo.c: Print EXIF directory contents if exist. 3595 3596 * libtiff/tiff.h: Few EXIF tag numbers added. 3597 3598 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c, 3599 tiffio.h}: Preliminary support to read custom directories. New 3600 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory(). 3601 36022005-12-07 Andrey Kiselev <[email protected]> 3603 3604 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}: 3605 More work to implement custom directory read support. 3606 3607 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h, 3608 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite 3609 tags custom. 3610 36112005-12-05 Andrey Kiselev <[email protected]> 3612 3613 * libtiff/tif_dirread.c: One more workaround for broken 3614 StripByteCounts tag. Handle the case when StripByteCounts array filled 3615 with completely wrong values. 3616 36172005-11-30 Andrey Kiselev <[email protected]> 3618 3619 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure 3620 in the TIFFOpenW() function as per bug 3621 3622 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003 3623 3624 * libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind() 3625 functions as per bug 3626 3627 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008 3628 36292005-11-20 Frank Warmerdam <[email protected]> 3630 3631 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support 3632 for MS MDI format. 3633 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002 3634 3635 * .cvsignore: many files added, and a few update according 3636 to suggestion of Brad HArds on tiff mailing list. 3637 36382005-11-03 Frank Warmerdam <[email protected]> 3639 3640 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory 3641 public. 3642 36432005-10-31 Andrey Kiselev <[email protected]> 3644 3645 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays 3646 as per bug 3647 3648 http://bugzilla.remotesensing.org/show_bug.cgi?id=943 3649 3650 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter 3651 as per bug 3652 3653 http://bugzilla.remotesensing.org/show_bug.cgi?id=944 3654 3655 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization 3656 problem as per bug 3657 3658 http://bugzilla.remotesensing.org/show_bug.cgi?id=946 3659 3660 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug 3661 3662 http://bugzilla.remotesensing.org/show_bug.cgi?id=965 3663 3664 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and 3665 ResolutionUnit tags modifiable during write process. As per bug 3666 3667 http://bugzilla.remotesensing.org/show_bug.cgi?id=977 3668 3669 * tools/tiffsplit.c: Copy fax related fields over splitted parts 3670 as per bug 3671 3672 http://bugzilla.remotesensing.org/show_bug.cgi?id=983 3673 36742005-10-21 Frank Warmerdam <[email protected]> 3675 3676 * tif_dirread.c: Don't try and split single strips into "0" strips 3677 in ChopUpSingleUncompressedStrip. This happens in some degenerate 3678 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff) 3679 36802005-10-20 Joris Van Damme <[email protected]> 3681 3682 * tif_fax3.c: changed 'at scanline ...' style warning/errors 3683 with incorrect use of tif_row, to 'at line ... of 3684 strip/tile ...' style 3685 36862005-10-15 Frank Warmerdam <[email protected]> 3687 3688 * tif_write.c: fixed setting of planarconfig as per bug report 3689 on the mailing list from Joris. 3690 36912005-10-07 Andrey Kiselev <[email protected]> 3692 3693 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h, 3694 tif_dirread.c}: Make the default strip size configurable via the 3695 --with-default-strip-size and STRIP_SIZE_DEFAULT options. 3696 36972005-09-30 Bob Friesenhahn <[email protected]> 3698 3699 * html/support.html: Fixed link to documentation on Greg Ward's 3700 LogLuv TIFF format. 3701 37022005-09-28 Andrey Kiselev <[email protected]> 3703 3704 * tools/tiffdump.c: Fixed crash when reading malformed tags. 3705 37062005-09-20 Andrey Kiselev <[email protected]> 3707 3708 * tools/tiff2pdf.c: Added missed 'break' statement as per bug 3709 http://bugzilla.remotesensing.org/show_bug.cgi?id=932 3710 37112005-09-12 Andrey Kiselev <[email protected]> 3712 3713 * libtiff 3.7.4 released. 3714 3715 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch 3716 from Patrick Welche (all scripts moved in the 'config' and 'm4' 3717 directories). 3718 37192005-09-12 Frank Warmerdam <[email protected]> 3720 3721 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris. 3722 37232005-09-05 Frank Warmerdam <[email protected]> 3724 3725 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV 3726 also set it to NULL to avoid double free when re-setting custom 3727 string fields as per: 3728 3729 http://bugzilla.remotesensing.org/show_bug.cgi?id=922 3730 37312005-08-12 Frank Warmerdam <[email protected]> 3732 3733 * libtiff/tif_print.c: avoid signed/unsigned warning. 3734 3735 * libtiff/tif_dirread.c: removed unused variable. 3736 37372005-07-30 Frank Warmerdam <[email protected]> 3738 3739 * libtiff/tif_dir.c: Fixed up support for swapping "double complex" 3740 values (128 bits as 2 64 bits doubles). GDAL gcore tests now 3741 pass on bigendian (macosx) system. 3742 37432005-07-28 Andrey Kiselev <[email protected]> 3744 3745 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename 3746 CheckMalloc() function to _TIFFCheckMalloc() and make it available 3747 globally as an internal helper routine. 3748 37492005-07-27 Andrey Kiselev <[email protected]> 3750 3751 * libtiff/tif_dir.c: More improvements in the "pass by value" part of 3752 the custom tags handling code. 3753 37542005-07-26 Andrey Kiselev <[email protected]> 3755 3756 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to 3757 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples() 3758 function, use TIFFFetchNormalTag() instead as per bug 3759 3760 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3761 3762 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag() 3763 instead. 3764 3765 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug 3766 3767 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3768 37692005-07-25 Andrey Kiselev <[email protected]> 3770 3771 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays. 3772 3773 * tools/tiffdump.c: Added support for TIFF_IFD datatype. 3774 37752005-07-21 Andrey Kiselev <[email protected]> 3776 3777 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in 3778 the TIFFWriteCheck() function in case of single band images (as per 3779 TIFF spec). 3780 37812005-07-12 Andrey Kiselev <[email protected]> 3782 3783 * SConstruct, libtiff/SConstruct: Added the first very preliminary 3784 support for SCons software building tool (http://www.scons.org/). 3785 This is experimental infrastructure and it will exist along with the 3786 autotools mechanics. 3787 37882005-07-07 Andrey Kiselev <[email protected]> 3789 3790 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from 3791 the NetBSD source tree (the old 4-clause BSD license changed to 3792 the new 3-clause one). 3793 3794 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind() 3795 replacement module. 3796 3797 * port/dummy.c: Make the dummy function static. 3798 37992005-07-06 Andrey Kiselev <[email protected]> 3800 3801 * tools/tiffcp.c: Fixed WhitePoint tag copying. 3802 3803 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}: 3804 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera, 3805 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom. 3806 38072005-07-04 Andrey Kiselev <[email protected]> 3808 3809 * libtiff 3.7.3 released. 3810 3811 * configure, configure.ac: Do not use empty -R option when linking 3812 with --enable-rpath. 3813 38142005-07-01 Andrey Kiselev <[email protected]> 3815 3816 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid 3817 reading the first IFD when needed. As per bug 3818 3819 http://bugzilla.remotesensing.org/show_bug.cgi?id=875 3820 3821 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side 3822 effects. 3823 38242005-06-23 Andrey Kiselev <[email protected]> 3825 3826 * tools/tiff2pdf.c: Print two characters per loop in the 3827 t2p_write_pdf_trailer(). As per bug 3828 3829 http://bugzilla.remotesensing.org/show_bug.cgi?id=594 3830 3831 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As 3832 per bug 3833 3834 http://bugzilla.remotesensing.org/show_bug.cgi?id=844 3835 3836 * acinclude.m4: Updated to latest OpenGL test macros versions. 3837 3838 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler 3839 platform. As per bug 3840 3841 http://bugzilla.remotesensing.org/show_bug.cgi?id=855 3842 38432005-06-14 Andrey Kiselev <[email protected]> 3844 3845 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits 3846 and YClipPathUnits tags. 3847 38482005-06-07 Andrey Kiselev <[email protected]> 3849 3850 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size; 3851 use pixel sized shift in contigous case. 3852 38532005-06-06 Andrey Kiselev <[email protected]> 3854 3855 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}: 3856 Make overviews working for contiguos images. 3857 38582005-06-03 Andrey Kiselev <[email protected]> 3859 3860 * libtiff/tif_open.c: Replace runtime endianess check with the compile 3861 time one. 3862 3863 * libtiff/tif_predict.c: Floating point predictor now works on 3864 big-endian hosts. 3865 38662005-06-01 Andrey Kiselev <[email protected]> 3867 3868 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom 3869 ASCII values. 3870 3871 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make 3872 DocumentName, Artist, HostComputer, ImageDescription, Make, Model, 3873 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and 3874 TargetPrinter tags custom. 3875 3876 * libtiff/tif_jpeg.c: Cleanup the codec state depending on 3877 TIFF_CODERSETUP flag (to fix memry leaks). 3878 3879 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after 3880 allocating. 3881 38822005-05-26 Andrey Kiselev <[email protected]> 3883 3884 * configure.ac, libtiff/Makefile.am: Added workaround for 3885 OpenBSD/MirOS soname problem as per bug 3886 3887 http://bugzilla.remotesensing.org/show_bug.cgi?id=838 3888 3889 * libtiff/tif_dirwrite.c: Use tdir_count when calling 3890 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as 3891 per bug 3892 3893 http://bugzilla.remotesensing.org/show_bug.cgi?id=845 3894 38952005-05-25 Andrey Kiselev <[email protected]> 3896 3897 * tools/ppm2tiff.c: Fixed format string when read PPM file header with 3898 the fscanf() function. As per bug 3899 3900 http://bugzilla.remotesensing.org/show_bug.cgi?id=861 3901 3902 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns 3903 uint16 array when fetching the BYTE and SBYTE filds, so we should 3904 consider result as pointer to uint16 array and not as array of chars. 3905 As per bug 3906 3907 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3908 3909 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug 3910 3911 http://bugzilla.remotesensing.org/show_bug.cgi?id=830 3912 3913 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share 3914 mode in CreateFile() call as per bug 3915 3916 http://bugzilla.remotesensing.org/show_bug.cgi?id=829 3917 3918 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and 3919 libtiffxx libraries as per bug 3920 3921 http://bugzilla.remotesensing.org/show_bug.cgi?id=826 3922 3923 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with 3924 GDAL. 3925 39262005-05-23 Frank Warmerdam <[email protected]> 3927 3928 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with 3929 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables 3930 in directory. 3931 39322005-05-22 Frank Warmerdam <[email protected]> 3933 3934 * libtiff/tif_dirread.c: Changed the code that computes 3935 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is 3936 zero. This is a common case with GDAL indicating a "null" tile/strip. 3937 39382005-05-17 Andrey Kiselev <[email protected]> 3939 3940 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying. 3941 39422005-05-06 Frank Warmerdam <[email protected]> 3943 3944 * libtiff/tif_dirread.c: Applied similar change to 3945 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys. 3946 3947 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3948 3949 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw(). 3950 39512005-05-06 Andrey Kiselev <[email protected]> 3952 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly; 3953 added new option '-b' to use interpolation in output PDF files (Bruno 3954 Ledoux). 3955 39562005-05-05 Frank Warmerdam <[email protected]> 3957 3958 * libtiff/tif_dirread.c: Ensure that broken files with too many 3959 values in PerSampleShorts work ok instead of crashing. 3960 3961 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3962 39632005-04-27 Andrey Kiselev <[email protected]> 3964 3965 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the 3966 input file. 3967 39682005-04-15 Andrey Kiselev <[email protected]> 3969 3970 * libtiff/tif_predict.c: Added ability to encode floating point 3971 predictor, as per TIFF Technical Note 3. 3972 39732005-04-14 Andrey Kiselev <[email protected]> 3974 3975 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode 3976 floating point predictor, as per TIFF Technical Note 3. 3977 39782005-04-13 Andrey Kiselev <[email protected]> 3979 3980 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}: 3981 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to 3982 swap 24-bit floating point values. 3983 3984 * libtiff/tiff.h: Added predictor constants. 3985 39862005-04-08 Andrey Kiselev <[email protected]> 3987 3988 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate 3989 values in _TIFFVSetField() function. Inspired by the bug 3990 3991 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3992 3993 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag 3994 as per bug 3995 3996 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3997 39982005-03-30 Andrey Kiselev <[email protected]> 3999 4000 * libtiff/tif_open.c: Do not read header in case the output file 4001 should be truncated (Ron). 4002 4003 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead 4004 of bsearch() in _TIFFFindFieldInfoByName() function (Ron). 4005 4006 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron). 4007 40082005-03-22 Andrey Kiselev <[email protected]> 4009 4010 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass 4011 rpath option. 4012 40132005-03-21 Andrey Kiselev <[email protected]> 4014 4015 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom 4016 tags. 4017 40182005-03-18 Andrey Kiselev <[email protected]> 4019 4020 * libtiff/dirinfo.c: Added DNG tags. 4021 4022 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag 4023 handling code. 4024 4025 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo); 4026 added DNG 1.1.0.0 tags. 4027 4028 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per 4029 bug 4030 4031 http://bugzilla.remotesensing.org/show_bug.cgi?id=794 4032 4033 * man/TIFFGetField.3tiff: Add a note about autoregistered tags. 4034 40352005-03-17 Andrey Kiselev <[email protected]> 4036 4037 * nmake.opt: Build with Win32 CRT library by default. 4038 4039 * tools/tiff2ps.c: Fixed typo in page size handling code. 4040 4041 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed 4042 by value. 4043 4044 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags. 4045 40462005-03-15 Andrey Kiselev <[email protected]> 4047 4048 * libtiff 3.7.2 released. 4049 40502005-03-09 Andrey Kiselev <[email protected]> 4051 4052 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and 4053 floating point data; complain on unsupported bit depths. 4054 40552005-03-05 Andrey Kiselev <[email protected]> 4056 4057 * tif_stream.cxx: Use ios namespace instead of ios_base to support 4058 GCC 2.95. 4059 4060 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from 4061 Lee Howard for HylaFax DCS tag 4062 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771) 4063 40642005-03-04 Andrey Kiselev <[email protected]> 4065 4066 * configure, configure.ac: Use -rpath option instead of -R as per bug 4067 4068 http://bugzilla.remotesensing.org/show_bug.cgi?id=732 4069 4070 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee 4071 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax 4072 software. As per bug 4073 4074 http://bugzilla.remotesensing.org/show_bug.cgi?id=771 4075 4076 * nmake.opt, html/build.html: Add more comments, change the config 4077 file organization a bit as per bug 4078 4079 http://bugzilla.remotesensing.org/show_bug.cgi?id=764 4080 4081 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison 4082 as per bug 4083 4084 http://bugzilla.remotesensing.org/show_bug.cgi?id=785 4085 40862005-03-03 Andrey Kiselev <[email protected]> 4087 4088 * libtiff/tif_dirread.c: More logic to guess missed strip size as per 4089 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4090 4091 * tools/fax2ps.c: Replace insecure mktemp() function with the 4092 tmpfile() as per bug 4093 4094 http://bugzilla.remotesensing.org/show_bug.cgi?id=786 4095 40962005-02-04 Andrey Kiselev <[email protected]> 4097 4098 * libtiff/tiff.h: Changed the int8 definition to be always signed char 4099 as per bug 4100 4101 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4102 4103 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{} 4104 block as per bug 4105 4106 http://bugzilla.remotesensing.org/show_bug.cgi?id=763 4107 41082005-02-03 Bob Friesenhahn <[email protected]> 4109 4110 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images 4111 display more correctly. Images display brighter than they should 4112 on a Sun workstation. 4113 41142005-02-03 Andrey Kiselev <[email protected]> 4115 4116 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or 4117 suspicious values in the tags. As per bugs 4118 4119 http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4120 4121 and 4122 4123 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 4124 4125 * tools/tiff2ps.c: Fixed problem with page sizes as per bug 4126 4127 http://bugzilla.remotesensing.org/show_bug.cgi?id=742 4128 41292005-01-31 Bob Friesenhahn <[email protected]> 4130 4131 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description. 4132 (TIFFTAG_TILELENGTH): Corrected description. 4133 41342005-01-30 Andrey Kiselev <[email protected]> 4135 4136 * configure.ac: Fixes for --with-docdir option as per bug 4137 4138 http://bugzilla.remotesensing.org/show_bug.cgi?id=759 4139 4140 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per 4141 bug 4142 4143 http://bugzilla.remotesensing.org/show_bug.cgi?id=756 4144 4145 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from 4146 Michael Rinne and Edward Lam. 4147 41482005-01-15 Andrey Kiselev <[email protected]> 4149 4150 * configure.ac: Make the documentation directory location configurable 4151 via the --with-docdir option (as suggested by Jeremy C. Reed). 4152 4153 * libtiff/tif_color.c: Use double as the second argument of pow() 4154 function in TIFFCIELabToRGBInit(). As per bug 4155 4156 http://bugzilla.remotesensing.org/show_bug.cgi?id=741 4157 4158 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to 4159 integer as per bug 4160 4161 http://bugzilla.remotesensing.org/show_bug.cgi?id=740 4162 4163 * libtiff/tif_getimage.c: Always fill the error message buffer in 4164 TIFFRGBAImageBegin() as per bug 4165 4166 http://bugzilla.remotesensing.org/show_bug.cgi?id=739 4167 41682005-01-12 Andrey Kiselev <[email protected]> 4169 4170 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific 4171 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME 4172 tags as per bug 4173 4174 http://bugzilla.remotesensing.org/show_bug.cgi?id=736 4175 4176 * libtiff/tif_win32.c: Fixed message formatting in functions 4177 Win32WarningHandler() and Win32ErrorHandler() as per bug 4178 4179 http://bugzilla.remotesensing.org/show_bug.cgi?id=735 4180 4181 * tools/tiff2ps.c: Interpret the -w and -h options independently. As 4182 per bug 4183 4184 http://bugzilla.remotesensing.org/show_bug.cgi?id=689 4185 41862005-01-11 Andrey Kiselev <[email protected]> 4187 4188 * libtiff/tiffio.h: Move the color conversion routines in the 'extern 4189 "C"' section as per bug 4190 4191 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4192 4193 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C 4194 compiler to avoid double definition of BSD types as per bug 4195 4196 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4197 4198 * libtiff/Makefile.am: Place the C++ stream API in the separate 4199 library called libtiffxx to avoid unneeded dependencies. Probably 4200 there will be more C++ API in the future. As per bugs 4201 4202 http://bugzilla.remotesensing.org/show_bug.cgi?id=733 4203 4204 and 4205 4206 http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4207 42082005-01-05 Andrey Kiselev <[email protected]> 4209 4210 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the 4211 wrong tag counts (Dmitry V. Levin, Martin Pitt). 4212 4213 * configure.ac: Replace --disable-c++ with the --disable-cxx option as 4214 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4215 42162004-12-25 Andrey Kiselev <[email protected]> 4217 4218 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled 4219 RGB-images as per bug 4220 4221 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4222 4223 4224 * tools/tiffset.c: Convert character option to integer value as per 4225 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725 4226 42272004-12-20 Andrey Kiselev <[email protected]> 4228 4229 * libtiff 3.7.1 released. 4230 4231 * html/tiffset.1.html: Add missed manual page as per bug 4232 4233 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4234 4235 * libtiff/tiff.h: Revert back libtiff data type definitions as per 4236 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687 4237 42382004-12-19 Andrey Kiselev <[email protected]> 4239 4240 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when 4241 checking for tag count in TIFFReadDirectory() function. As per bug 4242 4243 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4244 4245 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in 4246 CheckMallock() function. 4247 4248 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled 4249 RGB-images as per bug 4250 4251 http://bugzilla.remotesensing.org/show_bug.cgi?id=718 4252 42532004-12-15 Frank Warmerdam <[email protected]> 4254 4255 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on 4256 SunPro compiler. 4257 42582004-12-11 Bob Friesenhahn <[email protected]> 4259 4260 * autogen.sh: aclocal and autoheader should be executed after 4261 libtoolize. Also add '-I .' to aclocal invocation to check 4262 current directory for macros. 4263 42642004-12-10 Andrey Kiselev <[email protected]> 4265 4266 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type 4267 as per bugs 4268 4269 http://bugzilla.remotesensing.org/show_bug.cgi?id=703 4270 4271 and 4272 4273 http://bugzilla.remotesensing.org/show_bug.cgi?id=704 4274 42752004-12-04 Andrey Kiselev <[email protected]> 4276 4277 * nmake.opt: Link with the user32.lib in windowed mode. As per bug 4278 4279 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4280 4281 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed 4282 mode as per bug 4283 4284 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4285 4286 * libtiff/tif_config.in.vc: Removed unneded definitions for 4287 read/open/close/lseek functions to fix the 4288 4289 http://bugzilla.remotesensing.org/show_bug.cgi?id=680 4290 42912004-12-03 Andrey Kiselev <[email protected]> 4292 4293 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore() 4294 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore 4295 must be removed in the future, as it was never used properly. As per 4296 bug 4297 4298 http://bugzilla.remotesensing.org/show_bug.cgi?id=692 4299 43002004-11-30 Bob Friesenhahn <[email protected]> 4301 4302 * libtiff/tif_jpeg.c: Added a work-around in order to allow 4303 compilation with the heavily modified version of libjpeg delivered 4304 with Cygwin. 4305 43062004-11-29 Andrey Kiselev <[email protected]> 4307 4308 * libtiff/tif_dir.c: Properly handle tags, which have the uint32 4309 counts. As per bug 4310 4311 http://bugzilla.remotesensing.org/show_bug.cgi?id=693 4312 4313 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug 4314 4315 http://bugzilla.remotesensing.org/show_bug.cgi?id=690 4316 43172004-11-28 Andrey Kiselev <[email protected]> 4318 4319 * libtiff/tif_unix.c: Make UNIX module compilable (and usable) 4320 on Windows. 4321 4322 * nmake.opt: Add missed DLLNAME variable. 4323 43242004-11-26 Frank Warmerdam <[email protected]> 4325 4326 * libtiff/makefile.vc: make it easier to rename the libtiff DLL. 4327 43282004-11-24 Andrey Kiselev <[email protected]> 4329 4330 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as 4331 per bug 4332 4333 http://bugzilla.remotesensing.org/show_bug.cgi?id=545 4334 4335 * man/tiffset.1: Added manual page for tiffset tool written by Jay 4336 Berkenbilt. As per bug 4337 4338 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4339 43402004-11-23 Frank Warmerdam <[email protected]> 4341 4342 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError. 4343 43442004-11-21 Frank Warmerdam <[email protected]> 4345 4346 * html/document.html: Updated Adobe web links as per email from Joris. 4347 43482004-11-21 Andrey Kiselev <[email protected]> 4349 4350 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new 4351 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to 4352 use C++ streams should #include <tiffio.hxx>. 4353 43542004-11-13 Andrey Kiselev <[email protected]> 4355 4356 * libtiff/tiff.h: Added Adobe DNG tags. 4357 4358 * libtiff/tif_win32.c: Typo fixed. 4359 4360 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to 4361 be compliant with the latest standard. Appropriate additions in 4362 makefiles now completed. 4363 43642004-11-11 Andrey Kiselev <[email protected]> 4365 4366 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the 4367 different tag types. As per bug 4368 4369 http://bugzilla.remotesensing.org/show_bug.cgi?id=600 4370 43712004-11-10 Andrey Kiselev <[email protected]> 4372 4373 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for 4374 YCbCr image which lacks that tag (noted by Hans Petter Selasky). 4375 43762004-11-09 Andrey Kiselev <[email protected]> 4377 4378 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky). 4379 43802004-11-07 Andrey Kiselev <[email protected]> 4381 4382 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface 4383 contributed by Edward Lam (see 4384 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details). 4385 Though no changes in any makefiles yet. 4386 43872004-11-05 Frank Warmerdam <[email protected]> 4388 4389 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file 4390 is bad. This is the callers responsibility. 4391 http://bugzilla.remotesensing.org/show_bug.cgi?id=651 4392 43932004-11-05 Andrey Kiselev <[email protected]> 4394 4395 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW() 4396 function to work with the double byte strings (used to represent 4397 filenames in some locales). As per bug 4398 4399 http://bugzilla.remotesensing.org/show_bug.cgi?id=625 4400 4401 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and 4402 Compression tags of type LONG from broken TIFFS as per bug 4403 4404 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4405 4406 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC, 4407 the writecount should have uint32 type. As per bug 4408 4409 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4410 4411 * libtiff/tif_write.c: Fixed wrong if() statement in 4412 TIFFAppendToStrip() function as per bug 4413 4414 http://bugzilla.remotesensing.org/show_bug.cgi?id=660 4415 44162004-11-04 Andrey Kiselev <[email protected]> 4417 4418 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES 4419 field. The caller should supply a count when setting this field. As 4420 per bug 4421 4422 http://bugzilla.remotesensing.org/show_bug.cgi?id=648 4423 4424 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have 4425 uint32 count. Use this type everywhere. 4426 44272004-11-03 Frank Warmerdam <[email protected]> 4428 4429 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653. 4430 44312004-11-02 Frank Warmerdam <[email protected]> 4432 4433 * tools/tiff2rgba.c: removed extra newlines in usage message. 4434 44352004-10-30 Andrey Kiselev <[email protected]> 4436 4437 * libtiff/tif_dirwrite.c: Improvements in tag writing code. 4438 4439 * tools/tiff2ps.c: Fixed wrong variable data type when read Position 4440 tags (Tristan Hill). 4441 44422004-10-30 Frank Warmerdam <[email protected]> 4443 4444 * libtiff/tiffiop.h: added fallback definition of assert() if we 4445 don't have assert.h. 4446 44472004-10-29 Andrey Kiselev <[email protected]> 4448 4449 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines 4450 choosing when the incorrect Group4Options tag set. As per bug 4451 4452 http://bugzilla.remotesensing.org/show_bug.cgi?id=323 4453 4454 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of 4455 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in 4456 TIFFWriteNormalTag(). 4457 44582004-10-28 Andrey Kiselev <[email protected]> 4459 4460 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution 4461 tags (Peter Fales). 4462 4463 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions. 4464 44652004-10-28 Frank Warmerdam <[email protected]> 4466 4467 * tools/tiff2pdf.c: added casts to avoid warnings. 4468 4469 * libtiff/libtiff.def: Added several more entry points required 4470 to link fax2tiff.c against the DLL on windows. 4471 44722004-10-27 Andrey Kiselev <[email protected]> 4473 4474 * configure, configure.ac: Added --enable-rpath option to embed linker 4475 paths into library binary. 4476 44772004-10-26 Andrey Kiselev <[email protected]> 4478 4479 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin). 4480 4481 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed 4482 (Vladimir Nadvornik, Dmitry V. Levin). 4483 44842004-10-16 Andrey Kiselev <[email protected]> 4485 4486 * libtiff 3.7.0 released. 4487 44882004-10-15 Bob Friesenhahn <[email protected]> 4489 4490 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h 4491 in this file so its inclusion is removed. Including stdio.h 4492 sometimes incurs an INT32 typedef conflict between MinGW's 4493 basetsd.h and libjpeg's jmorecfg.h. 4494 44952004-10-15 Andrey Kiselev <[email protected]> 4496 4497 * man/bmp2tiff.1: Added manual page for bmp2tiff utility. 4498 44992004-10-13 Bob Friesenhahn <[email protected]> 4500 4501 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid 4502 conflict noticed under MinGW. 4503 * ltmain.sh: Fix for MinGW compilation. 4504 45052004-10-13 Frank Warmerdam <[email protected]> 4506 4507 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz. 4508 http://bugzilla.remotesensing.org/show_bug.cgi?id=635 4509 45102004-10-12 Andrey Kiselev <[email protected]> 4511 4512 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c, 4513 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes 4514 properly (Dmitry V. Levin, Marcus Meissner). 4515 45162004-10-11 Andrey Kiselev <[email protected]> 4517 4518 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed 4519 to TIFF_IFD. 4520 45212004-10-10 Andrey Kiselev <[email protected]> 4522 4523 * tools/bmp2tif.c: Check the space allocation results. 4524 45252004-10-09 Andrey Kiselev <[email protected]> 4526 4527 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields 4528 of the TIFFDirectory structure with the 0 instead of -1 to avoid 4529 confusing integer overflows in TIFFTileRowSize() for striped images. 4530 4531 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported 4532 by Ross A. Finlayson. 4533 4534 * libtiff/tif_dir.c: Fixed custom tags handling as per bug 4535 4536 http://bugzilla.remotesensing.org/show_bug.cgi?id=629 4537 45382004-10-08 Frank Warmerdam <[email protected]> 4539 4540 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation 4541 of tif_fieldinfo. 4542 4543 http://bugzilla.remotesensing.org/show_bug.cgi?id=630 4544 45452004-10-04 Bob Friesenhahn <[email protected]> 4546 4547 * contrib/iptcutil/README: Added the missing README which goes 4548 along with iptcutil. 4549 45502004-10-03 Andrey Kiselev <[email protected]> 4551 4552 * libtiff/tif_compress.c: Improved error reporting in 4553 TIFFGetConfiguredCODECs() (Dmitry V. Levin). 4554 45552004-10-02 Andrey Kiselev <[email protected]> 4556 4557 * libtiff 3.7.0beta2 released. 4558 4559 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c, 4560 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c, 4561 tif_pixarlog.c, tif_write.c}: Added checks for failed memory 4562 allocations and integer overflows (Dmitry V. Levin). 4563 4564 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added. 4565 45662004-10-01 Frank Warmerdam <[email protected]> 4567 4568 * libtiff/tif_open.c: added a more informative message if a BigTIFF 4569 file is opened. 4570 45712004-09-30 Frank Warmerdam <[email protected]> 4572 4573 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to 4574 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info 4575 in the Adobe XMP Specification. 4576 45772004-09-29 Andrey Kiselev <[email protected]> 4578 4579 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of 4580 memset(). 4581 4582 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches 4583 from Dmitry V. Levin to fix possible integer overflow problems. 4584 45852004-09-28 Andrey Kiselev <[email protected]> 4586 4587 * libtiff/tif_getimage.c: Check for allocated buffers before clearing 4588 (Dmitry V. Levin). 4589 45902004-09-26 Andrey Kiselev <[email protected]> 4591 4592 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}: 4593 Optimize checking for the strip bounds. 4594 4595 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and 4596 TIFFRasterScanlineSize() functions report zero in the case of integer 4597 overflow now. Properly handle this case in TIFFReadDirectory() 4598 (patches from Dmitry V. Levin). 4599 46002004-09-25 Andrey Kiselev <[email protected]> 4601 4602 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8() 4603 macro where appropriate. 4604 4605 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as 4606 noted by Gennady Khokhorin. 4607 4608 * libtiff/tif_dirread.c: Always check the return values, returned 4609 by the _TIFFmalloc() (Dmitry V. Levin). 4610 4611 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array() 4612 functions (Dmitry V. Levin). 4613 4614 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}: 4615 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(), 4616 TIFFGrowStrips() (found by Dmitry V. Levin). 4617 46182004-09-24 Andrey Kiselev <[email protected]> 4619 4620 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs() 4621 to get the list of configured codecs. 4622 4623 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from 4624 Dmitry V. Levin. 4625 46262004-09-23 Andrey Kiselev <[email protected]> 4627 4628 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix 4629 possible integer overflow in CheckMalloc() function. 4630 46312004-09-22 Andrey Kiselev <[email protected]> 4632 4633 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead 4634 of plain TIFFhowmany() where appropriate. 4635 46362004-09-21 Andrey Kiselev <[email protected]> 4637 4638 * libtiff/tif_getimage.c: Initialize arrays after space allocation. 4639 46402004-09-19 Andrey Kiselev <[email protected]> 4641 4642 * libtiff 3.7.0beta released. 4643 4644 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer 4645 overruns fixed, as noted by Chris Evans. 4646 46472004-09-14 Bob Friesenhahn <[email protected]> 4648 4649 * commit: Added a script to make it more convenient to commit 4650 updates. The CVS commit message is extracted from this ChangeLog 4651 file. 4652 46532004-09-14 Andrey Kiselev <[email protected]> 4654 4655 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c, 4656 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c, 4657 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c, 4658 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c, 4659 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h, 4660 tif_config.h.in, tiffiop.h}: 4661 Get rid of BSD data types (u_char, u_short, u_int, u_long). 4662 46632004-09-13 Bob Friesenhahn <[email protected]> 4664 4665 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP 4666 specification. Reference libtiff bug tracking system to submit 4667 private tag additions. 4668 46692004-09-12 Bob Friesenhahn <[email protected]> 4670 4671 * tools/tiffgt.c: Include "tif_config.h". 4672 4673 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build 4674 tiffgt. This results in the 'compile' script being added to the 4675 project. 4676 4677 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options 4678 required to find OpenGL headers necessary to build tiffgt. Also 4679 ensure that the libtiff that we built is used rather than some other 4680 libtiff installed on the system. 4681 46822004-09-12 Andrey Kiselev <[email protected]> 4683 4684 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT 4685 libraries. 4686 46872004-09-11 Bob Friesenhahn <[email protected]> 4688 4689 * configure.ac: Pass library configuration defines via 4690 tif_config.h rather than extending CPPFLAGS. Configure a 4691 libtiff/tiffconf.h in order to satisfy application requirements 4692 (not used by library build). Do not define _POSIX_C_SOURCE=2 since 4693 this causes failure to build on systems which properly respect 4694 this request. 4695 4696 * libtiff/tiffconf.h.in: New file to act as the template for the 4697 configured tiffconf.h 4698 4699 * libtiff/files.lst (HDRS): Install the configured tiffconf.h. 4700 47012004-09-10 Frank Warmerdam <[email protected]> 4702 4703 * html/internals.html: Split off a discussion of adding new tags 4704 into addingtags.html. 4705 47062004-09-10 Andrey Kiselev <[email protected]> 4707 4708 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added. 4709 4710 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug 4711 4712 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4713 4714 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting. 4715 4716 * libtiff/tif_dirread.c: Don't reject to read tags of the 4717 SamplesPerPixel size when the tag count is greater than number of 4718 samples as per bug 4719 4720 http://bugzilla.remotesensing.org/show_bug.cgi?id=576 4721 4722 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off 4723 defining int8/uint8/... etc. types. As per bug 4724 4725 http://bugzilla.remotesensing.org/show_bug.cgi?id=607 4726 47272004-09-09 Frank Warmerdam <[email protected]> 4728 4729 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files 4730 to avoid compile warnings about getopt() and a few other things. 4731 47322004-09-02 Andrey Kiselev <[email protected]> 4733 4734 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer 4735 assigning magic in TIFFFetchFloat(). 4736 47372004-09-01 Andrey Kiselev <[email protected]> 4738 4739 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme 4740 to avoid requirement for tiffiop.h inclusion in some applications. See 4741 here 4742 4743 http://www.asmail.be/msg0054799560.html 4744 4745 for details. 4746 4747 * tools/fax2tiff.c: Use the new functions in the code. 4748 47492004-08-25 Andrey Kiselev <[email protected]> 4750 4751 * tools/tiff2pdf.c: Initialize arrays properly. 4752 4753 * tools/tiff2ps.c: Avoid zero division in setupPageState() function; 4754 properly initialize array in PSDataBW(). 4755 47562004-08-24 Andrey Kiselev <[email protected]> 4757 4758 * tools/tiff2pdf.c: More fixes for bug 4759 4760 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4761 4762 from Ross Finlayson. 4763 47642004-08-23 Andrey Kiselev <[email protected]> 4765 4766 * tools/tiff2ps.c: Fixed problem with uninitialized values. 4767 4768 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the 4769 TIFFDefaultDirectory() (in addition to 2004-08-19 fix). 4770 4771 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug 4772 4773 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4774 47752004-08-20 Andrey Kiselev <[email protected]> 4776 4777 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks 4778 that the input file has compression, photometric interpretation, 4779 etcetra, tags or if not than a more descriptive error is returned. 4780 4781 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the 4782 code, responsible for tag data type checking. 4783 47842004-08-19 Andrey Kiselev <[email protected]> 4785 4786 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static 4787 variable as per bug 4788 4789 http://bugzilla.remotesensing.org/show_bug.cgi?id=593 4790 47912004-08-16 Andrey Kiselev <[email protected]> 4792 4793 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per 4794 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586 4795 47962004-08-01 Andrey Kiselev <[email protected]> 4797 4798 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and 4799 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc. 4800 48012004-07-24 Andrey Kiselev <[email protected]> 4802 4803 * libtiff/tif_lzw.c: LZW compression code is merged back from the 4804 separate package. All libtiff tools are updated to not advertise an 4805 abcence of LZW support. 4806 48072004-07-12 Andrey Kiselev <[email protected]> 4808 4809 * libtiff/tiffio.h: Revert thandle_t back to void* type. 4810 48112004-07-11 Andrey Kiselev <[email protected]> 4812 4813 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error 4814 messages, as suggested by Bernd Herd. 4815 48162004-07-03 Andrey Kiselev <[email protected]> 4817 4818 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings 4819 when setting custom tags by value. Reported by Eric Fieleke. 4820 48212004-06-14 Andrey Kiselev <[email protected]> 4822 4823 * tools/bmp2tiff.c: Add missed RawsPerStrip setting. 4824 48252004-06-08 Andrey Kiselev <[email protected]> 4826 4827 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files 4828 into TIFFs. 4829 48302004-06-07 Andrey Kiselev <[email protected]> 4831 4832 * libtiff 3.7.0alpha released. 4833 48342004-06-06 Andrey Kiselev <[email protected]> 4835 4836 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid 4837 of ugly 64-bit hacks, replace them with the clever (autoconf based ) 4838 ones :-). 4839 4840 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause 4841 problems in 64-bit environment). 4842 48432004-06-05 Andrey Kiselev <[email protected]> 4844 4845 * tools/tiffset.c: tiffset now can set any libtiff supported tags. 4846 Tags can be supplied by the mnemonic name or number. 4847 4848 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new 4849 functions TIFFFindFieldInfoByName() and TIFFFieldWithName(). 4850 48512004-05-27 Andrey Kiselev <[email protected]> 4852 4853 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF 4854 markers as per bug 4855 4856 http://bugzilla.remotesensing.org/show_bug.cgi?id=581 4857 48582004-05-24 Andrey Kiselev <[email protected]> 4859 4860 * tools/tiffsplit.c: Don't forget to copy Photometric 4861 Interpretation tag. 4862 48632004-05-20 Andrey Kiselev <[email protected]> 4864 4865 * libtiff/{tif_open.c, tiffio.h}: New function added: 4866 TIFFIsBigEndian(). Function returns nonzero if given was file written 4867 in big-endian order. 4868 4869 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte 4870 files. Now output files will be written using the same byte order 4871 flag as in the input image. See 4872 4873 http://bugzilla.remotesensing.org/show_bug.cgi?id=574 4874 4875 for details. 4876 48772004-05-19 Frank Warmerdam <[email protected]> 4878 4879 * libtiff/tif_print.c: added (untested) support for printing 4880 SSHORT, SLONG and SRATIONAL fields. 4881 4882 * tools/tiffcp.c: close output file on normal exit. 4883 48842004-05-17 Andrey Kiselev <[email protected]> 4885 4886 * libtiff/tif_fax3.c: Avoid reading CCITT compression options 4887 if compression type mismatches. See 4888 4889 http://bugzilla.remotesensing.org/show_bug.cgi?id=565 4890 48912004-04-30 Andrey Kiselev <[email protected]> 4892 4893 * libtiff/tif_strip.c: Never return 0 from the 4894 TIFFNumberOfStrips(). 4895 48962004-04-29 Andrey Kiselev <[email protected]> 4897 4898 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which 4899 store single SampleFormat value for multisampled images. See 4900 4901 http://bugzilla.remotesensing.org/show_bug.cgi?id=562 4902 49032004-04-25 Andrey Kiselev <[email protected]> 4904 4905 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8, 4906 int16 and int32 types to avoid complains on some compilers. Details at 4907 4908 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4909 49102004-04-20 Andrey Kiselev <[email protected]> 4911 4912 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug 4913 4914 http://bugzilla.remotesensing.org/show_bug.cgi?id=555 4915 49162004-04-14 Andrey Kiselev <[email protected]> 4917 4918 * libtiff/tif_write.c: Allow in-place updating of the compressed 4919 images (don't work properly with all codecs). For details see GDAL bug 4920 4921 http://bugzilla.remotesensing.org/show_bug.cgi?id=534 4922 49232004-04-06 Andrey Kiselev <[email protected]> 4924 4925 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used 4926 in the Intergarph JPEG compressed TIFF images as per bug: 4927 4928 http://bugzilla.remotesensing.org/show_bug.cgi?id=532 4929 49302004-04-04 Frank Warmerdam <[email protected]> 4931 4932 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails 4933 via bad2. 4934 49352004-03-26 Andrey Kiselev <[email protected]> 4936 4937 * tools/tiffcp.c: Properly set Photometric Interpretation in case of 4938 JPEG compression of grayscale images. 4939 4940 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not 4941 present in the input image. 4942 49432004-03-19 Andrey Kiselev <[email protected]> 4944 4945 * {many}: The first attempt to switch to autotools. 4946 49472004-03-03 Andrey Kiselev <[email protected]> 4948 4949 * libtiff/tif_open.c: Use dummy mmap/munmap functions in 4950 TIFFClientOpen() when the appropriate client functions was not 4951 supplied by user. 4952 49532004-03-02 Frank Warmerdam <[email protected]> 4954 4955 * tools/ycbcr.c: fixed main() declaration as per: 4956 http://bugzilla.remotesensing.org/show_bug.cgi?id=513 4957 49582004-02-26 Andrey Kiselev <[email protected]> 4959 4960 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed 4961 images. Reported by Artem Mirolubov. 4962 4963 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED 4964 tag type in TIFFFetchNormalTag() as per bug 4965 4966 http://bugzilla.remotesensing.org/show_bug.cgi?id=508 4967 49682004-02-17 Frank Warmerdam <[email protected]> 4969 4970 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per: 4971 http://bugzilla.remotesensing.org/show_bug.cgi?id=494 4972 49732004-02-05 Andrey Kiselev <[email protected]> 4974 4975 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per 4976 bug 4977 4978 http://bugzilla.remotesensing.org/show_bug.cgi?id=483 4979 4980 But we need more work on fax codec to support update mode. 4981 49822004-01-30 Frank Warmerdam <[email protected]> 4983 4984 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck, 4985 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by 4986 Scott Reynolds. 4987 49882004-01-29 Andrey Kiselev <[email protected]> 4989 4990 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS 4991 and TIFFTAG_INDEXED as per bug 4992 4993 http://bugzilla.remotesensing.org/show_bug.cgi?id=475 4994 4995 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is 4996 NULL before proceeding further as per bug 4997 4998 http://bugzilla.remotesensing.org/show_bug.cgi?id=474 4999 5000 Check results, returned by the TIFFFdOpen() before returning and close 5001 file if TIFFFdOpen() failed as per bug 5002 5003 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5004 5005 * libtiff/tif_open.c: More fixes for 5006 5007 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5008 50092004-01-28 Andrey Kiselev <[email protected]> 5010 5011 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate 5012 TIFFCleanup() from the TIFFClose() in order to fix the bug 5013 5014 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5015 5016 * tools/tiffcp.c: Fixed problem with wrong interpretation of the 5017 InkNames tag as per bug 5018 5019 http://bugzilla.remotesensing.org/show_bug.cgi?id=466 5020 5021 Memory leak fixed. 5022 50232004-01-21 Frank Warmerdam <[email protected]> 5024 5025 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that 5026 are field_passcount=TRUE properly. Arguably anonymous custom tags 5027 should be declared as passcount=FALSE, but I don't want to change 5028 that without a careful review. 5029 50302004-01-20 Andrey Kiselev <[email protected]> 5031 5032 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of 5033 stripped image in TIFFWriteBufferSetup(). As per bug 5034 5035 http://bugzilla.remotesensing.org/show_bug.cgi?id=460 5036 50372004-01-11 Andrey Kiselev <[email protected]> 5038 5039 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(), 5040 patch from Gerben Koopmans. 5041 5042 * libtiff/tif_dirread.c: Check field_passcount value before setting 5043 the value of undefined type, patch from Gerben Koopmans. 5044 50452004-01-02 Andrey Kiselev <[email protected]> 5046 5047 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for 5048 non-RGB images. 5049 50502003-12-31 Andrey Kiselev <[email protected]> 5051 5052 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL 5053 pointer passed. Patch supplied by Larry Grill. 5054 5055 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as 5056 suggested by Jeremy C. Reed. 5057 50582003-12-26 Andrey Kiselev <[email protected]> 5059 5060 * libtiff 3.6.1 released. 5061 50622003-12-24 Andrey Kiselev <[email protected]> 5063 5064 * config.guess, config.sub: Updated from the recent upstream. 5065 50662003-12-22 Andrey Kiselev <[email protected]> 5067 5068 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t: 5069 More cleanups in color conversion interface, added appropriate manual 5070 page. 5071 50722003-12-19 Andrey Kiselev <[email protected]> 5073 5074 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as 5075 per bug 5076 5077 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5078 5079 * tools/tiff2ps.c: Added support for alpha channel. Fixes 5080 5081 http://bugzilla.remotesensing.org/show_bug.cgi?id=428 5082 5083 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}: 5084 Interface for Lab->RGB color conversion is finally cleaned up. 5085 Added support for ReferenceBlackWhite tag handling when converted from 5086 YCbCr color space. The latter closes 5087 5088 http://bugzilla.remotesensing.org/show_bug.cgi?id=120 5089 50902003-12-07 Andrey Kiselev <[email protected]> 5091 5092 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings. 5093 5094 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG 5095 library. 5096 50972003-12-06 Andrey Kiselev <[email protected]> 5098 5099 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the 5100 file and properly use it for CIE Lab->RGB transform. 5101 51022003-12-04 Andrey Kiselev <[email protected]> 5103 5104 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB 5105 conversion routines now in the tif_color.c module. New function 5106 TIFFYCbCrtoRGB() available in TIFF API. 5107 5108 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly. 5109 51102003-12-03 Andrey Kiselev <[email protected]> 5111 5112 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in 5113 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c 5114 module. 5115 5116 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t, 5117 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}: 5118 Finally resolved problems with orientation handling. TIFFRGBAImage 5119 interface now properly supports all possible orientations, i.e. images 5120 will be flipped both in horizontal and vertical directions if 5121 required. 'Known bugs' section now removed from the appropriate manual 5122 pages. Closed bug entry: 5123 5124 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5125 51262003-12-02 Andrey Kiselev <[email protected]> 5127 5128 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError() 5129 function calls as per bug 5130 5131 http://bugzilla.remotesensing.org/show_bug.cgi?id=440 5132 51332003-11-28 Ross Finlayson <[email protected]> 5134 5135 * tools/tiff2pdf.c: Some bugs fixed. 5136 51372003-11-27 Andrey Kiselev <[email protected]> 5138 5139 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine, 5140 reported by Antonio Scuri. 5141 5142 * man/tiff2pdf.1: Few improvements in page layout. 5143 5144 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html: 5145 Added support fpr tiff2pdf manual page. 5146 51472003-11-26 Ross Finlayson <[email protected]> 5148 5149 * /man/tiff2pdf.1: File added to repository. 5150 51512003-11-26 Andrey Kiselev <[email protected]> 5152 5153 * Makefile.in, /tools/{Makefile.in, makefile.vc}: 5154 Added support fpr tiff2pdf utility. 5155 51562003-11-25 Ross Finlayson <[email protected]> 5157 5158 * /tools/tiff2pdf.c: File added to repository. 5159 51602003-11-22 Andrey Kiselev <[email protected]> 5161 5162 * /tools/raw2tiff.c: sqrtf() replaced with sqrt(). 5163 51642003-11-21 Andrey Kiselev <[email protected]> 5165 5166 * /tools/raw2tiff.c: #include <getopt.h> removed. 5167 5168 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent 5169 sgigt utility removed and replaced with the completely rewritten 5170 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision, 5171 there is a lot of things to improve. 5172 5173 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly 5174 extract the fields from the OJPEG files. Patch supplied by Ross 5175 Finlayson. 5176 5177 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}: 5178 Added new function TIFFIsCODECConfigured(), suggested by Ross 5179 Finlayson. 5180 51812003-11-18 Andrey Kiselev <[email protected]> 5182 5183 * libtiff/tif_dirinfo.c: Implemented binary search in 5184 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson. 5185 5186 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced 5187 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson. 5188 51892003-11-17 Frank Warmerdam <[email protected]> 5190 5191 * tif_dirread.c: do not mark all anonymously defined tags to be 5192 IGNOREd. 5193 51942003-11-17 Andrey Kiselev <[email protected]> 5195 5196 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use 5197 TIFFDataWidth() function insted of tiffDataWidth array. 5198 51992003-11-16 Andrey Kiselev <[email protected]> 5200 5201 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13) 5202 datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes". 5203 52042003-11-15 Frank Warmerdam <[email protected]> 5205 5206 * Makefile.in: fixed missing backslash for tif_color.c in list. 5207 52082003-11-13 Andrey Kiselev <[email protected]> 5209 5210 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}: 5211 New color space conversion code: CIE L*a*b* 1976 images now supported 5212 by the TIFFRGBAImage interface. All introduced routines go to new 5213 module tif_color.c. Eventually all color conversion functions should 5214 be moved there. 5215 52162003-11-12 Andrey Kiselev <[email protected]> 5217 5218 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles 5219 with the reverse byte order (it is reported by the magic header 5220 field). Problem reported by Andreas Wiesmann. 5221 5222 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation 5223 calculation function. Guessing mechanics now documented in manual page. 5224 52252003-11-11 Andrey Kiselev <[email protected]> 5226 5227 * tools/raw2tiff.c: Implemented image size guessing using 5228 correlation coefficient calculation between two neighbour lines. 5229 52302003-11-09 Frank Warmerdam <[email protected]> 5231 5232 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the 5233 planarconfig_contig case in TIFFComputeTile(). 5234 5235 http://bugzilla.remotesensing.org/show_bug.cgi?id=387 5236 52372003-11-09 Andrey Kiselev <[email protected]> 5238 5239 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint. 5240 52412003-11-07 Andrey Kiselev <[email protected]> 5242 5243 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}: 5244 Added TIFFRawStripSize() function as suggested by Chris Hanson. 5245 52462003-11-03 Andrey Kiselev <[email protected]> 5247 5248 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as 5249 per bug 5250 5251 http://bugzilla.remotesensing.org/show_bug.cgi?id=424 5252 52532003-10-29 Andrey Kiselev <[email protected]> 5254 5255 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented. 5256 5257 * html/build.html: Added note about GNU make requirement. 5258 52592003-10-25 Andrey Kiselev <[email protected]> 5260 5261 * Makefile.in: Fixes in using MAKEFLAGS as per bug 5262 5263 http://bugzilla.remotesensing.org/show_bug.cgi?id=418 5264 5265 * port/install.sh.in: Option -p added to the mkdir command to create 5266 all directory tree structure before installing. 5267 52682003-10-18 Andrey Kiselev <[email protected]> 5269 5270 * /tools/tiff2ps.c: #include <strings.h> replaced with the 5271 #include <string.h>. 5272 52732003-10-16 Andrey Kiselev <[email protected]> 5274 5275 * Makefile.in: Add an absolute path to the test_pics.sh call. 5276 52772003-10-12 Andrey Kiselev <[email protected]> 5278 5279 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD 5280 typedefs. 5281 52822003-10-09 Andrey Kiselev <[email protected]> 5283 5284 * configure, libtiff/{Makefile.in, mkversion.c}: 5285 Relative buildings fixed. 5286 5287 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building 5288 rule. 5289 52902003-10-07 Andrey Kiselev <[email protected]> 5291 5292 * Makefile.in: Added missed v3.6.0.html. 5293 5294 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with 5295 ORIENTATION_BOTLEFT. 5296 52972003-10-04 Andrey Kiselev <[email protected]> 5298 5299 * 3.6.0 final release. 5300 53012003-10-03 Andrey Kiselev <[email protected]> 5302 5303 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New 5304 function TIFFReadRGBAImageOriented() implemented to retrieve raster 5305 array with user-specified origin position as suggested by Jason Frank. 5306 See 5307 5308 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5309 5310 for details. 5311 5312 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented() 5313 instead of TIFFReadRGBAImage(). 5314 5315 * tools/tiff2ps.c: Fixed possible endless loop as per bug 5316 5317 http://bugzilla.remotesensing.org/show_bug.cgi?id=404 5318 53192003-09-30 Andrey Kiselev <[email protected]> 5320 5321 * libtiff/tif_dirread.c: Check field counter against number of fields 5322 in order to fix 5323 5324 http://bugzilla.remotesensing.org/show_bug.cgi?id=366 5325 5326 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug 5327 5328 http://bugzilla.remotesensing.org/show_bug.cgi?id=342 5329 53302003-09-25 Andrey Kiselev <[email protected]> 5331 5332 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c, 5333 tif_close.c}: Store a list of opened IFD to prevent looping as per bug 5334 5335 http://bugzilla.remotesensing.org/show_bug.cgi?id=383 5336 53372003-09-23 Andrey Kiselev <[email protected]> 5338 5339 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See 5340 5341 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5342 53432003-08-21 Andrey Kiselev <[email protected]> 5344 5345 * tools/tiffmedian.c: int declaration replaced with the uint32 to 5346 support large images as per bug 5347 5348 http://bugzilla.remotesensing.org/show_bug.cgi?id=382 5349 53502003-08-12 Andrey Kiselev <[email protected]> 5351 5352 * libtiff/Makefile.in: Fixed problem with building in different 5353 directory. 5354 5355 * tools/tiff2ps.c: Added missing #include <strings.h>. 5356 5357 * libtiff/tif_dirwrite.c: More fixes for custom tags code 5358 from Ashley Dreier. 5359 53602003-08-07 Andrey Kiselev <[email protected]> 5361 5362 * tools/tiff2ps.c: Added page size setting when creating PS Level 2. 5363 Patch submitted by Balatoni Denes (with corrections from Tom 5364 Kacvinsky). 5365 5366 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is 5367 being used. Reported by Tom Kacvinsky. 5368 5369 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing, 5370 reported by Ashley Dreier. 5371 5372 * libtiff/tif_print.c: Fixed problem with float tags reading, support 5373 for printing RATIONAL and BYTE tags added. 5374 53752003-08-05 Andrey Kiselev <[email protected]> 5376 5377 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to 5378 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause 5379 problems with predictor initialization. Remove O_RDONLY check during 5380 state block allocation to be able open LZW compressed files in update 5381 mode. 5382 5383 Problem exist for libtiff version of the tif_lzw.c module. One from 5384 lzw-compression-kit hasn't such troubles. 5385 53862003-08-04 Frank Warmerdam <[email protected]> 5387 5388 * libtiff/tif_write.c: modified tif_write.c so that the various 5389 encoded write functions use tif_postdecode() to apply byte order 5390 swapping (swab) to the application passed data buffer if the same 5391 would be done when reading. This allows us to write pixel data with 5392 more than 8 bits per sample to existing files of a non-native byte 5393 order. One side effect of this change is the applications buffer 5394 itself is altered in this case by the act of writing. 5395 5396 http://bugzilla.remotesensing.org/show_bug.cgi?id=171 5397 53982003-07-25 Frank Warmerdam <[email protected]> 5399 5400 * libtiff/tif_open.c: avoid signed/unsigned casting warning 5401 initializing typemask as per patch from J.A. Strother. 5402 5403 * tools/tiffcp.c: fixed signed/unsigned casting warning. 5404 5405 * libtiff/tif_print.c: dos2unix conversion. 5406 5407 * tools/tiffsplit.c: increased the maximum number of pages that 5408 can be split. Patch provided by Andrew J. Montalenti. 5409 54102003-07-11 Andrey Kiselev <[email protected]> 5411 5412 * tools/raw2tiff.c: Added option `-p' to explicitly select color 5413 space of input image data. Closes 5414 5415 http://bugzilla.remotesensing.org/show_bug.cgi?id=364 5416 54172003-07-08 Frank Warmerdam <[email protected]> 5418 5419 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c, 5420 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c, 5421 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c: 5422 avoid casting warning at /W4. 5423 54242003-07-03 Andrey Kiselev <[email protected]> 5425 5426 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel. 5427 54282003-06-30 Andrey Kiselev <[email protected]> 5429 5430 * libtiff/tif_pixarlog.c: Unused variables removed. 5431 5432 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with 5433 EstimateStripByteCounts() as per bug 5434 5435 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5436 5437 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on 5438 64-bit architectures as per bug 5439 5440 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5441 5442 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of 5443 unknown data type. 5444 54452003-06-19 Frank Warmerdam <[email protected]> 5446 5447 * libtiff/tif_print.c: fixed some serious bugs when printing 5448 custom tags ... almost certain to crash. 5449 5450 * libtiff/tif_dirread.c: Don't ignore custom fields that are 5451 autodefined. Not sure how this got to be like this. 5452 54532003-06-18 Andrey Kiselev <[email protected]> 5454 5455 * 3.6.0 Beta2 released. 5456 5457 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data 5458 comparing as per bug 5459 5460 http://bugzilla.remotesensing.org/show_bug.cgi?id=349 5461 5462 `-z' option now can be used to set the number of reported different 5463 bytes. 5464 54652003-06-09 Andrey Kiselev <[email protected]> 5466 5467 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1 5468 to -r option to get the entire image as one strip. See 5469 5470 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5471 5472 for details. 5473 54742003-06-04 Andrey Kiselev <[email protected]> 5475 5476 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber 5477 values as per bug 5478 5479 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5480 54812003-05-27 Frank Warmerdam <[email protected]> 5482 5483 * libtiff/tif_jpeg.c: modified segment_height calculation to always 5484 be a full height tile for tiled images. Also changed error to just 5485 be a warning. 5486 54872003-05-25 Andrey Kiselev <[email protected]> 5488 5489 * tools/fax2tiff.c: Page numbering fixed, as per bug 5490 5491 http://bugzilla.remotesensing.org/show_bug.cgi?id=341 5492 54932003-05-20 Andrey Kiselev <[email protected]> 5494 5495 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5496 configure, Makefile.in: Switched back to the old behaviour. Likely 5497 better solution should be found for OJPEG support. 5498 54992003-05-11 Andrey Kiselev <[email protected]> 5500 5501 * libtiff/mkversion.c: Fixed problem with wrong string size when 5502 reading RELEASE-DATE file. 5503 55042003-05-07 Andrey Kiselev <[email protected]> 5505 5506 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array 5507 index was out of range. 5508 55092003-05-06 Andrey Kiselev <[email protected]> 5510 5511 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5512 configure, Makefile.in: Improved libtiff compilation with OJPEG 5513 support. Now no need for patching IJG JPEG library, hack requred by 5514 libtiff will be compiled and used in-place. Implemented with 5515 suggestion and help from Bill Allombert, Debian's libjpeg maintainer. 5516 5517 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in 5518 TIFFVGetFieldDefaulted() function. 5519 55202003-05-05 Andrey Kiselev <[email protected]> 5521 5522 * tools/ppm2tiff.c: PPM header parser improved: now able to skip 5523 comments. 5524 5525 * tools/tiffdither.c: Fixed problem with bit fill order tag setting: 5526 was not copied from source image. 5527 5528 * libtiff/getimage.c: Workaround for some images without correct 5529 info about alpha channel as per bug 5530 5531 http://bugzilla.remotesensing.org/show_bug.cgi?id=331 5532 55332003-04-29 Andrey Kiselev <[email protected]> 5534 5535 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3. 5536 It basically allows one to use the /flateDecode filter for ZIP 5537 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes 5538 5539 http://bugzilla.remotesensing.org/show_bug.cgi?id=328 5540 5541 * tools/tiff2ps.c: Force deadzone printing when EPS output specified 5542 as per bug 5543 5544 http://bugzilla.remotesensing.org/show_bug.cgi?id=325 5545 55462003-04-17 Andrey Kiselev <[email protected]> 5547 5548 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts 5549 due to problems with multidirectory images. Quality of error messages 5550 improved. 5551 55522003-04-16 Andrey Kiselev <[email protected]> 5553 5554 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG 5555 encoded images. See bug entries 5556 5557 http://bugzilla.remotesensing.org/show_bug.cgi?id=275 5558 5559 and 5560 5561 http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5562 5563 * libtiff/tif_dirread.c: Additional check for StripByteCounts 5564 correctness. Fixes 5565 5566 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 5567 55682003-03-12 Andrey Kiselev <[email protected]> 5569 5570 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c, 5571 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c, 5572 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c, 5573 tiffmedian.c}: Added library version reporting facility to all tools. 5574 55752003-03-06 Frank Warmerdam <[email protected]> 5576 5577 * port/install.sh.in: Fixed problems with install producing paths 5578 like ///usr/local/lib on cygwin. 5579 55802003-02-27 Andrey Kiselev <[email protected]> 5581 5582 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of 5583 raw input page. Patch supplied by Julien Gaulmin. See 5584 5585 http://bugzilla.remotesensing.org/show_bug.cgi?id=293 5586 5587 for details. 5588 55892003-02-26 Frank Warmerdam <[email protected]> 5590 5591 * libtiff/tif_dir.c: fixed up the tif_postdecode settings 5592 responsible for byte swapping complex image data. 5593 5594 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till 5595 LZWSetupDecode(). Needed to read LZW files in "r+" mode. 5596 55972003-02-07 Andrey Kiselev <[email protected]> 5598 5599 * tools/ppm2tiff.c: Fixed problem with too many arguments. 5600 56012003-02-04 Andrey Kiselev <[email protected]> 5602 5603 * tools/raw2tiff.c: Memory leak fixed. 5604 56052003-02-03 Andrey Kiselev <[email protected]> 5606 5607 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin 5608 (thanks, Julien!). More switches for fax2tiff tool for better control 5609 of input and output. Details at 5610 5611 http://bugzilla.remotesensing.org/show_bug.cgi?id=272 5612 56132003-02-03 Frank Warmerdam <[email protected]> 5614 5615 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg 5616 library so that we can check if there is already any tile/strip data 5617 before deciding between creating a compressor or a decompressor. 5618 56192003-01-31 Frank Warmerdam <[email protected]> 5620 5621 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is 5622 a pre-existing compressed image. That is, image writing to 5623 pre-existing compressed images is not allowed. 5624 5625 * libtiff/tif_open.c: Removed error if opening a compressed file 5626 in update mode. 5627 5628 http://bugzilla.remotesensing.org/show_bug.cgi?id=198 5629 56302003-01-31 Andrey Kiselev <[email protected]> 5631 5632 * config.guess, config.sub: Updated to recent upstream versions. 5633 56342003-01-15 Frank Warmerdam <[email protected]> 5635 5636 * cut 3.6.0 Beta release. 5637 56382002-12-20 Andrey Kiselev <[email protected]> 5639 5640 * tools/fax2ps.c, man/fax2ps.1: Page size was determined 5641 in wrong way as per bug 5642 5643 http://bugzilla.remotesensing.org/show_bug.cgi?id=239 5644 56452002-12-17 Frank Warmerdam <[email protected]> 5646 5647 * libtiff/tif_dirread.c: Allow wrong sized arrays in 5648 TIFFFetchStripThing(). 5649 5650 http://bugzilla.remotesensing.org/show_bug.cgi?id=49 5651 56522002-12-02 Frank Warmerdam <[email protected]> 5653 5654 * libtiff/tif_dir.c: fix problem with test on td_customValueCount. 5655 Was using realloc even first time. Fix by Igor Venevtsev. 5656 56572002-11-30 Frank Warmerdam <[email protected]> 5658 5659 * libtiff/tif_dir.c: fixed bug with resetting an existing custom 5660 field value. 5661 5662 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom" 5663 tags in TIFFVGetField() ... added missing break. 5664 56652002-10-14 Frank Warmerdam <[email protected]> 5666 5667 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make 5668 the scanline buffer long enough when writing rgb triplets. 5669 The scanline needs to be 3 X the number of dots or else it will 5670 contain an incomplete triplet and programs that try to separate 5671 the eps by redefining the colorimage operator will get messed up. 5672 Patch supplied by William Bader. 5673 5674 * Makefile.in: added tif_extension.c to file list as per 5675 http://bugzilla.remotesensing.org/show_bug.cgi?id=218. 5676 56772002-10-11 Andrey Kiselev <[email protected]> 5678 5679 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for 5680 large files (>2GiB) supporting. New option in the config.site: 5681 LARGEFILE="yes". Should be enough for I/O of the large files. 5682 56832002-10-10 Frank Warmerdam <[email protected]> 5684 5685 * libtiff/html/v3.6.0.html: new release notes. 5686 5687 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email 5688 link for Andrey. Pointer to v3.6.0.html. 5689 5690 * libtiff/Makefile.in: added direct rule for tiffvers.h for release. 5691 56922002-10-07 Andrey Kiselev <[email protected]> 5693 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken 5694 (thanks, Sebastian!). New switches: 5695 -b # for a bottom margin of # inches 5696 -c center image 5697 -l # for a left margin of # inches 5698 -r rotate the image by 180 degrees 5699 New features merged with code for shrinking/overlapping. 5700 Previously added -c and -n switches (for overriding PS units) renamed 5701 in -x and -y respectively. 5702 5703 http://bugzilla.remotesensing.org/show_bug.cgi?id=200 5704 5705 * html/man/*.html: Updated from actual manual pages. 5706 57072002-10-06 Frank Warmerdam <[email protected]> 5708 5709 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong 5710 size on windows. Use #define boolean hack. 5711 5712 http://bugzilla.remotesensing.org/show_bug.cgi?id=188 5713 5714 * libtiff/tiff.h: Don't do special type handling in tiff.h unless 5715 USING_VISUALAGE is defined. 5716 5717 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5718 57192002-10-03 Frank Warmerdam <[email protected]> 5720 5721 * libtiff/tiff.h: added COMPRESSION_JP2000. 5722 57232002-10-02 Andrey Kiselev <[email protected]> 5724 5725 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays 5726 by the TIFFFetchByteArray() function. Should finally resolve 5727 5728 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5729 5730 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT 5731 5732 * html/Makefile.in: New targets added: html and groffhtml for 5733 producing HTML representations of the manual pages automatically. 5734 html target uses man2html tool, groffhtml uses groff tool. 5735 57362002-09-29 Frank Warmerdam <[email protected]> 5737 5738 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support 5739 from John H. DuBois III. 5740 57412002-09-15 Andrey Kiselev <[email protected]> 5742 5743 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added 5744 manual page for raw2tiff(1) tool. 5745 57462002-09-12 Andrey Kiselev <[email protected]> 5747 5748 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to 5749 the tiffio.h header file. 5750 5751 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added 5752 manual page for TIFFDataWidth() function 5753 57542002-09-08 Frank Warmerdam <[email protected]> 5755 5756 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair() 5757 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196. 5758 5759 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments 5760 since we are unable to properly include the amount to skip. 5761 5762 http://bugzilla.remotesensing.org/show_bug.cgi?id=80 5763 57642002-09-02 Andrey Kiselev <[email protected]> 5765 5766 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching 5767 in TIFFFetchByteArray(). Problem described at 5768 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5769 57702002-08-22 Andrey Kiselev <[email protected]> 5771 5772 * /libtiff/tif_dirinfo.c: Further additions to free custom fields 5773 in _TIFFSetupFieldInfo() function. 5774 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details. 5775 5776 * /libtiff/tif_lzw.c: Additional consistency checking added in 5777 LZWDecode() and LZWDecodeCompat(). 5778 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190 5779 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5780 5781 * /libtiff/tif_lzw.c: 5782 Added check for valid code lengths in LZWDecode() and 5783 LZWDecodeCompat(). Fixes 5784 http://bugzilla.remotesensing.org/show_bug.cgi?id=115 5785 57862002-08-16 Andrey Kiselev <[email protected]> 5787 5788 * /libtiff/{Makefile.vc, libtiff.def}: 5789 Missed declarations added. 5790 57912002-08-15 Frank Warmerdam <[email protected]> 5792 5793 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the 5794 return code from the underlying pick function. 5795 5796 http://bugzilla.remotesensing.org/show_bug.cgi?id=177 5797 5798 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap 5799 with FIELD_CUSTOM as mentioned in bug 169. 5800 5801 * tif_close.c: added logic to free dynamically created anonymous 5802 field definitions to correct a small memory leak. 5803 5804 http://bugzilla.remotesensing.org/show_bug.cgi?id=169 5805 58062002-08-10 Andrey Kiselev <[email protected]> 5807 5808 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}: 5809 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet. 5810 58112002-07-31 Frank Warmerdam <[email protected]> 5812 5813 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in 5814 JPEGDecode() as per bugzilla bug (issue 1): 5815 5816 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5817 5818 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to 5819 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't 5820 present in the tiff tags. 5821 5822 http://bugzilla.remotesensing.org/show_bug.cgi?id=168 5823 5824 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and 5825 TIFFWriteScanline() now set tif_row explicitly in case the codec has 5826 fooled with the value. 5827 5828 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5829 58302002-06-22 Andrey Kiselev <[email protected]> 5831 5832 * /tools/tiff2ps.c: Added workaround for some software that may crash 5833 when last strip of image contains fewer number of scanlines than 5834 specified by the `/Height' variable. See 5835 http://bugzilla.remotesensing.org/show_bug.cgi?id=164 5836 for explanation. 5837 58382002-06-21 Andrey Kiselev <[email protected]> 5839 5840 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility: 5841 splitting long images in several pages. See 5842 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation. 5843 Patch granted by John Williams <[email protected]>. 5844 58452002-06-11 Frank Warmerdam <[email protected]> 5846 5847 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new 5848 Tiffile.cpp example of converting TIFF files into a DIB on Win32. 5849 This one is described in: 5850 5851 http://bugzilla.remotesensing.org/show_bug.cgi?id=143 5852 5853 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at: 5854 5855 http://bugzilla.remotesensing.org/show_bug.cgi?id=156 5856 58572002-05-10 Andrey Kiselev <[email protected]> 5858 5859 * tools/tiff2ps: New commandline switches to override resolution 5860 units obtained from the input file. Closes 5861 http://bugzilla.remotesensing.org/show_bug.cgi?id=131 5862 58632002-04-26 Andrey Kiselev <[email protected]> 5864 5865 * libtiff/libtiff.def: Added missed declaration. 5866 58672002-04-22 Andrey Kiselev <[email protected]> 5868 5869 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff. 5870 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125 5871 58722002-04-20 Andrey Kiselev <[email protected]> 5873 5874 * libtiff/tif_open.c: Pointers to custom procedures 5875 in TIFFClientOpen() are checked to be not NULL-pointers. 5876 58772002-04-18 Andrey Kiselev <[email protected]> 5878 5879 * libtiff/libtiff.def: Added missed declarations. 5880 5881 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure. 5882 58832002-04-16 Andrey Kiselev <[email protected]> 5884 5885 * libtiff/tif_lzw.c: Additional checks for data integrity introduced. 5886 Should finally close 5887 http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5888 58892002-04-10 Andrey Kiselev <[email protected]> 5890 5891 * tools/tiff2ps: Division by zero fixed. 5892 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88 5893 58942002-04-09 Andrey Kiselev <[email protected]> 5895 5896 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h: 5897 TIFFCheckpointDirectory() routine added. 5898 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124 5899 5900 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description 5901 for the new function. 5902 59032002-04-08 Andrey Kiselev <[email protected]> 5904 5905 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced 5906 additional members tif->tif_decodestatus and tif->tif_encodestatus 5907 for correct handling of unconfigured codecs (we should not try to read 5908 data or to define data size without correct codecs). 5909 5910 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK 5911 changed. Now it has used tif->tif_decodestatus and 5912 tif->tif_encodestatus. 5913 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in 5914 case of __cvs_8.tif test image). 5915 5916 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in 5917 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced. 5918 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case 5919 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif. 5920 59212002-04-04 Andrey Kiselev <[email protected]> 5922 5923 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat 5924 replaced by warnings. Now libtiff should read corrupted LZW-compressed 5925 files by skipping bad strips. 5926 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5927 59282002-04-03 Frank Warmerdam <[email protected]> 5929 5930 * libtiff/tif_dirwrite.c: Removed some dead code. 5931 5932 * libtiff/*: Cleanup some warnings. 5933 5934 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField() 5935 for variable length FIELD_CUSTOM values. Was int * but should be 5936 u_short *. 5937 59382002-04-01 Andrey Kiselev <[email protected]> 5939 5940 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp 5941 utility (at cpStripToTile routine). 5942 59432002-03-27 Frank Warmerdam <[email protected]> 5944 5945 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func. 5946 5947 http://bugzilla.remotesensing.org/show_bug.cgi?id=111 5948 5949 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with 5950 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE). 5951 5952 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so 5953 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example. 5954 59552002-03-26 Dwight Kelly <[email protected]> 5956 5957 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5958 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined 5959 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec 5960 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes: 5961 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and 5962 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9). 5963 59642002-03-26 Andrey Kiselev <[email protected]> 5965 5966 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile 5967 now also uses TIFFRGBAImageOK before reading. This is additional fix 5968 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5969 59702002-03-25 Andrey Kiselev <[email protected]> 5971 5972 * libtiff/: tif_getimage.c: Additional check for supported 5973 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses 5974 TIFFRGBAImageOK before reading. 5975 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5976 59772002-03-15 Andrey Kiselev <[email protected]> 5978 5979 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5980 tif_dirwrite.c: Added routine TIFFDataWidth for detrmining 5981 TIFFDataType sizes instead of working with tiffDataWidth array 5982 directly. Should prevent out-of-borders bugs in case of unknown or 5983 broken data types. EstimateStripByteCounts routine modified, so it 5984 won't work when tags with uknown sizes founded. 5985 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109 5986 59872002-03-13 Andrey Kiselev <[email protected]> 5988 5989 * libtiff/tif_getimage.c: Added support for correct handling 5990 `Orientation' tag in gtTileContig. Should be added in other gt* 5991 functions as well, but I have not images for testing yet. Partially 5992 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5993 59942002-03-10 Andrey Kiselev <[email protected]> 5995 5996 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to 5997 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION, 5998 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes 5999 http://bugzilla.remotesensing.org/show_bug.cgi?id=99 6000 60012002-03-08 Andrey Kiselev <[email protected]> 6002 6003 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not 6004 be stripped when installing, utility binaries will do. Closes 6005 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 6006 60072002-02-28 Frank Warmerdam <[email protected]> 6008 6009 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT. 6010 6011 * man/libtiff.3t: added copyright tag info. 6012 60132002-02-11 Frank Warmerdam <[email protected]> 6014 6015 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__. 6016 6017 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 6018 6019 * man/Makefile.in: Patch DESTDIR handling 6020 6021 http://bugzilla.remotesensing.org/show_bug.cgi?id=95 6022 6023 * configure: OpenBSD changes for Sparc64 and DSO version. 6024 6025 http://bugzilla.remotesensing.org/show_bug.cgi?id=96 6026 60272002-02-05 Frank Warmerdam <[email protected]> 6028 6029 * config.site/configure: added support for OJPEG=yes option to enable 6030 OJPEG support from config.site. 6031 60322002-01-27 Frank Warmerdam <[email protected]> 6033 6034 * html/document.html: fixed links for TIFf 6 docs. 6035 60362002-01-18 Frank Warmerdam <[email protected]> 6037 6038 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config. 6039 6040 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the 6041 decodestrip function returns anything not greater than zero as per 6042 http://bugzilla.remotesensing.org/show_bug.cgi?id=97 6043 6044 * configure: Modify CheckForBigEndian so it can work in a cross 6045 compiled situation. 6046 60472002-01-16 Frank Warmerdam <[email protected]> 6048 6049 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list. 6050 6051 * tools/tiffset.c: fix bug in error reporting. 6052 6053 * tools/tiffcp.c: fix several warnings that show up with -Wall. 6054 60552002-01-04 Frank Warmerdam <[email protected]> 6056 6057 * libtiff/tif_jpeg.c: fixed computation of segment_width for 6058 tiles files to avoid error about it not matching the 6059 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile 6060 size.") for ITIFF files. Apparently the problem was incorporated since 6061 3.5.5, presumably during the OJPEG/JPEG work recently. 6062 60632001-12-15 Frank Warmerdam <[email protected]> 6064 6065 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1. 6066 6067 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 6068 6069 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1 6070 (defined in tiffconf.h - 1 by default) then the RGBA interface 6071 will assume that a fourth extra sample is ASSOCALPHA if the 6072 EXTRASAMPLE value isn't set for it. This changes the behaviour of 6073 the library, but makes it work better with RGBA files produced by 6074 lots of applications that don't mark the alpha values properly. 6075 6076 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 6077 http://bugzilla.remotesensing.org/show_bug.cgi?id=65 6078 60792001-12-12 Frank Warmerdam <[email protected]> 6080 6081 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to 6082 override those from tiff directory. This makes this work with 6083 ImageGear generated files. 6084 60852001-12-07 Frank Warmerdam <[email protected]> 6086 6087 * html/Makefile.in: added missing images per bug 92. 6088 6089 * port/Makefile.in: fixed clean target per bug 92. 6090 60912001-11-28 Frank Warmerdam <[email protected]> 6092 6093 * Reissue 3.5.7 release. 6094 6095 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be 6096 YYYYMMDD so that it is increasing over time. 6097 6098 * Makefile.in: Ensure that tiffvers.h is regenerated in the 6099 make release target. 6100 6101 * Makefile.in: added libtiff/tiffvers.h to the release file list. 6102 61032001-11-23 Frank Warmerdam <[email protected]> 6104 6105 * added html/v3.5.7.html, updated html/index.html. 6106 6107 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}. 6108 61092001-11-15 Frank Warmerdam <[email protected]> 6110 6111 * configure: fixed test for -lm. 6112 61132001-11-02 Frank Warmerdam <[email protected]> 6114 6115 * Added PHOTOMETRIC_ITULAB as per bug 90. 6116 6117 http://bugzilla.remotesensing.org/show_bug.cgi?id=90 6118 61192001-10-10 Frank Warmerdam <[email protected]> 6120 6121 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4, 6122 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases 6123 in keeping with TIFF 6.0 standard in tiff.h 6124 6125 http://bugzilla.remotesensing.org/show_bug.cgi?id=83 6126 61272001-09-26 Frank Warmerdam <[email protected]> 6128 6129 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function. 6130 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory. 6131 61322001-09-24 Frank Warmerdam <[email protected]> 6133 6134 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug. 6135 6136 http://bugzilla.remotesensing.org/show_bug.cgi?id=78 6137 6138 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an 6139 error about LZW not being available. 6140 6141 * libtiff/tif_dir.c: propagate failure to initialize compression 6142 back from TIFFSetField() as an error status, so applications can 6143 detect failure. 6144 6145 * libtiff/tif_dir.c: removed the auto replacement of 6146 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField(). 6147 6148 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile 6149 from CVS as they are all supposed to be auto-generated by configure. 6150 61512001-09-22 Frank Warmerdam <[email protected]> 6152 6153 * libtiff/tif_ojpeg.c: new update from Scott. 6154 61552001-09-09 Frank Warmerdam <[email protected]> 6156 6157 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to 6158 always use the "safe" version, even if there is a very slight 6159 cost in performance. 6160 6161 http://bugzilla.remotesensing.org/show_bug.cgi?id=54 6162 6163 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@ 6164 in two places. 6165 6166 * libtiff/tif_getimage.c: Fixed problem with reading strips or 6167 tiles that don't start on a tile boundary. Fix contributed by 6168 Josep Vallverdu (from HP), and further described in bug 47. 6169 6170 http://bugzilla.remotesensing.org/show_bug.cgi?id=47 6171 6172 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support. 6173 6174 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott. 6175 61762001-09-06 Frank Warmerdam <[email protected]> 6177 6178 * libtiff/tif_packbits.c: fixed memory overrun error. 6179 6180 http://bugzilla.remotesensing.org/show_bug.cgi?id=77 6181 61822001-08-31 Frank Warmerdam <[email protected]> 6183 6184 * libtiff/tif_getimage.c: relax handling of contig case where 6185 there are extra samples that are supposed to be ignored. This 6186 should now work for 8bit greyscale or palletted images. 6187 6188 http://bugzilla.remotesensing.org/show_bug.cgi?id=75 6189 61902001-08-28 Frank Warmerdam <[email protected]> 6191 6192 * libtiff/tif_getimage.c: Don't complain for CMYK (separated) 6193 images with more than four samples per pixel. See: 6194 6195 http://bugzilla.remotesensing.org/show_bug.cgi?id=73 6196 61972001-08-10 Frank Warmerdam <[email protected]> 6198 6199 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy() 6200 in TIFFReadRGBATile() to avoid issues in cases of overlapping 6201 buffers. See Bug 69 in Bugzilla. 6202 6203 http://bugzilla.remotesensing.org/show_bug.cgi?id=69 6204 6205 * tools/tiff2rgba.c: fixed getopt() call so that -b works again. 6206 62072001-08-09 Frank Warmerdam <[email protected]> 6208 6209 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__ 6210 when checking for 64 bit architectures as per bugzilla bug 67. 6211 62122001-07-27 Frank Warmerdam <[email protected]> 6213 6214 * man/Makefile.in: add TIFFClientOpen link as per debian submitted 6215 bug 66. 6216 62172001-07-20 Frank Warmerdam <[email protected]> 6218 6219 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H 6220 has been included. 6221 62222001-07-19 Frank Warmerdam <[email protected]> 6223 6224 * libtiff/tif_open.c: Seek back to zero after failed read, 6225 before writing header. 6226 62272001-07-18 Frank Warmerdam <[email protected]> 6228 6229 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors 6230 much better. Now depends on having patched libjpeg as per 6231 patch in contrib/ojpeg/*. 6232 62332001-07-17 Frank Warmerdam <[email protected]> 6234 6235 * */Makefile.in: added DESTDIR support. 6236 6237 http://bugzilla.remotesensing.org/show_bug.cgi?id=60 6238 62392001-07-16 Frank Warmerdam <[email protected]> 6240 6241 * configure, libtiff/Makefile.in: applied OpenBSD patches 6242 as per: 6243 6244 http://bugzilla.remotesensing.org/show_bug.cgi?id=61 6245 62462001-06-28 Frank Warmerdam <[email protected]> 6247 6248 * libtiff/tif_getimage.c: Fixed so that failure is properly 6249 reported by gtTileContig, gtStripContig, gtTileSeparate and 6250 gtStripSeparate. 6251 6252 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51 6253 6254 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare. 6255 Updated bug section of tiffcmp.1 to note tiled file issues. 6256 6257 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53 6258 62592001-06-22 Frank Warmerdam <[email protected]> 6260 6261 * configure: Changes for DSO generation on AIX provided by 6262 John Marquart <[email protected]>. 6263 6264 * configure, libtiff/Makeifle.in: Modified to build DSOs properly 6265 on Darwin thanks to Robert Krajewski ([email protected]) and 6266 Keisuke Fujii ([email protected]). 6267 62682001-06-13 Frank Warmerdam <[email protected]> 6269 6270 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component. 6271 6272 * man/tiff2rgba.1: new 6273 62742001-05-22 Frank Warmerdam <[email protected]> 6275 6276 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in. 6277 62782001-05-13 Frank Warmerdam <[email protected]> 6279 6280 * libtiff/tools/thumbnail.c: changed default output compression 6281 to packbits from LZW since LZW isn't generally available. 6282 62832001-05-12 Frank Warmerdam <[email protected]> 6284 6285 * libtiff/tif_ojpeg.c: New. 6286 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related 6287 to OJPEG support. 6288 6289 Scott Marovich <[email protected]> supplied OJPEG support. 6290 62912001-05-11 Frank Warmerdam <[email protected]> 6292 6293 * tiff.h: removed, it duplicates libtiff/tiff.h. 6294 62952001-05-08 Frank Warmerdam <[email protected]> 6296 6297 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to 6298 ensure everything is in order. 6299 6300 * libtiff/libtiff.def: added TIFFCreateDirectory and 6301 TIFFDefaultStripSize as per: 6302 6303 http://bugzilla.remotesensing.org/show_bug.cgi?id=46 6304 63052001-05-02 Frank Warmerdam <[email protected]> 6306 6307 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for 6308 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to 6309 force use of uint32 counts instead of short counts. 6310 6311 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the 6312 case of writing TIFF_BYTE/TIFF_SBYTE fields. 6313 6314 http://bugzilla.remotesensing.org/show_bug.cgi?id=43 6315 63162001-05-01 Frank Warmerdam <[email protected]> 6317 6318 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per 6319 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44 6320 63212001-04-05 Frank Warmerdam <[email protected]> 6322 6323 * tiffio.h: removed C++ style comment. 6324 6325 * configure: fixed up SCRIPT_SH/SHELL handling. 6326 6327 * Makefile.in: Fixed SCRIPT_SH/SHELL handling. 6328 6329 * config.guess: documented more variables as per bug 40. 6330 63312001-04-03 Frank Warmerdam <[email protected]> 6332 6333 * configure, *Makefile.in: Various changes to improve configuration 6334 for HP/UX specifically, and also in general. They include: 6335 - Try to handle /usr/bin/sh instead of /bin/sh where necessary. 6336 - Upgrade to HP/UX 10.x+ compiler, linker and dso options. 6337 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP 6338 - Use -${MAKEFLAGS} in sub makes from makefiles. 6339 6340 http://bugzilla.remotesensing.org/show_bug.cgi?id=40 6341 63422001-04-02 Frank Warmerdam <[email protected]> 6343 6344 * libtiff/tiff.h: Applied hac to try and resolve the problem 6345 with the inttypes.h include file on AIX. 6346 6347 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6348 6349 * VERSION: update to 3.5.7 beta in preparation for release. 6350 6351 * configure/config.site: modified to check if -lm is needed for 6352 MACHDEPLIBS if not supplied by config.site. Needed for Darwin. 6353 6354 * config.guess: updated wholesale to an FSF version apparently 6355 from 1998 (as opposed to 1994). This is mainly inspired by 6356 providing for MacOS X support. 6357 63582001-03-29 Frank Warmerdam <[email protected]> 6359 6360 * configure, Makefile.in, etc: added support for OPTIMIZER being 6361 set from config.site. 6362 63632001-03-28 Frank Warmerdam <[email protected]> 6364 6365 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix: 6366 6367 Here's a fix for fax2ps that corrects behaviour for non-Letter paper 6368 sizes. It fixes two problems: 6369 6370 Without scaling (-S) the fax is now centered on the page size specified 6371 with -H and/or -W. Before, fax2ps was using an obscure and practially 6372 useless algorithm to allocate the image relative to Letter sized paper 6373 which sometime sled to useless whitespace on the paper, while at the 6374 same time cutting of the faxes printable area at the opposite border. 6375 6376 Second, scaling now preserves aspect ratio, which makes unusual faxes 6377 (in particular short ones) print properly. 6378 6379 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35 6380 6381 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by 6382 Bruce A. Mallett. See check message for detailed information 6383 on all the changes, including a faster encoder, fixes for level 6384 2 PostScript, and support for the imagemask operator. 6385 63862001-03-27 Frank Warmerdam <[email protected]> 6387 6388 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to 6389 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX. 6390 6391 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6392 63932001-03-16 Frank Warmerdam <[email protected]> 6394 6395 * tif_dirinfo.c: moved definition of copyright tag in field list. 6396 Apparently they have to be in sorted order by tag id. 6397 63982001-03-13 Frank Warmerdam <[email protected]> 6399 6400 * tif_getimage.c: Added support for 16bit minisblack/miniswhite 6401 images in RGBA interface. 6402 64032001-03-02 Frank Warmerdam <[email protected]> 6404 6405 * Added TIFFTAG_COPYRIGHT support. 6406 64072001-02-19 Frank Warmerdam <[email protected]> 6408 6409 * Brent Roman contributed updated tiffcp utility (and tiffcp.1) 6410 with support for extracting subimages with the ,n syntax, and also 6411 adding the -b bias removal flag. 6412 64132001-02-16 Frank Warmerdam <[email protected]> 6414 6415 * libtiff/libtiff.def: Brent Roman submitted new version adding 6416 serveral missing entry points. 6417 6418 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS. 6419 Some sort of weird VMS thing. 6420 6421 http://bugzilla.remotesensing.org/show_bug.cgi?id=31 6422 6423 * tif_luv.c/tiff.h/tiffio.h: 6424 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward 6425 ([email protected]). He writes: 6426 6427 1) I improved the gamut-mapping function in tif_luv.c for imaginary 6428 colors, because some images were being super-saturated on the input 6429 side and this resulted in some strange color shifts in the output. 6430 6431 2) I added a psuedotag in tiff.h to control random dithering during 6432 LogLuv encoding. This is turned off by default for 32-bit LogLuv and 6433 on for 24-bit LogLuv output. Dithering improves the average color 6434 accuracy over the image. 6435 6436 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in 6437 tiffio.h, to expose internal routines for converting between LogLuv and 6438 XYZ coordinates. This is helpful for writing more efficient, 6439 specialized conversion routines, especially for reading LogLuv files. 6440 6441 Changes applied with minor edits. 6442 64432001-01-23 Frank Warmerdam <[email protected]> 6444 6445 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember 6446 whether we are encoding or decoding. This is to ensure graceful 6447 recovery if TIFFClientOpen() discovers an attempt to open a compressed 6448 file for "r+" access, and subsequently close it, as it resets the 6449 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the 6450 compressor's concept of whether it is in encode or decode mode. 6451 64522001-01-08 Mike Welles <[email protected]> 6453 6454 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip 6455 64562001-01-07 Frank Warmerdam <[email protected]> 6457 6458 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet() 6459 as per bug report by Patrick Connor. 6460 64612000-12-28 Frank Warmerdam <[email protected]> 6462 6463 * Added RELEASE-DATE file to release file list. 6464 6465 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h. 6466 64672000-12-22 Mike Welles <[email protected]> 6468 * added link to CVS mirror from index.html 6469 6470 * updated html/internals.html to note that LZW compression is 6471 not supported by default. 6472 64732000-12-22 Frank Warmerdam <[email protected]> 6474 6475 * updated html/libtiff.html to not point at Niles' old JPL web site 6476 for the man pages, point at www.libtiff.org. 6477 64782000-12-21 Frank Warmerdam <[email protected]> 6479 6480 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by 6481 Leonard Rosenthol <[email protected]>. May interfere 6482 with correct building on older systems. If so, please let me know. 6483 64842000-12-19 Mike Welles <[email protected]> 6485 6486 * Took out LZW Encoding from tif_lzw.c 6487 6488 * Created HOWTO-RELEASE 6489 6490 * Created html/v3.5.6.html 6491 6492 * updated index.html 6493 64942000-12-01 Frank Warmerdam <[email protected]> 6495 6496 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h. 6497 Patches supplied by Frank Cringle <[email protected]> 6498 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif 6499 65002000-11-24 Frank Warmerdam <[email protected]> 6501 6502 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private 6503 target so that the private headers required by libgeotiff can be 6504 installed with the others. They are not installed by default. 6505 6506 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso 6507 targets so libtiff.so will be built with an explicit dependency 6508 on libm.so. 6509 6510 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to 6511 libtiff.so.3.5.5. 6512 6513 * libtiff/Makefile.in & configure: Remove all references to the ALPHA 6514 file, or ALPHA version logic. Added stuff about DIST_POINT in 6515 place of DIST_TYPE and the alpha release number stuff. 6516 65172000-11-22 Frank Warmerdam <[email protected]> 6518 6519 * I have applied a patch from Steffen Moeller <[email protected]> to 6520 the configure script so that it now accepts the --prefix, and 6521 --exec-prefix directives. 6522 65232000-11-13 Frank Warmerdam <warmerda@cs46980-c> 6524 6525 * I have made a variety of modifications in an effort to ensure the 6526 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE 6527 file which seems to be updated regularly. 6528 6529 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in 6530 version include file. 6531 o renamed version.h to tiffvers.h because we now have to install it 6532 with the public libtiff include files. 6533 o include tiffvers.h in tiffio.h. 6534 o updated tif_version.c to use tiffvers.h. 6535 o Updated Makefile.in accordingly. 6536 6537 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25 6538 I have updated the win32 detection rules in tiffcomp.h. 6539 65402000-10-20 Frank Warmerdam <warmerda@cs46980-c> 6541 6542 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which 6543 the strip/tile width and height aren't multiples of the sampling size. 6544 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20 6545 Some patches from Rick LaMont of Dot C Software. 6546 6547 * Modified tif_packbits.c encoder to avoid compressing more 6548 data than provided if rowsize doesn't factor into provided data 6549 (such as occurs for YCbCr). 6550 65512000-10-19 Frank Warmerdam <warmerda@cs46980-c> 6552 6553 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical 6554 roundup if rows_per_strip not a multiple of vertical sample size. 6555 65562000-10-16 Frank Warmerdam <warmerda@cs46980-c> 6557 6558 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory 6559 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6560 from [email protected]. 6561 6562 * Modified tif_packbits.c decoding to avoid overrunning the 6563 output buffer, and to issue a warning if data needs to be 6564 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6565 65662000-10-12 Frank Warmerdam <warmerda@cs46980-c> 6567 6568 * Modified tiff2bw to ensure portions add to 100%, and that 6569 white is properly recovered. 6570 6571 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15 6572 Patch c/o Stanislav Brabec <[email protected]> 6573 65742000-09-30 Frank Warmerdam <warmerda@cs46980-c> 6575 6576 * Modified TIFFClientOpen() to emit an error on an attempt to 6577 open a comperessed file for update (O_RDWR/r+) access. This is 6578 because the compressor/decompressor code gets very confused when 6579 the mode is O_RDWR, assuming this means writing only. See 6580 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13 6581 65822000-09-27 Frank Warmerdam <warmerda@cs46980-c> 6583 6584 * Added GNULDdso target an`d switched linux and freebsd to use it. 6585 65862000-09-26 Frank Warmerdam <warmerda@cs46980-c> 6587 6588 * Applied patch for 0x0000 sequences in tif_fax3.h's definition 6589 of EXPAND1D() as per bug 11 (from Roman). 6590 65912000-09-25 Frank Warmerdam <warmerda@cs46980-c> 6592 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve 6593 cygwin compatibility. 6594 6595 * Applied patch from Roman Shpount to tif_fax3.c. This seems to 6596 be a proper fix to the buffer sizing problem. See 6597 http://bugzilla.remotesensing.org/show_bug.cgi?id=11 6598 6599 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without 6600 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10 6601 Thanks to Nick Lamb <[email protected]> for reporting the 6602 bug and proving the patch. 6603 66042000-09-18 Frank Warmerdam <warmerda@cs46980-c> 6605 6606 * Fixed tif_jpeg.c so avoid destroying the decompressor before 6607 we are done access data thanks to bug report from: 6608 Michael Eckstein <[email protected]>. 6609 6610 * Reverted tif_flush change. 6611 66122000-09-14 Frank Warmerdam <warmerda@cs46980-c> 6613 6614 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an 6615 error when TIFF_BEENWRITING is not set. This ensures that the 6616 directory contents can still be flushed by TIFFFlush(). 6617 66182000-08-14 Frank Warmerdam <[email protected]> 6619 6620 * tif_open.c: Don't set MMAP for O_RDWR files. 6621 6622 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY 6623 so that files opened for update can be strip chopped too. 6624 6625 * tif_read.c: fixed up bug with files missing rowsperstrip and 6626 the strips per separation fix done a few weeks ago. 6627 66282000-07-17 Frank Warmerdam <warmerda@cs46980-c> 6629 6630 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and 6631 SAMPLEFORMAT_COMPLEXINT. 6632 66332000-07-13 Mike Welles <[email protected]> 6634 6635 * index.html, bugs.html: added bugzilla info. 6636 66372000-07-12 Frank Warmerdam <[email protected]> 6638 6639 * tif_read.c: fix subtle bug with determining the number of 6640 rows for strips that are the last strip in a separation but 6641 not the last strip of all in TIFFReadEncodedStrip(). 6642 6643 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by 6644 Peter Skarpetis <[email protected]> 6645 66462000-06-15 Frank Warmerdam <[email protected]> 6647 6648 * Modified tiffio.h logic with regard to including windows.h. It 6649 won't include it when building with __CYGWIN__. 6650 66512000-05-11 Frank Warmerdam <warmerda@cs46980-c> 6652 6653 * README: update to mention www.libtiff.org, don't list Sam's old 6654 email address. 6655 6656 * configure: Fixed DSO test for Linux as per patch from 6657 Jan Van Buggenhout <[email protected]>. 6658 66592000-04-21 Frank Warmerdam <[email protected]> 6660 6661 * libtiff/tif_dirread.c: Don't use estimate strip byte count for 6662 one tile/strip images with an offset, and byte count of zero. These 6663 could be "unpopulated" images. 6664 66652000-04-18 Frank Warmerdam <[email protected]> 6666 6667 * contrib/addtiffo: Added "averaging" resampling option. 6668 6669 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT. 6670 6671Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]> 6672 6673 * tools/Makefile.in: Modified to install properly on SGI. 6674 66752000-04-12 Mike Welles <[email protected]> 6676 * configure: Fixed stupid mistake in libc6 test on Linux 6677 66782000-04-04 Mike Welles <[email protected]> 6679 * tif_win32.c: Applied patch to fix overreads and ovverwrites 6680 caught by BoundsChecker. From Arvan Pritchard 6681 <[email protected]> (untested). 6682 6683 * tif_getimage.c: Applied patch to silence VC6 warnings. From 6684 Arvan Pritchard <[email protected]> 6685 6686 * tif_lzw.c: Applied patch to silence VC6 warnings. From 6687 Arvan Pritchard <[email protected]> 6688 66892000-03-28 Frank Warmerdam <warmerda@cs46980-c> 6690 6691 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss. 6692 66932000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release *** 6694 6695 * fax2ps: Fixed mixup of width and height in bounding box statement 6696 as per submission by Nalin Dahyabhai <[email protected]>. 6697 66982000-03-27 Mike Welles <[email protected]> 6699 6700 * fax2ps: Modified printruns to take uint32 instead of uint16. 6701 Patch courtesy of Bernt Herd <[email protected]> 6702 67032000-03-20 Mike Welles <[email protected]> 6704 6705 * configure: added test for libc6 for linux targets. Bug reported by 6706 Stanislav Brabec <[email protected]> 6707 6708 * Added 3.5 docs to html/Makefile.in. 6709 Thanks to Stanislav Brabec <[email protected]> 6710 6711 * configure: fixed bugs in sed scripts 6712 (applied sed script s:/@:s;@:;s:/s;;:;: to configure). 6713 fix submitted to Stanislav Brabec <[email protected]> 6714 6715 * tools/iptcutil was not in files list, and wasn't being 6716 added to tar archive. Updated Makefile.in. 6717 67182000-03-17 Frank Warmerdam <warmerda@cs46980-c> 6719 6720 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32 6721 conversion for the run arrays. 6722 67232000-03-03 Frank Warmerdam <[email protected]> 6724 6725 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of 6726 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c. 6727 67282000-03-02 Frank Warmerdam <[email protected]> 6729 6730 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c. 6731 6732 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger 6733 to avoid overruns encountered with frle_bug.tif. 6734 6735Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]> 6736 6737 * Fixed tools/tiffcmp so that stopondiff testing works. 6738 Patch care of Joseph Orost <[email protected]>. 6739 67402000-01-28 <warmerda@CS46980-B> 6741 6742 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is 6743 set to 1, and added default (off) setting in tiffconf.h. This 6744 should eventually be set by the configure script somehow. 6745 6746 The original work on all these 2-4GB changes was done by 6747 Peter Smith ([email protected]). 6748 6749 * Modified tif_win32.c to support 2-4GB seeks. 6750 6751 * tentatively changed toff_t to be unsigned instead of signed to 6752 facilitate support for 2-4GB files. 6753 6754 * Updated a variety of files to use toff_t. Fixed some mixups 6755 between toff_t and tsize_t. 6756 6757Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]> 6758 6759 * Largely reimplemented contrib/addtiffo to avoid temp files, 6760 updating the TIFF file in place. Fixed a few other bugs to. 6761 6762 * Set tif_rawdatasize to zero when freeing raw data buffer in 6763 TIFFWriteDirectory(). 6764 6765 * Enabled "REWRITE_HACK" in tif_write.c by default. 6766 6767 * Fix bug in tif_write.c when switching between reading one directory 6768 and writing to another. 6769 6770 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory() 6771 6772Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]> 6773 6774 * Added TIFFmemory(3t) functions to libtiff.def. 6775 6776Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]> 6777 6778 * Added libtiff/libtiff.def to TIFFILES distribution list. 6779 6780Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]> 6781 6782 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit). 6783 6784 * Altered descriptions in tools to reflect "by default" lzw not supported 6785 6786 * Updated index.html to note lzw compression kit. 6787 6788Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]> 6789 6790 * Added fax3sm_winnt.c to distribution list in Makefile.in. 6791 6792Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release *** 6793 6794 * Aadded Pixar tag support. Contributed by Phil Beffery <[email protected]> 6795 6796 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice 6797 when LZW compression invoked. 6798 6799 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions 6800 in tools to reflect removal of LZW compression 6801 6802Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]> 6803 6804 * Fixed bug that caused LZW (non) compression to segfault. Added 6805 warning about LZW compression removed being removed, and why. 6806 6807 * Added nostrip to install in tools/Makefile.in so that debugging 6808 symbols are kept. 6809 6810Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]> 6811 6812 * Added patch from Ivo Penzar <[email protected]>, 6813 supporting Adobe ZIP deflate. Untested. 6814 6815Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]> 6816 6817 * Made Packbits the default compression in tools/tiff2rgba.c instead 6818 of LZW. 6819 6820Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release *** 6821 6822 * Added tif_luv to contrib/djgpp/Makefile.lib. 6823 6824Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]> 6825 6826 * Added zip creation to relase makefile target 6827 6828 * Added html for TIFFWriteTile.3t man page. 6829 6830Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]> 6831 6832 * Added some changes to tif_write.c to support rewriting existing 6833 fixed sized tiles and strips. Code mods disabled by default, only 6834 enabled if REWRITE_HACK is defined for now. 6835 6836Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]> 6837 6838 * Added TIFFWriteTile.3t man page. 6839 6840Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]> 6841 6842 * Added notes on use of makefile.vc in build.html, and fixed 6843 email subscription address. 6844 6845199-11-28 Mike Welles <[email protected]> 6846 6847 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c 6848 6849 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c, 6850 from Bruce Carmeron <[email protected]> -- modifications of 6851 changes made by Frank (sun cc still complained on cast). 6852 6853 * Added tiffconf.h to install target per request from Bill 6854 Radcliffe <[email protected]>: "We need a way for ImageMagick to 6855 know features have been compiled into the TIFF library in order to 6856 handle things properly". 6857 6858Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]> 6859 6860 * fixed various VC++ warnings as suggested by Gilles Vollant 6861 <[email protected]>. 6862 6863Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]> 6864 6865 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to 6866 not imply applications are responsible for image data swapping. 6867 68681999-11-22 Mike Welles <[email protected]> 6869 * HTML-ized the man pages, added to html/man 6870 6871 * Removed LZW Compression to comply with Unisys patent extortion. 6872 68731999-09-29 Mike Welles <[email protected]> 6874 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c, 6875 From Ivo Penzar <[email protected]. 6876 6877 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle 6878 memory mapped files. <[email protected]> 6879 68801999-09-26 Mike Welles <[email protected]> *** 3.5.2 release *** 6881 * Corrected alpha versioning. 6882 6883 * Removed distinction between alpha and release targets in Makefile.in. 6884 6885 * added release.stamp target, which tags cvs tree, and updates 6886 "RELEASE-DATE" 6887 6888 * added releasediff target, which diffs tree with source as of 6889 date in "RELEASE-DATE" 6890 6891 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving 6892 away from alpha/non-alpha distinctions). 6893 6894 * updated html to reflect release 6895 68961999-09-23 <warmerda@CS46980-B> 6897 6898 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance. 6899 6900 * Added CYGWIN case in configure. 6901 6902Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]> 6903 6904 * Applied Francois Dagand's patch to handle fax decompression bug. 6905 (sizes >= 65536 were failing) 6906 6907Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]> 6908 6909 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested 6910 by Christopher Lawton <[email protected]> 6911 6912Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]> 6913 6914 * Added IRIX/gcc, and OSF/1 4.x support on behalf of 6915 Albert Chin-A-Young <[email protected]> 6916 6917 * Added TIFFReassignTagToIgnore() API on behalf of 6918 Bruce Cameron <[email protected]>. Man page still pending. 6919 6920Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]> 6921 6922 * Added test target in Makefile, test_pics.sh script and pics/*.rpt 6923 files to provide for a rudimentary testsuite. 6924 6925 * Added contrib/tags back from old distribution ... fixed up a bit. 6926 69271999-08-16 <warmerda@CS46980-B> 6928 6929 * Added simple makefile.vc makefiles for building with MS VC++ 6930 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give 6931 better solutions for some users. 6932 6933Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]> 6934 6935 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't 6936 put it in tools since part of it is in C++. 6937 69381999-08-16 Michael L. Welles <[email protected]> 6939 6940 * Updated html/index.html with anon CVS instructions. 6941 6942Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]> 6943 6944 * pre-remove so link before softlink in LINUXdso action in 6945 libtiff/Makefile.in to avoid failure on LINUXdso builds other than 6946 the first. 6947 6948 * Fixed problem with cvtcmap() in tif_getimage.c modifying the 6949 colormaps owned by the TIFF handle itself when trying to fixup wrong 6950 (eight bit) colormaps. Corrected by maintaining a private copy of 6951 the colormap. 6952 6953 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in 6954 tif_getimage.c. 6955 6956 * CVS Repository placed at remotesensing.org. ChangeLog added. 6957