12016-07-0333Even Rouault <even.rouault at spatialys.com> 2 3 * libtiff/tif_read.c: make TIFFReadEncodedStrip() and 4 TIFFReadEncodedTile() directly use user provided buffer when 5 no compression (and other conditions) to save a memcpy(). 6 7 * libtiff/tif_write.c: make TIFFWriteEncodedStrip() and 8 TIFFWriteEncodedTile() directly use user provided buffer when 9 no compression to save a memcpy(). 10 112016-07-01 Even Rouault <even.rouault at spatialys.com> 12 13 * libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and 14 PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid 15 potential invalid memory write on corrupted/unexpected images when 16 using the TIFFRGBAImageBegin() interface (reported by 17 Clay Wood) 18 192016-06-28 Even Rouault <even.rouault at spatialys.com> 20 21 * libtiff/tif_pixarlog.c: fix potential buffer write overrun in 22 PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson) 23 (CVE-2016-587) 24 252016-06-15 Bob Friesenhahn <[email protected]> 26 27 * libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64 28 to libtiff.def 29 302016-06-05 Bob Friesenhahn <[email protected]> 31 32 * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff, 33 ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from 34 the distribution. The libtiff tools rgb2ycbcr and thumbnail are 35 only built in the build tree for testing. Old files are put in 36 new 'archive' subdirectory of the source repository, but not in 37 distribution archives. These changes are made in order to lessen 38 the maintenance burden. 39 402016-05-10 Bob Friesenhahn <[email protected]> 41 42 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the 43 HAVE_SNPRINTF definition.' 44 452016-05-09 Bob Friesenhahn <[email protected]> 46 47 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward 48 Lam to define HAVE_SNPRINTF for Visual Studio 2015. 49 502016-04-27 Even Rouault <even.rouault at spatialys.com> 51 52 * libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD, 53 fix regression, introduced on 2014-12-23, when reading a one-strip 54 file without a StripByteCounts tag. GDAL #6490 55 562016-04-07 Bob Friesenhahn <[email protected]> 57 58 * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for 59 purposes of security issue reporting. 60 612016-01-23 Even Rouault <even.rouault at spatialys.com> 62 63 * libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr) 64 coming from GDAL internal libtiff 65 662016-01-09 Even Rouault <even.rouault at spatialys.com> 67 68 * libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure 69 a uint16 to reduce size of the binary. 70 712016-01-03 Even Rouault <even.rouault at spatialys.com> 72 73 * libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised 74 by GCC 6 -Wmisleading-indentation 75 762015-12-27 Even Rouault <even.rouault at spatialys.com> 77 78 * libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL 79 string to %s formatter, which is undefined behaviour in sprintf(). 80 812015-12-27 Even Rouault <even.rouault at spatialys.com> 82 83 * libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode() 84 triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif 85 (bugzilla #2508) 86 872015-12-27 Even Rouault <even.rouault at spatialys.com> 88 89 * libtiff/tif_luv.c: fix potential out-of-bound writes in decode 90 functions in non debug builds by replacing assert()s by regular if 91 checks (bugzilla #2522). 92 Fix potential out-of-bound reads in case of short input data. 93 942015-12-26 Even Rouault <even.rouault at spatialys.com> 95 96 * libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage 97 interface in case of unsupported values of SamplesPerPixel/ExtraSamples 98 for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in 99 TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and 100 CVE-2015-8683 reported by zzf of Alibaba. 101 1022015-12-21 Even Rouault <even.rouault at spatialys.com> 103 104 * libtiff/tif_dirread.c: workaround false positive warning of Clang Static 105 Analyzer about null pointer dereference in TIFFCheckDirOffset(). 106 1072015-12-19 Even Rouault <even.rouault at spatialys.com> 108 109 * libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found 110 by Clang Static Analyzer 111 1122015-12-18 Even Rouault <even.rouault at spatialys.com> 113 114 * libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in 115 TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory 116 offsets on a even offset (affects BigTIFF). This was a regression of the 117 changeset of 2015-10-19. 118 1192015-12-12 Even Rouault <even.rouault at spatialys.com> 120 121 * libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile() 122 should return -1 in case of failure of tif_encodestrip() as documented 123 * libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of 124 failure so that the above mentionned functions detect the error. 125 1262015-12-06 Even Rouault <even.rouault at spatialys.com> 127 128 * libtiff/uvcode.h: const'ify uv_code array 129 1302015-12-06 Even Rouault <even.rouault at spatialys.com> 131 132 * libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields, 133 tiffFieldArray and exifFieldArray arrays 134 1352015-12-06 Even Rouault <even.rouault at spatialys.com> 136 137 * libtiff/tif_print.c: constify photoNames and orientNames arrays 138 1392015-12-06 Even Rouault <even.rouault at spatialys.com> 140 141 * libtiff/tif_close.c, libtiff/tif_extension.c : rename link 142 variable to avoid -Wshadow warnings 143 1442015-11-22 Even Rouault <even.rouault at spatialys.com> 145 146 * libtiff/*.c: fix typos in comments (patch by Kurt Schwehr) 147 1482015-11-22 Even Rouault <even.rouault at spatialys.com> 149 150 * libtiff/*.c: fix MSVC warnings related to cast shortening and 151 assignment within conditional expression 152 1532015-11-18 Even Rouault <even.rouault at spatialys.com> 154 155 * libtiff/*.c: fix clang -Wshorten-64-to-32 warnings 156 1572015-11-18 Even Rouault <even.rouault at spatialys.com> 158 159 * libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL 160 to please MSVC 2013 161 1622015-11-17 Even Rouault <even.rouault at spatialys.com> 163 164 * libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction 165 if BitsPerPixel > 24, so as to avoid huge memory allocation and file 166 read attempts 167 1682015-11-02 Even Rouault <even.rouault at spatialys.com> 169 170 * libtiff/tif_dirread.c: remove duplicated assignment (reported by 171 Clang static analyzer) 172 1732015-10-28 Even Rouault <even.rouault at spatialys.com> 174 175 * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c, 176 libtiff/tif_jpeg_12.c: suppress warnings about 'no previous 177 declaration/prototype' 178 1792015-10-19 Even Rouault <even.rouault at spatialys.com> 180 181 * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix 182 'warning: negative integer implicitly converted to unsigned type' warning 183 (part of -Wconversion) 184 1852015-10-17 Even Rouault <even.rouault at spatialys.com> 186 187 * libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c, 188 libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/) 189 1902015-09-12 Bob Friesenhahn <[email protected]> 191 192 * libtiff 4.0.6 released. 193 194 * html/v4.0.6.html: Added release notes for 4.0.6. 195 1962015-09-06 Bob Friesenhahn <[email protected]> 197 198 * tools/tiffgt.c: Silence glut API deprecation warnings on MacOS 199 X. Patch by Roger Leigh. 200 201 * Makefile.am: Added a 'coverity' rule to assist with Coverity 202 submissions. 203 204 * tools/tiff2pdf.c: Fix compiler warning about unused function 205 when JPEG is not available. 206 207 * tools/fax2ps.c (main): Detect failure to write to temporary 208 file. 209 2102015-09-05 Bob Friesenhahn <[email protected]> 211 212 * libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8): 213 Change implementation so that it does not sometimes overflow the 214 range of a 32-bit int and to avoid a signed vs unsigned compare 215 compiler warning. 216 (TIFF_INT64_MAX): Avoid use of platform-specific large constants. 217 (TIFF_UINT32_MAX): Avoid use of platform-specific large constants. 218 2192015-09-01 Bob Friesenhahn <[email protected]> 220 221 * Makefile.am (distcheck-hook), configure.ac: Applied patches by 222 Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue 223 with BSD make and to make use of cmake in 'distcheck' target 224 conditional on if cmake is available. 225 226 * CMakeLists.txt, Makefile.am, configure.ac: Applied patches by 227 Roger Leigh (via tiff mailing list on 2015-09-01). 228 229 CMake build is now included in 'distcheck' target. 230 231 Builds with CMake 2.8.9 and newer. 232 233 Tar is now resquested to use POSIX PAX format. 234 2352015-08-31 Bob Friesenhahn <[email protected]> 236 237 * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by 238 Roger Leigh (via tiff mailing list on 2015-08-31. 239 240 CMake reads all version information directly from configure.ac to 241 avoid duplication of values. This basically greps over the file 242 for the LIBTIFF_* variables, then translates them to the form 243 needed for cmake. This includes the release version and libtool 244 shared library version information. 245 246 Make shared/static library building configurable. Currently it 247 always builds shared libraries, with static libs having a _static 248 suffix (copying zlib, but it means it's got a non-standard name). 249 CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the 250 other, which is now used instead. There's now a single "tiff" 251 target to build either shared or static as required, and all the 252 tests and tools are linked with this. Note: the Windows tests fail 253 when linked with a static libtiff (says: libtiff.dll not found). 254 Not really a regression since this was not tested up to this 255 point, and it's likely the unit tests haven't (ever?) been run on 256 Windows with a static libtiff, so there's some additional 257 portability issue here to address. Works fine on UNIX systems, 258 and fine on Windows with the default to build a DLL. 259 260 Add a missing file which wasn't being distributed, causing unit 261 tests to fail. Note that "find . -name '*.cmake'" lists all the 262 CMake files which need distributing in addition to all the 263 CMakeLists.txt files (which now are distributed). 264 2652015-08-31 Even Rouault <even.rouault at spatialys.com> 266 267 * libtiff/tif_predict.c: pedantic change to add explicit masking 268 with 0xff before casting to uchar in floating-point horizontal 269 differencing and accumulation routines. 270 2712015-08-31 Even Rouault <even.rouault at spatialys.com> 272 273 * libtiff/tif_predict.c: fix generation of output with 16 bit 274 or 32 bit integer, when byte swapping is needed, in 275 horizontal predictor (#2521). Also fixes decoding when there is 276 a single pixel to code (unlikely case...) and byte swapping is 277 involved. 278 2792015-08-30 Even Rouault <even.rouault at spatialys.com> 280 281 * libtiff/tif_lzw.c: make nextdata a unsigned type to avoid 282 undefined behaviour with shifts (gcc -fsanitize=shift) 283 2842015-08-30 Even Rouault <even.rouault at spatialys.com> 285 286 * libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c: 287 add explicit masking with 0xff before casting 288 to unsigned char (make icc -check=conversions happy) 289 290 * libtiff/tif_predict.c: operate on unsigned datatypes when 291 computing/applying differences to avoid undefined behaviour of 292 signed types (C standard compliance) 293 2942015-08-30 Bob Friesenhahn <[email protected]> 295 296 * configure.ac: libtiff 4.0.5 released. 297 2982015-08-29 Bob Friesenhahn <[email protected]> 299 300 * CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing 301 list on 2015-08-29) to add ld-version-script option to cmake build 302 to match autoconf. Note: defaults to 'on' to be ABI-compatible by 303 default with common Linux distribution builds. Note that the 304 autoconf configure script defaults to 'off'. 305 306 * html/build.html: Applied patch by Roger Leigh (via tiff mailing 307 list on 2015-08-29) to describe how to use CMake to build libtiff. 308 3092015-08-28 Bob Friesenhahn <[email protected]> 310 311 * html/v4.0.5.html: Added HTML file describing the changes which 312 will appear in the 4.0.5 release. 313 3142015-08-23 Bob Friesenhahn <[email protected]> 315 316 * libtiff/tiffiop.h: For MinGW comiles, make sure that build 317 supports necessary __MSVCRT_VERSION__ (at least at least 0x800). 318 Otherwise large files can not be supported for POSIX-style I/O. 319 320 * tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit 321 builds about cast to thandle_t. 322 323 * test/rewrite_tag.c (main): Does not require any arguments. 324 3252015-08-20 Bob Friesenhahn <[email protected]> 326 327 * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to 328 fix build issues when using Cmake due to Windows large file 329 changes. 330 3312015-08-18 Bob Friesenhahn <[email protected]> 332 333 * libtiff/tiffiop.h: First cut at supporting large files under 334 Microsoft Windows using tif_unix.c and the libtiff tools. This 335 only works if the Windows CDK is new enough to support the APIs 336 used (Visual C++ 2005 or later). Support for large files is not 337 actually tested yet. 338 3392015-08-15 Bob Friesenhahn <[email protected]> 340 341 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that 342 client_data is initialized to a known value, and to report an 343 error on two memory allocation failures. 344 3452015-08-13 Bob Friesenhahn <[email protected]> 346 347 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx 348 symbol versioning. Patch was mailed to libtiff list on Thu, 13 349 Aug 2015. 350 3512015-07-04 Bob Friesenhahn <[email protected]> 352 353 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3 354 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 355 +0100. 356 357 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh 358 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 359 360 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by 361 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 362 3632015-06-24 Bob Friesenhahn <[email protected]> 364 365 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 366 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several 367 corrections to ensure that the autotools build still works were 368 added by me. I have not yet tested the build using 'cmake' or 369 MSVC with 'nmake'. 370 3712015-06-21 Bob Friesenhahn <[email protected]> 372 373 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG 374 library so only execute if JPEG is available. 375 376 * libtiff 4.0.4 released. 377 378 * configure.ac: Add a HAVE_FOO Automake conditional for each 379 add-on library. 380 381 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode 382 requires JPEG support to compile. Use Automake conditional to 383 only include it when JPEG support is available. 384 385 * html/build.html: Try to improve the nmake-based VC++ build 386 description. 387 388 * libtiff/tiffconf.vc.h: Build fixes based on testing. 389 390 * libtiff/tif_config.vc.h: Build fixes based on testing. 391 392 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove 393 export for it. 394 3952015-06-20 Bob Friesenhahn <[email protected]> 396 397 * libtiff/tif_config.vc.h: Make adjustments to match the new 398 definitions that configure produces, including for WIN64. Still 399 needs to be tested. 400 401 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting 402 specifier. 64-bit MinGW supports 'long long' but support for 403 'lld' is not assured by the run-time DLLs and so GCC warns. 404 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition 405 and printf format specifier to deal with printing values of 406 'size_t' type. In particular, this was necessary for WIN64. 407 Added a configure test for if the system headers provide 'optarg' 408 (normal case) and block out the many explicit 'extern' statements 409 in the utilities. This was found to be necessary under Windows 410 when getopt is in a DLL and the symbols are already imported with 411 dllimport via standard header files. 412 413 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32 414 and boolean in MinGW build due to including jpeglib.h. 415 416 * test/rewrite_tag.c (main): Fix problem with location of variable 417 declaration. 418 419 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs, 420 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme, 421 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc, 422 TIFFRasterScanline, TIFFSetErrorHandlerExt, 423 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories, 424 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory, 425 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by 426 Roger Leigh and justified by use in libtiff tests, documentation, 427 and changelog notes. Also sorted symbol list and removed 428 duplicate entries. 429 4302015-06-16 Bob Friesenhahn <[email protected]> 431 432 * libtiff/tif_getimage.c: Fix four Coverity issues related to 433 unintended sign extension. 434 4352015-06-16 Even Rouault <even.rouault at spatialys.com> 436 437 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna) 438 4392015-06-14 Lee Howard <[email protected]> 440 441 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on 442 Bugzilla Bug #2510 fixes several harmless but still annoying 443 warnings 444 445 * configure: contribution from Ludolf Holzheid on Bugzilla 446 Bug #2498. Adds an option to select the file I/O style on 447 Windows hosts. 448 449 * libtiff/tif_getimage.c: contribution from Gary Cramblitt 450 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs. 451 452 * configure, configure.ac: contribution from Marcos H. Woehrmann 453 on Bugzilla Bug #2405. Correct shell equality operator. 454 455 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt 456 on Bugzilla Bug #2401. Appropriately call glFlush(). 457 458 * tools/tiff2pdf.c: change ColorTransform from "0" to "1" 459 following Bugzilla Bug #2150. 460 4612015-06-13 Lee Howard <[email protected]> 462 463 * libtiff/tif_lzw.c: contribution from Andy Cave - decode 464 files that contain consecutive CODE_CLEAR codes. 465 466 * tools/tiff2pdf.c: contribution from Antti S. Lankila on 467 Bugzilla Bug #2078. Suppress initial output of the header. 468 469 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy - 470 Take care in using the return value from snprintf(). 471 472 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira - 473 correctly copy the compression tag from the source TIFF. 474 475 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira - 476 correct sizing and scaling problems with output document. 477 4782015-06-10 Bob Friesenhahn <[email protected]> 479 480 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two 481 clean implementations in order to avoid pre-processor hell. Only 482 one of the implementations is used in a given build. 483 4842015-06-08 Even Rouault <even.rouault at spatialys.com> 485 486 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12 487 case 488 4892015-06-07 Bob Friesenhahn <[email protected]> 490 491 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975 492 "Division or modulo by zero". 493 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division 494 or modulo by zero". 495 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by 496 zero". 497 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by 498 zero". 499 500 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and 501 715974 "Division or modulo by zero". 502 5032015-05-31 Bob Friesenhahn <[email protected]> 504 505 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity 506 1134470 "Logically dead code" by making the roll-over check 507 explicit. 508 509 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227 510 "Division or modulo by zero". 511 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by 512 zero". 513 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by 514 zero". 515 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by 516 zero". 517 518 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix 519 Coverity 298626 "Logically dead code". 520 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead 521 code". 522 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead 523 code". 524 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead 525 code" 526 527 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++ 528 operator precedenc in evaluation. Might quench Coverity 1134470 529 "Logically dead code". 530 531 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands 532 don't affect result". This change uses ifdefs to include 533 applicable code based on properties of libjpeg. Still needs to be 534 re-tested with 12-bit "6b" and "MK1". 535 5362015-05-30 Bob Friesenhahn <[email protected]> 537 538 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310 539 "Resource leak". 540 541 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix 542 Coverity 601720 "Resource leak". 543 544 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624 545 "Dereference before null check". 546 547 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400 548 "Missing break in switch". 549 550 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer 551 size calculation for overflow. 552 553 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity 554 1024226 "Untrusted value as argument". 555 556 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted 557 value as argument". 558 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes 559 read". 560 (readextension): Fix Coverity 1024893 "Ignoring number of bytes 561 read". 562 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes 563 read". 564 (readraster): Fix Coverity 1024891 "Ignoring number of bytes 565 read". 566 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes 567 read". 568 569 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181 570 "Structurally dead code". 571 572 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return 573 value from library". 574 (guessSize): Fix Coverity 1024888 "Unchecked return value from 575 library". 576 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read". 577 (guessSize): Fix Coverity 1024889 "Unchecked return value from 578 library". 579 580 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621 581 "Resource leak". 582 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead 583 code". 584 (t2p_write_pdf): Fix Coverity 1227690 "Unused value". 585 5862015-05-29 Bob Friesenhahn <[email protected]> 587 588 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468 589 "Infinite loop". 590 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value". 591 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound". 592 5932015-05-28 Bob Friesenhahn <[email protected]> 594 595 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 596 Coverity 298615 "Resource leak". 597 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign 598 extension". 599 600 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value 601 as argument". 602 (main): Fix Coverity 1024678 "Unchecked return value from 603 library". 604 (main): Fix Coverity 1024679 "Unchecked return value from 605 library". 606 (main): Fix Coverity 1214160 "Ignoring number of bytes read". 607 608 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 609 Coverity 298615 "Resource leak". 610 611 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309 612 "Resource leak". 613 614 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource 615 leak". 616 (cpStrips): Fix Coverity 1024305 "Resource leak". 617 6182015-05-27 Bob Friesenhahn <[email protected]> 619 620 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe 621 for 64-bit systems. Add some header validations. Should fix many 622 Coverity issues. 623 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)". 624 (main): Quiet Coverity 1024223 "Untrusted value as argument". 625 626 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting 627 level does not match indentation". 628 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read". 629 This was a benign mis-diagnosis but added code to enforce against 630 buffer overflow. 631 632 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical 633 vs. bitwise operator". 634 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or 635 modulo by zero". 636 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead 637 code". 638 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not 639 match indentation". 640 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not 641 match indentation". 642 (loadImage): Fix Coverity 1299741 "Dereference before null check". 643 (loadImage): Fix Coverity 1299740 "Out-of-bounds write". 644 6452015-03-02 Even Rouault <[email protected]> 646 647 * tools/tiffdither.c: check memory allocations to avoid writing to 648 NULL pointer. Also check multiplication overflow. Fixes #2501, 649 CVE-2014-8128. Derived from patch by Petr Gajdos. 650 6512015-01-26 Even Rouault <[email protected]> 652 653 * add html/v4.0.4beta.html under version control 654 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used 655 6562015-01-26 Even Rouault <[email protected]> 657 658 * libtiff 4.0.4beta released 659 6602015-01-26 Even Rouault <[email protected]> 661 662 * automake: updated to 1.15 663 * libtool: updated to 2.4.5 664 6652015-01-22 Even Rouault <[email protected]> 666 667 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013) 668 6692015-01-05 Frank Warmerdam <[email protected]> 670 671 * html/bugs.html: remove note about needing to email the tiff mailing 672 list administrator about being approved for membership, this appears 673 not to be true. 674 6752015-01-05 Olivier Paquet <[email protected]> 676 677 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection. 678 6792015-01-03 Even Rouault <[email protected]> 680 681 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow 682 when reading more than 65535 directories, and effectively error out when 683 reaching that limit. 684 6852014-12-29 Even Rouault <[email protected]> 686 687 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10 688 markers to avoid emitting a warning (even if, according to the TechNote, 689 there are admitedly unusual/not recommended or even forbidden variants, but 690 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2, 691 SOF9 and SOF10). 692 Define in_color_space and input_components to the right values in 693 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by 694 libjpeg API documentation, so as to be compatible with mozjpeg library. 695 Note: the default settings of mozjpeg will produce progressive scans, which 696 is forbidden by the TechNote. 697 6982014-12-29 Even Rouault <[email protected]> 699 700 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling. 701 to avoid buffer leak (fix previous fix, found by Coverity scan) 702 7032014-12-29 Even Rouault <[email protected]> 704 705 * libtiff/tif_next.c: add new tests to check that we don't read outside of 706 the compressed input stream buffer. 707 708 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height 709 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and 710 putcontig8bitYCbCr21tile cases. 711 7122014-12-27 Even Rouault <[email protected]> 713 714 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing 715 extented tags installed by user code through the extender mechaninm before 716 calling the extender callback (GDAL #5054) 717 7182014-12-26 Bob Friesenhahn <[email protected]> 719 720 * tools/tiffcrop.c: Fix warnings about variables set but not used. 721 722 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set 723 but not used. 724 725 * tools/tiffgt.c: Fix warnings about unused parameters. 726 727 * libtiff/tif_stream.cxx: Fix warnings about unused parameters. 728 7292014-12-25 Even Rouault <[email protected]> 730 731 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix 732 various typos found by Debian lintian tool (GDAL #5756) 733 7342014-12-24 Even Rouault <[email protected]> 735 736 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling. 737 http://bugzilla.maptools.org/show_bug.cgi?id=2235 738 7392014-12-24 Even Rouault <[email protected]> 740 741 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images. 742 http://bugzilla.maptools.org/show_bug.cgi?id=2445 743 7442014-12-24 Even Rouault <[email protected]> 745 746 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image. 747 Derived from patch by Petr Gajdos, 748 http://bugzilla.maptools.org/show_bug.cgi?id=2443 749 7502014-12-23 Even Rouault <[email protected]> 751 752 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code 753 of _TIFFFillStriles(). This solves crashing bug on corrupted 754 images generated by afl. 755 7562014-12-23 Even Rouault <[email protected]> 757 758 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with 759 <= 0 by casting it to int64 first. This solves crashing bug on corrupted 760 images generated by afl. 761 7622014-12-21 Bob Friesenhahn <[email protected]> 763 764 * tools/tiffdump.c: Guard against arithmetic overflow when 765 calculating allocation buffer sizes. 766 7672014-12-21 Even Rouault <[email protected]> 768 769 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if 770 SamplesPerPixel = 3. Enforce that 771 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127) 772 7732014-12-21 Even Rouault <[email protected]> 774 775 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES 776 copying. The right fix would be to properly copy it, but not worth the burden 777 for those esoteric utilities. 778 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127) 779 7802014-12-21 Even Rouault <[email protected]> 781 782 * tools/thumbnail.c: fix out-of-buffer write 783 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128) 784 7852014-12-21 Even Rouault <[email protected]> 786 787 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS 788 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or 789 COMPRESSION_CCITTFAX4 790 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128) 791 7922014-12-21 Even Rouault <[email protected]> 793 794 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes 795 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129) 796 7972014-12-21 Even Rouault <[email protected]> 798 799 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading 800 TIFFTAG_SAMPLESPERPIXEL 801 8022014-12-21 Even Rouault <[email protected]> 803 804 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none. 805 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480) 806 Description: fix for Debian bug #741451 807 tiffcp crashes when converting JPEG-encoded TIFF to a different 808 encoding (like none or lzw). For example this will probably fail: 809 tiffcp -c none jpeg_encoded_file.tif output.tif 810 The reason is that when the input file contains JPEG data, 811 the tiffcp code forces conversion to RGB space. However, 812 the output normally inherits YCbCr subsampling parameters 813 from the input, which leads to a smaller working buffer 814 than necessary. The buffer is subsequently overrun inside 815 cpStripToTile() (called from writeBufferToContigTiles). 816 Note that the resulting TIFF file would be scrambled even 817 if tiffcp wouldn't crash, since the output file would contain 818 RGB data intepreted as subsampled YCbCr values. 819 This patch fixes the problem by forcing RGB space on the output 820 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded. 821 Author: Tomasz Buchert <[email protected]> 822 8232014-12-21 Even Rouault <[email protected]> 824 825 Fix various crasher bugs on fuzzed images. 826 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for 827 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing 828 the directory 829 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or 830 TransferFunction if BitsPerSample has not yet been read, otherwise reading 831 it later will cause user code to crash if BitsPerSample > 1 832 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with 833 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8 834 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images 835 instead of imagewidth to avoid crash 836 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions 837 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by 838 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB 839 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight 840 * tools/tiffdump.c: fix crash due to overflow of entry count. 841 8422014-12-15 Even Rouault <[email protected]> 843 844 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused 845 all tiles/strips to include quantization tables even when the jpegtablesmode 846 had the JPEGTABLESMODE_QUANT bit set. 847 Also add explicit removal of Huffman tables when jpegtablesmode has the 848 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the 849 first tile/strip (only useful in update scenarios. create-only was 850 fine) 851 8522014-12-09 Bob Friesenhahn <[email protected]> 853 854 * tools/tiff2pdf.c: Assure that memory size calculations for 855 _TIFFmalloc() do not overflow the range of tmsize_t. 856 8572014-12-07 Even Rouault <[email protected]> 858 859 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with 860 Valgrind and Address Sanitizer on test suite 861 8622014-12-07 Bob Friesenhahn <[email protected]> 863 864 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION 865 tag can return one channel, with the other two channels set to 866 NULL. The tiff2pdf code was expecting that other two channels 867 were duplicate pointers in the case where there is only one 868 channel. Detect this condition in order to avoid a crash, and 869 presumably perform correctly with just one channel. 870 8712014-12-06 Bob Friesenhahn <[email protected]> 872 873 * tools/tiffdump.c: Fix double-free bug. 874 8752014-11-27 Even Rouault <[email protected]> 876 877 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with 878 Visual Studio 2015 aka VC 14 aka MSVC 1900 879 8802014-11-20 Even Rouault <[email protected]> 881 882 * libtiff/tif_lzw.c: prevent potential null dereference of 883 sp->dec_codetab in LZWPreDecode (bug #2459) 884 885 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size 886 to TIFFmalloc() if passed user buffer size is 0 (bug #2459) 887 888 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459) 889 890 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make 891 Coverity happier (not a bug, #2459) 892 893 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier 894 (not a bug, #2459) 895 896 * tools/tiff2pdf.c: close PDF file (bug #2479) 897 898 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470) 899 900 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463) 901 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459) 902 903 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option 904 (bug #2459) and add missing va_end in dump_info (#2459) 905 906 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451) 907 9082014-11-20 Even Rouault <[email protected]> 909 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on 910 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471) 911 9122014-11-20 Even Rouault <[email protected]> 913 * automake: updated to 1.14.1 914 * libtool: updated to 2.4.3 915 * HOWTO-RELEASE: small update about autotools building order 916 9172014-10-20 Olivier Paquet <[email protected]> 918 * tools/tiff2pdf.c: Preserve input file directory order when pages 919 are tagged with the same page number. 920 9212014-08-31 Bob Friesenhahn <[email protected]> 922 923 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect 924 count for tag should be a warning rather than an error since 925 errors terminate processing. 926 9272014-06-07 Bob Friesenhahn <[email protected]> 928 929 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip 930 was wrongly described. Fix suggested by Miguel Medalha. 931 9322014-05-06 Bob Friesenhahn <[email protected]> 933 934 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for 935 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood. 936 Reviewed and forwarded by Lee Howard. 937 9382013-11-30 Frank Warmerdam <[email protected]> 939 940 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories() 941 9422013-10-21 Frank Warmerdam <[email protected]> 943 944 * libtiff/tif_dir.c: generate error in case of directory count 945 overflow. 946 9472013-10-01 Frank Warmerdam <[email protected]> 948 949 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for 950 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457) 951 9522013-09-12 Bob Friesenhahn <[email protected]> 953 954 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to 955 be defective, then set it to zero before returning error in order 956 to terminate processing of truncated TIFF. Issue found and fix 957 suggested by Richard Nolde. 958 9592013-08-14 Frank Warmerdam <[email protected]> 960 961 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244) 962 9632013-08-13 Frank Warmerdam <[email protected]> 964 965 * tools/gif2tiff.c: Be more careful about corrupt or 966 hostile input files (#2450, CVE-2013-4231) 967 968 * tools/tiff2pdf.c: terminate after failure of allocating 969 ycbcr buffer (bug #2449, CVE-2013-4232) 970 9712013-07-09 Frank Warmerdam <[email protected]> 972 973 * tools/tiffinfo.c: Default various values fetched with 974 TIFFGetField() to avoid being uninitialized. 975 9762013-05-02 Tom Lane <[email protected]> 977 978 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in 979 t2p_process_jpeg_strip to be at least marginally competent. The 980 approach is still fundamentally flawed, but at least now it won't 981 stomp all over memory when given bogus input. Fixes CVE-2013-1960. 982 9832013-05-02 Tom Lane <[email protected]> 984 985 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c, 986 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c, 987 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c, 988 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't 989 large enough, and eliminate substantially all uses of sprintf(buf, 990 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to 991 protect against overflow of fixed-size buffers. This responds in 992 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's 993 t2p_write_pdf_page(), but in general it seems like a good idea to 994 deprecate use of sprintf(). 995 9962013-03-29 Bob Friesenhahn <[email protected]> 997 998 * configure.ac: Applied patch by Brad Smith to improve pkg-config 999 static linking by adding -lm to Libs.private when needed. 1000 10012013-03-05 Tom Lane <[email protected]> 1002 1003 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html, 1004 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1, 1005 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c, 1006 tools/tiffdither.c: Sync tool usage printouts and man pages with 1007 reality (quite a few options had escaped being documented in one 1008 or both places). Per an old report from Miroslav Vadkerti. 1009 10102013-01-25 Bob Friesenhahn <[email protected]> 1011 1012 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a 1013 rotation angle was set by the auto rotate check, it was retained 1014 for all pages that followed instead ofa being retested for each 1015 page. Patch by Richard Nolde. 1016 10172013-01-18 Frank Warmerdam <[email protected]> 1018 1019 * libtiff/tif_write.c: tmsize_t related casting warning fixed for 1020 64bit linux. 1021 1022 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings. 1023 http://bugzilla.maptools.org/show_bug.cgi?id=2427 1024 10252012-12-20 Tom Lane <[email protected]> 1026 1027 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that 1028 it will pass with more versions of libjpeg. (There are at least 1029 three in active use now, and JPEG_LIB_VERSION doesn't tell us 1030 enough to uniquely identify expected results.) 1031 10322012-12-12 Tom Lane <[email protected]> 1033 1034 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of 1035 field_passcount fields: it had the TIFF_VARIABLE and 1036 TIFF_VARIABLE2 cases backwards. 1037 10382012-12-10 Tom Lane <[email protected]> 1039 1040 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564: 1041 check the linebytes calculation too, get the max() calculation 1042 straight, avoid redundant error messages, check for malloc 1043 failure. 1044 10452012-12-10 Tom Lane <[email protected]> 1046 1047 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447 1048 (to enlarge tbuf for possible partial stride at end) so that 1049 overflow in the integer addition is detected. Per gripe from 1050 Huzaifa Sidhpurwala. 1051 10522012-12-03 Bob Friesenhahn <[email protected]> 1053 1054 * tools/tiffset.c: tiffset now supports a -u option to unset a 1055 tag. Patch by Zach Baker. See 1056 http://bugzilla.maptools.org/show_bug.cgi?id=2419 1057 10582012-11-18 Bob Friesenhahn <[email protected]> 1059 1060 * automake: Update Automake to 1.12.5 release. 1061 1062 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not 1063 require malloc() to return NULL pointer if requested allocation 1064 size is zero. Assure that _TIFFmalloc does. 1065 10662012-11-01 Frank Warmerdam <[email protected]> 1067 1068 * tools/ppm2tiff.c: avoid zero size buffer vulnerability. 1069 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the 1070 Red Hat Security Response team for the fix. 1071 10722012-10-18 Frank Warmerdam <[email protected]> 1073 1074 * tif_zip.c: Avoid crash on NULL error messages. 1075 10762012-09-22 Bob Friesenhahn <[email protected]> 1077 1078 * libtiff 4.0.3 released. 1079 10802012-09-20 Bob Friesenhahn <[email protected]> 1081 1082 * Makefile.am: Update to Automake 1.12.4 1083 10842012-08-19 Bob Friesenhahn <[email protected]> 1085 1086 * Makefile.in: Update to Automake 1.12.3 1087 1088 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add 1089 some TIFF/FX support in libtiff. Add the tag definitions to 1090 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c, 1091 and also fixes an error in a comment. Adds the photometric values 1092 to tif_print.c, and fixes a bug. These changes are by Steve 1093 Underwood. 1094 10952012-08-13 Frank Warmerdam <[email protected]> 1096 1097 * libtiff/tif_write.c: Fix bug rewriting image tiles in a 1098 compressed file: http://trac.osgeo.org/gdal/ticket/4771 1099 11002012-08-02 Frank Warmerdam <[email protected]> 1101 1102 * libtiff/tif_dirread.c: report error in case of mismatch value 1103 counts for tags (ie. DotRange). 1104 11052012-07-26 Tom Lane <[email protected]> 1106 1107 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new 1108 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(), 1109 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount() 1110 as external accessors for the opaque type TIFFField. 1111 1112 * tools/tiffset.c: Make tiffset use the above functions instead of 1113 relying on library private headers. 1114 11152012-07-19 Tom Lane <[email protected]> 1116 1117 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set 1118 after a malloc failure. No crash risk AFAICS, but the program 1119 might not report exit code 1 as desired. h/t [email protected] 1120 11212012-07-18 Tom Lane <[email protected]> 1122 1123 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This 1124 prevents core dumps or perhaps even arbitrary code execution when 1125 processing a corrupt input file (CVE-2012-3401). 1126 11272012-07-06 Bob Friesenhahn <[email protected]> 1128 1129 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+. 1130 IJG JPEG 7+ uses a different upsampling algorithm which produces 1131 different numeric results. 1132 1133 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to 1134 work with IJG JPEG 7+. 1135 11362012-07-04 Bob Friesenhahn <[email protected]> 1137 1138 * test/raw_decode.c: Add changes so that test can run with build 1139 directory outside of source directory. 1140 11412012-07-02 Frank Warmerdam <[email protected]> 1142 1143 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed 1144 imagery (http://trac.osgeo.org/gdal/ticket/4732) 1145 11462012-06-20 Frank Warmerdam <[email protected]> 1147 1148 * libtiff/tif_fax3.c: fix memory initialization of runs, only 1149 partly done. 1150 1151 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one 1152 full "stride" past the end. 1153 11542012-06-19 Frank Warmerdam <[email protected]> 1155 1156 * libtiff/tif_packbits.c: fix read past end of data buffer. 1157 11582012-06-15 Frank Warmerdam <[email protected]> 1159 1160 * libtiff 4.0.2 released. 1161 1162 * tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable 1163 warnings with clang. 1164 11652012-06-15 Tom Lane <[email protected]> 1166 1167 * tools/tiff2pdf.c: Defend against integer overflows while 1168 calculating required buffer sizes (CVE-2012-2113). 1169 11702012-06-12 Frank Warmerdam <[email protected]> 1171 1172 * libtiff/tif_print.c: Be careful about printing corrupt inknames. 1173 1174 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros. 1175 11762012-06-07 Frank Warmerdam <[email protected]> 1177 1178 * libtiff/tif_print.c: avoid pretty printing other fields when 1179 we don't have the proper amount and type of data or if the field 1180 is actually autodefined. 1181 11822012-06-05 Frank Warmerdam <[email protected]> 1183 1184 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal 1185 ycbcrsubsampling values result in a runtime error, not just an 1186 assertion. 1187 1188 * tests/custom_dir.c: Add testing of EXIF and custom directory 1189 reading and writing. 1190 1191 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory() 1192 and TIFFCreateEXIFDirectory() functions. 1193 1194 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for 1195 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE 1196 differently. This is to avoid using special TIFFGetField/TIFFSetField 1197 rules for these fields in non-image directories (like EXIF). 1198 11992012-06-04 Frank Warmerdam <[email protected]> 1200 1201 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling 1202 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner 1203 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong. 1204 12052012-06-01 Frank Warmerdam <[email protected]> 1206 1207 * tools/tiffinfo.c: Do not try to read image data in EXIF directories. 1208 1209 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images. 1210 http://bugzilla.maptools.org/show_bug.cgi?id=2379 1211 1212 * libtiff/tif_unix.c: use strerror() to return a more specific error message 1213 on failed open. 1214 http://bugzilla.maptools.org/show_bug.cgi?id=2341 1215 1216 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs. 1217 http://bugzilla.maptools.org/show_bug.cgi?id=2386 1218 1219 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support 1220 for testing jpeg in tiff image decoding including the "raw" decode interface. 1221 12222012-05-31 Frank Warmerdam <[email protected]> 1223 1224 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in 1225 JPEGDecodeRaw() - mostly likely to occur when there is confusion about 1226 sampling values. 1227 1228 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed. 1229 1230 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval. 1231 http://bugzilla.maptools.org/show_bug.cgi?id=2398 1232 12332012-05-29 Frank Warmerdam <[email protected]> 1234 1235 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories, 1236 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting 1237 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations 1238 to get/set functions for different tags! 1239 1240 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata 1241 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag. 1242 12432012-05-24 Frank Warmerdam <[email protected]> 1244 1245 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward 1246 accumulate" and overwrite the end by one word in at least some cases. 1247 12482012-05-23 Frank Warmerdam <[email protected]> 1249 1250 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs. 1251 1252 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files. 1253 1254 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on 1255 the same image. 1256 1257 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without 1258 stripbytecounts or stripoffsets or where loading these fails. 1259 1260 * libtiff/tif_print.c: be careful about whether min/max values are singular 1261 or one per sample. 1262 1263 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields. 1264 May affect things like ISOSpeedRatings. 1265 1266 * libtiff/tif_dir.c: avoid one byte past end of ink names reading 1267 in some cases. 1268 12692012-05-19 Bob Friesenhahn <[email protected]> 1270 1271 * man/TIFFGetField.3tiff: Correct the 'count' field type in the 1272 example for how to retreive the value of unsupported tags. 1273 12742012-03-30 Frank Warmerdam <[email protected]> 1275 1276 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173) 1277 care of Tom Lane @ Red Hat. 1278 12792012-02-18 Bob Friesenhahn <[email protected]> 1280 1281 * libtiff 4.0.1 released. 1282 1283 * Update automake used to 1.11.3. 1284 1285 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf 1286 attribute specification to lessen the risk of accidental macro 1287 substitution. Patch from Vincent Torri. 1288 12892012-01-31 Frank Warmerdam <[email protected]> 1290 1291 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around 1292 assumption tag fetching is always successful. 1293 1294 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL. 1295 12962012-01-22 Bob Friesenhahn <[email protected]> 1297 1298 * configure.ac: Add support for using library symbol versioning on 1299 ELF systems with the GNU linker. Support is enabled via 1300 --enable-ld-version-script. Disabled by default for now until 1301 there is a decision for how to deploy a libtiff with versioned 1302 symbols after libtiff 4.0.0 was already released. 1303 13042011-12-22 Bob Friesenhahn <[email protected]> 1305 1306 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in 1307 1308 tif_win32.c. Patch by Edward Lam. 1309 1310 * configure.ac: Add libtiff private dependency on -llzma for 1311 pkg-config. Patch by Mark Brand. 1312 Updated Automake to 1.11.2. 1313 13142011-12-21 Bob Friesenhahn <[email protected]> 1315 1316 * libtiff 4.0.0 released. 1317 13182011-12-08 Frank Warmerdam <[email protected]> 1319 1320 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking 1321 of _TIFFFillStriles() results (#gdal 4372) 1322 13232011-12-07 Frank Warmerdam <[email protected]> 1324 1325 * libtiff/tif_dirread.c: fixes to deal with invalid files where 1326 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372) 1327 1328 * libtiff/tif_dirread.c: fix error reporting when there is no 1329 tag information struct and name (gdal #4373) 1330 13312011-10-22 Bob Friesenhahn <[email protected]> 1332 1333 * Update GNU libtool to 2.4.2. 1334 1335 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be 1336 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe 1337 Deroulers. 1338 13392011-06-21 Frank Warmerdam <[email protected]> 1340 1341 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo. 1342 13432011-05-31 Jim Meyering <[email protected]> 1344 1345 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also 1346 upon failure to allocate "resizeddata". 1347 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for 1348 allocation failure, not before. 1349 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path 1350 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc 1351 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark 1352 NULL-deref and possible overflow 1353 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written" 1354 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration 1355 and set of otherwise unused local, data_is_empty. 1356 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]: 1357 Diagnose out-of-memory failure and return 0 rather than 1358 dereferencing NULL. 1359 13602011-05-24 Frank Warmerdam <[email protected]> 1361 1362 * libtiff/tif_dirread.c: produce special error message for zero tag 1363 directories instead of error out on the malloc(0) failure. 1364 13652011-05-16 Frank Warmerdam <[email protected]> 1366 1367 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and 1368 related declarations as they are in active use by libraries 1369 such as libgeotiff, and work just fine. (#2315) 1370 13712011-04-20 Frank Warmerdam <[email protected]> 1372 1373 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete 1374 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API. 1375 http://bugzilla.maptools.org/show_bug.cgi?id=2315 1376 1377 * libtiff/libtiff.def: add some missing (64bit) APIs. 1378 http://bugzilla.maptools.org/show_bug.cgi?id=2316 1379 13802011-04-09 Bob Friesenhahn <[email protected]> 1381 1382 * libtiff 4.0.0beta7 released. 1383 13842011-04-09 Bob Friesenhahn <[email protected]> 1385 1386 * configure.ac: Should use AC_CANONICAL_HOST since host specifies 1387 the run-time target whereas target is used to specify the final 1388 output target if the package is a build tool (like a compiler), 1389 which libtiff is not. Resolves libtiff bug 2307 "Use 1390 AC_CANONICAL_HOST macro". 1391 13922011-04-02 Bob Friesenhahn <[email protected]> 1393 1394 * configure.ac: Support configuring TIFF_INT64_FORMAT and 1395 TIFF_UINT64_FORMAT appropriately for MinGW32. 1396 1397 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32 1398 printf conventions for 64-bit types because it uses the WIN32 CRT. 1399 1400 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c, 1401 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32 1402 printf conventions for 64-bit types because it uses the WIN32 CRT. 1403 1404 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not 1405 understood by WIN32 CRT. 1406 1407 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC. 1408 1409 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since 1410 it is much more portable. Tmpfile is included in ISO/IEC 1411 9899:1990 and the WIN32 CRT. 1412 14132011-03-26 Frank Warmerdam <[email protected]> 1414 1415 * tools/tiffset.c: add -d and -sd switches to allow operation on 1416 a particular directory, not just the first (jef). 1417 14182011-03-21 Frank Warmerdam <[email protected]> 1419 1420 * libtiff/tif_thunder.c: Correct potential buffer overflow with 1421 thunder encoded files with wrong bitspersample set. The libtiff 1422 development team would like to thank Marin Barbella and TippingPoint's 1423 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004, 1424 CVE-2011-1167). 1425 http://bugzilla.maptools.org/show_bug.cgi?id=2300 1426 14272011-03-10 Frank Warmerdam <[email protected]> 1428 1429 * libtiff/tif_fax3.h: Fix to last change allowing zero length 1430 runs at the start of a scanline - needed for legal cases. 1431 14322011-03-02 Frank Warmerdam <[email protected]> 1433 1434 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding 1435 a move left. Without this, a malicious input file can generate an 1436 indefinitely large series of runs without a0 ever reaching the right 1437 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192. 1438 This is a modified version of a patch proposed by Drew Yao of Apple 1439 Product Security. It adds an unexpected() report, and disallows the 1440 equality case, since emitting a run without increasing a0 still allows 1441 buffer overrun. 1442 14432011-02-23 Frank Warmerdam <[email protected]> 1444 1445 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296) 1446 1447 * tools/tiff2rgba.c: close source file on error to make leak 1448 detection easier. 1449 1450 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails. 1451 1452 http://bugzilla.maptools.org/show_bug.cgi?id=2295 1453 14542011-02-22 Frank Warmerdam <[email protected]> 1455 1456 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ 1457 _SUPPORT) 1458 14592011-02-18 Frank Warmerdam <[email protected]> 1460 1461 * configure.ac, configure: Added support for --enable-chunky-strip-read 1462 configure option to enable the experimental feature from a couple 1463 months ago for reading big strips in chunks. 1464 1465 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h, 1466 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c: 1467 Implement optional support for deferring the load of strip/tile 1468 offset and size tags for optimized scanning of directories. Enabled 1469 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD 1470 #define in tif_config.h). 1471 14722011-02-11 Frank Warmerdam <[email protected]> 1473 1474 * libtiff/tif_print.c: remove unused variable. 1475 14762011-02-09 Frank Warmerdam <[email protected]> 1477 1478 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem 1479 with non-console (popup message) builds on win32. 1480 1481 http://bugzilla.maptools.org/show_bug.cgi?id=2293 1482 14832011-01-24 Olivier Paquet <[email protected]> 1484 1485 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c, 1486 tif_print.c, tiff.h, tiffiop.h} : Added support for 1487 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different 1488 values for each sample. Presents the min/max of all samples by default for 1489 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags 1490 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag. 1491 http://www.asmail.be/msg0055458208.html 1492 14932011-01-06 Frank Warmerdam <[email protected]> 1494 1495 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not 1496 maintained. 1497 1498 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding 1499 for CHUNKY_STRIP_READ_SUPPORT. 1500 1501 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained 1502 during JPEGPreDecode and JPEGDecode calls. 1503 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT, 1504 as compression formats like JPEG keep 16 lines interleaved in a sense 1505 and might need to touch quite a bit of data. 1506 1507 http://trac.osgeo.org/gdal/ticket/3894 1508 15092011-01-03 Lee Howard <[email protected]> 1510 1511 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images 1512 caused by commit on 2010-12-14. Submitted by e-mail from 1513 Even Rouault <[email protected]> 1514 15152010-12-31 Olivier Paquet <[email protected]> 1516 1517 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE. 1518 http://bugzilla.maptools.org/show_bug.cgi?id=2266 1519 15202010-12-23 Andrey Kiselev <[email protected]> 1521 1522 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the 1523 compression level parameter (preset) for Deflate and LZMA encoders, 1524 e.g "-c lzma:p1" or "-c zip:p9". 1525 1526 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level 1527 (preset) in LZMAVSetField(). 1528 15292010-12-18 Bob Friesenhahn <[email protected]> 1530 1531 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to 1532 Makefile. 1533 15342010-12-14 Andrey Kiselev <[email protected]> 1535 1536 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h, 1537 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new 1538 TIFF compression scheme LZMA reserving a new value 34925 for 1539 Compression tag. As per 1540 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221 1541 15422010-12-14 Lee Howard <[email protected]> 1543 1544 * libtiff/tif_dirread.c: tolerate some cases where 1545 FIELD_COLORMAP is missing 1546 http://bugzilla.maptools.org/show_bug.cgi?id=2189 1547 15482010-12-14 Lee Howard <[email protected]> 1549 1550 * libtiff/tif_read.c: change read_ahead to tmsize_t 1551 http://bugzilla.maptools.org/show_bug.cgi?id=2222 1552 15532010-12-14 Lee Howard <[email protected]> 1554 1555 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on 1556 Windows except on Cygwin 1557 http://bugzilla.maptools.org/show_bug.cgi?id=2224 1558 15592010-12-14 Lee Howard <[email protected]> 1560 1561 * tools/gif2tiff.c: fix buffer overrun 1562 http://bugzilla.maptools.org/show_bug.cgi?id=2270 1563 15642010-12-14 Lee Howard <[email protected]> 1565 1566 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order 1567 to improve compatibility with various viewers 1568 submitted by e-mail from Dwight Kelly <[email protected]> 1569 15702010-12-13 Lee Howard <[email protected]> 1571 1572 * tools/fax2ps.c: be consistent with page-numbering 1573 http://bugzilla.maptools.org/show_bug.cgi?id=2225 1574 15752010-12-13 Lee Howard <[email protected]> 1576 1577 * libtiff/tif_color.c: prevent crash in handling bad TIFFs 1578 resolves CVE-2010-2595 1579 http://bugzilla.maptools.org/show_bug.cgi?id=2208 1580 15812010-12-13 Lee Howard <[email protected]> 1582 1583 * tools/tiffcrop.c: new release by Richard Nolde 1584 http://bugzilla.maptools.org/show_bug.cgi?id=2004 1585 15862010-12-12 Lee Howard <[email protected]> 1587 1588 * tools/tiff2pdf.c: fix colors for images with RGBA 1589 interleaved data 1590 http://bugzilla.maptools.org/show_bug.cgi?id=2250 1591 15922010-12-12 Lee Howard <[email protected]> 1593 1594 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files 1595 http://bugzilla.maptools.org/show_bug.cgi?id=2164 1596 15972010-12-11 Lee Howard <[email protected]> 1598 1599 * tools/tiff2pdf.c: remove invalid duplication for Lab 1600 http://bugzilla.maptools.org/show_bug.cgi?id=2162 1601 16022010-12-11 Lee Howard <[email protected]> 1603 1604 * libtiff/tif_jpeg.c: fix use of clumplines calculation 1605 http://bugzilla.maptools.org/show_bug.cgi?id=2149 1606 16072010-12-11 Lee Howard <[email protected]> 1608 1609 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp() 1610 http://bugzilla.maptools.org/show_bug.cgi?id=2118 1611 16122010-12-11 Lee Howard <[email protected]> 1613 1614 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c, 1615 libtiff/tif_zip.c: fix build errors for VC6 1616 http://bugzilla.maptools.org/show_bug.cgi?id=2105 1617 16182010-12-11 Lee Howard <[email protected]> 1619 1620 * libtiff/tif_stream.cxx: warnings cleanup 1621 http://bugzilla.maptools.org/show_bug.cgi?id=2091 1622 * libtiff/tif_dirread.c: warnings cleanup 1623 http://bugzilla.maptools.org/show_bug.cgi?id=2092 1624 16252010-12-11 Lee Howard <[email protected]> 1626 1627 * tools/tiff2pdf.c: add fill-page option 1628 http://bugzilla.maptools.org/show_bug.cgi?id=2051 1629 16302010-12-11 Lee Howard <[email protected]> 1631 1632 * libtiff/tif_dirread.c: modify warnings 1633 http://bugzilla.maptools.org/show_bug.cgi?id=2016 1634 16352010-12-11 Lee Howard <[email protected]> 1636 1637 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data 1638 http://bugzilla.maptools.org/show_bug.cgi?id=1999 1639 16402010-12-11 Lee Howard <[email protected]> 1641 1642 * tools/tiffinfoce.c: strip byte counts are uint64* now 1643 16442010-12-11 Lee Howard <[email protected]> 1645 1646 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero 1647 or missing byte-count tag 1648 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count 1649 per http://bugzilla.maptools.org/show_bug.cgi?id=1996 1650 16512010-12-08 Lee Howard <[email protected]> 1652 1653 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed 1654 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994 1655 16562010-12-06 Lee Howard <[email protected]> 1657 1658 * libtiff/tif_open.c: Fix mode check before opening a file. 1659 http://bugzilla.maptools.org/show_bug.cgi?id=1906 1660 16612010-11-27 Bob Friesenhahn <[email protected]> 1662 1663 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support. 1664 Patch by Vincent Torri. 1665 16662010-10-21 Frank Warmerdam <[email protected]> 1667 1668 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler. 1669 1670 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf. 1671 1672 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools. 1673 16742010-09-25 Lee Howard <[email protected]> 1675 1676 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde 1677 with additional command line options for Document Title, 1678 Document Creator, and Page Orientation 1679 16802010-07-13 Bob Friesenhahn <[email protected]> 1681 1682 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a 1683 potentially unterminated buffer due to using an exceptionally long 1684 file name. 1685 16862010-07-08 Andrey Kiselev <[email protected]> 1687 1688 * tools/tiff2pdf.c: Fixed ID buffer filling in 1689 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 1690 16912010-07-07 Andrey Kiselev <[email protected]> 1692 1693 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount() 1694 to expected value as the warning message suggests. As per bug 1695 http://bugzilla.maptools.org/show_bug.cgi?id=1963 1696 16972010-07-06 Andrey Kiselev <[email protected]> 1698 1699 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER, 1700 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE 1701 which should be set by value. 1702 1703 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag() 1704 and _TIFFFieldWithName() if the tag is not found in the tag table. 1705 This should be normal situation and returned NULL value should be 1706 properly handled by the caller. 1707 17082010-07-02 Andrey Kiselev <[email protected]> 1709 1710 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned 1711 integer type conversions. As per bug 1712 http://bugzilla.maptools.org/show_bug.cgi?id=2207 1713 1714 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for 1715 WhitePoint tag as per bug 1716 http://bugzilla.maptools.org/show_bug.cgi?id=2042 1717 1718 * libtiff/tif_getimage.c: Check the number of samples per pixel when 1719 working with YCbCr image in PickContigCase(). As per bug 1720 http://bugzilla.maptools.org/show_bug.cgi?id=2216 1721 1722 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing 1723 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when 1724 we don't need any post-processing. That helps to reset the hook if we 1725 previously set this field to some other value and the hook was 1726 initialized accordingly. As per bug 1727 http://bugzilla.maptools.org/show_bug.cgi?id=2035 1728 17292010-07-01 Andrey Kiselev <[email protected]> 1730 1731 * tools/tiffgt.c: Properly check the raster buffer allocations for 1732 integer overflows. As per bug 1733 http://bugzilla.maptools.org/show_bug.cgi?id=2108 1734 1735 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the 1736 upstream. 1737 1738 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move 1739 multiply_32() and multiply_64() functions into tif_aux.c file and 1740 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively. 1741 17422010-06-30 Andrey Kiselev <[email protected]> 1743 1744 * tools/tiff2pdf.c: Better generation of ID field in 1745 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings. 1746 1747 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when 1748 converting JPEG encoded tiles. 1749 1750 * tools/tiff2pdf.c: Better handling of string fields, use static 1751 string buffers instead of dynamically allocated, use strncpy() instead 1752 of strcpy(), control the string lengths. 1753 17542010-06-25 Andrey Kiselev <[email protected]> 1755 1756 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid 1757 referencing to uninitialized memory in some cases (e.g. when tile size 1758 set bigger than the image size). 1759 17602010-06-15 Bob Friesenhahn <[email protected]> 1761 1762 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr 1763 subsampled data since tiffcrop currently doesn't support it. Fix 1764 JPEG support. 1765 17662010-06-13 Frank Warmerdam <[email protected]> 1767 1768 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201) 1769 1770 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return" 1771 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely 1772 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual 1773 size is larger. Also, there are a bunch of places that try to 1774 memset() a malloc'd buffer before checking for malloc failure, which 1775 would result in core dump if there actually were a failure. (#2211) 1776 17772010-06-11 Bob Friesenhahn <[email protected]> 1778 1779 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to 1780 avoid compiler warnings if parameter types are not sign 1781 consistent. 1782 1783 * libtiff 4.0.0alpha6 released. 1784 1785 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected 1786 European page size dimensions. Added an option to allow the user 1787 to specify a custom page size on the command line. Fix the case 1788 where a page size specified with a fractional part was being 1789 coerced to an integer by retyping the variables that define the 1790 paper size. 1791 1792 * html/index.html: Update for the 3.9.3 release. 1793 1794 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject 1795 YCbCr subsampled data since tiffcp currently doesn't support it. 1796 http://bugzilla.maptools.org/show_bug.cgi?id=2097 1797 1798 * Update libtool to version 2.2.10. 1799 18002010-06-10 Bob Friesenhahn <[email protected]> 1801 1802 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if 1803 multiplier is zero. 1804 18052010-06-09 Bob Friesenhahn <[email protected]> 1806 1807 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for 1808 CVE-2010-1411 was not complete. 1809 1810 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely 1811 multiply two integers. Returns zero if there is an integer 1812 overflow. 1813 1814 * tools/tiffcp.c (main): tiffcp should not leak memory if an error 1815 is reported when reading the input file. 1816 18172010-06-08 Bob Friesenhahn <[email protected]> 1818 1819 * Update libtool to version 2.2.8. 1820 1821 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of 1822 buffer due to integer overflow in TIFFroundup() and several other 1823 potential overflows. In conjunction with the fix to TIFFhowmany(), 1824 fixes CVE-2010-1411. 1825 1826 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would 1827 result in an integer overflow. This causes TIFFroundup() to also 1828 return zero if there would be an integer overflow. 1829 1830 * contrib: Add an emacs formatting mode footer to all source files 1831 so that emacs can be effectively used. 1832 18332010-06-03 Oliver Chen Feng <[email protected]> 1834 1835 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff 1836 file PAGENUMBER value in sequence for users who care the page 1837 sequence, this will also prevent tiff2pdf from creating pdf file from 1838 the merged tiff file with wrong page sequence. 1839 18402010-05-08 Olivier Paquet <[email protected]> 1841 1842 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order 1843 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag. 1844 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1845 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2). 1846 http://bugzilla.maptools.org/show_bug.cgi?id=2192 1847 18482010-05-07 Frank Warmerdam <[email protected]> 1849 1850 * libtiff/tif_jpeg.c: Ensure that quality is always set in 1851 JPEGPreEncode(), not just when we want to output local tables. 1852 Otherwise the quality used during compression may not be right and 1853 might not match the tables in the tables tag. This bug only occurs 1854 when seeking between directories in the midst of writing blocks. 1855 http://trac.osgeo.org/gdal/ticket/3539 1856 18572010-05-06 Andrey Kiselev <[email protected]> 1858 1859 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html: 1860 Regenerated from the source. 1861 18622010-05-05 Olivier Paquet <[email protected]> 1863 1864 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which 1865 had stopped working. Also made it always print 6 floats instead of 1866 2*SamplesPerPixel. 1867 http://bugzilla.maptools.org/show_bug.cgi?id=2191 1868 http://bugzilla.maptools.org/show_bug.cgi?id=2186 1869 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the 1870 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats. 1871 18722010-05-05 Frank Warmerdam <[email protected]> 1873 1874 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking 1875 if the jpeg table was written. This is a fix for the last fix on 04-21. 1876 18772010-04-21 Frank Warmerdam <[email protected]> 1878 1879 * libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime 1880 JPEGSetupEncode() is called if the tables already seem to be 1881 established. This prevents spurious updates and rewriting of 1882 directories with jpegtables when doing updates to existing images. 1883 http://trac.osgeo.org/gdal/ticket/3539 1884 18852010-04-20 Olivier Paquet <[email protected]> 1886 1887 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1888 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH, 1889 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA. 1890 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2. 1891 http://bugzilla.maptools.org/show_bug.cgi?id=2139 1892 18932010-04-10 Bob Friesenhahn <[email protected]> 1894 1895 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for 1896 when the tag count value is zero. Error handling is still a 1897 regression since in 3.9.2, empty tags are skipped (with a warning) 1898 rather than returning a hard error and refusing to read the file. 1899 1900 * tools/ppm2tiff.c (main): While case for parsing comment line 1901 requires extra parenthesis to work as expected. Reported by 1902 Thomas Sinclair. 1903 19042010-04-02 Frank Warmerdam <[email protected]> 1905 1906 * libtiff/tif_read.c (primarily): Add support for 1907 CHUNKY_STRIP_READ_SUPPORT where large strips are 1908 read in chunks for applications using TIFFReadScanline(). 1909 This is intended to make it more practical work with very 1910 large compressed one-strip files. Feature is off by default. 1911 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro. 1912 http://trac.osgeo.org/gdal/ticket/3514 1913 19142010-03-31 Frank Warmerdam <[email protected]> 1915 1916 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing 1917 directories so previously placed directories will be migrated to 1918 the end of file if needed. 1919 19202010-03-30 Frank Warmerdam <[email protected]> 1921 1922 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64 1923 to support operating on strips/tiles of more than 256MB. 1924 http://trac.osgeo.org/gdal/ticket/3512 1925 19262010-03-10 Bob Friesenhahn <[email protected]> 1927 1928 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so 1929 that it is clearly a memory allocation error message, and also 1930 includes the size of the allocation request. 1931 19322010-02-22 Lee Howard <[email protected]> 1933 1934 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating 1935 the JPEG TIFF as is is not required in order to prevent it from 1936 being unused and filled with invalid data. (Leave it to be 1937 generated by later activity.) 1938 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1939 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip 1940 data rather than skipping them. This fixes the ability to view in 1941 Acrobat Reader, Evince, and Ghostscript. 1942 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1943 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR 1944 strips. 1945 http://bugzilla.maptools.org/show_bug.cgi?id=2029 1946 19472009-12-03 Frank Warmerdam <[email protected]> 1948 1949 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns. 1950 Made so that when working with downsampled images a stub function 1951 reporting an error is used for tif_decoderow. We cannot meaningfully 1952 support reading scanlines in this situation. (#1936) 1953 1954 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after 1955 resetting of the upsampling values (gdal:#3259). 1956 http://bugzilla.maptools.org/show_bug.cgi?id=1936 1957 19582009-11-30 Frank Warmerdam <[email protected]> 1959 1960 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c, 1961 tools/ras2tiff.c: Fix resource leaks on error. 1962 http://bugzilla.maptools.org/show_bug.cgi?id=2121 1963 1964 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling 1965 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead 1966 of as a custom(generic) field to avoid a potential reentrancy problem. 1967 http://bugzilla.maptools.org/show_bug.cgi?id=2125 1968 1969 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h, 1970 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit 1971 const, and display_sRGB static and const. 1972 http://bugzilla.maptools.org/show_bug.cgi?id=2124 1973 19742009-11-04 Bob Friesenhahn <[email protected]> 1975 1976 * libtiff 4.0.0alpha5 released. 1977 19782009-11-03 Bob Friesenhahn <[email protected]> 1979 1980 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This 1981 version has undergone substantial testing with arbitrary sample 1982 bit depths. Also eliminates GCC compilation warnings. 1983 19842009-11-02 Bob Friesenhahn <[email protected]> 1985 1986 * port/libport.h: Add extern declarations for getopt standard 1987 globals. 1988 19892009-10-31 Bob Friesenhahn <[email protected]> 1990 1991 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings 1992 noticed in 64-bit build of libtiff with Visual Studio 2005. 1993 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in 1994 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067 1995 1996 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important 1997 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 - 1998 Visual Studio 2005 64-bit warning in tif_pixarlog.c", 1999 http://bugzilla.maptools.org/show_bug.cgi?id=2068 2000 20012009-10-29 Bob Friesenhahn <[email protected]> 2002 2003 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned 2004 pointer" warnings. 2005 20062009-10-28 Bob Friesenhahn <[email protected]> 2007 2008 * html/tools.html: Add manual page links, and a summary 2009 description of tiffcrop. 2010 20112009-10-07 Bob Friesenhahn <[email protected]> 2012 2013 * configure.ac: x86_64 should use the same fill order as i386. 2014 20152009-09-24 Bob Friesenhahn <[email protected]> 2016 2017 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard 2018 Nolde. Major updates to add significant functionality for reading 2019 and writing tile based images with bit depths not a multiple of 8 2020 which cannot be handled by tiffcp. 2021 20222009-09-03 Bob Friesenhahn <[email protected]> 2023 2024 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs 2025 do_fancy_upsampling=FALSE in order to read raw data. Resolves 2026 "Bug 2090 - OJPEG crash with libjpeg v7". 2027 http://bugzilla.maptools.org/show_bug.cgi?id=2090 2028 20292009-09-03 Frank Warmerdam <[email protected]> 2030 2031 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA 2032 interface when stoponerror is set. 2033 http://bugzilla.maptools.org/show_bug.cgi?id=2071 2034 20352009-08-30 Bob Friesenhahn <[email protected]> 2036 2037 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to 2038 fix build with gcc when using the "-Wformat 2039 -Werror=format-security" flags. 2040 20412009-08-29 Bob Friesenhahn <[email protected]> 2042 2043 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2044 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional 2045 utilities tests. 2046 20472009-08-28 Bob Friesenhahn <[email protected]> 2048 2049 * tools/tiffinfo.c: tiffinfo should return error status to the 2050 caller. Register a private error callback to accomplish that. 2051 2052 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and 2053 PNM formats so that we will be able to test more of the tools. 2054 While adding these test images I notice that bmp2tiff and gif2tiff 2055 only support ancient versions of their respective formats. 2056 20572009-08-27 Bob Friesenhahn <[email protected]> 2058 2059 * libtiff 4.0.0alpha4 released. 2060 2061 * HOWTO-RELEASE: Improved release instructions. 2062 20632009-08-24 Bob Friesenhahn <[email protected]> 2064 2065 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied 2066 fixes for "Bug 2023 - nroff errors in manual pages". 2067 http://bugzilla.maptools.org/show_bug.cgi?id=2023 2068 2069 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 - 2070 CVE-2009-2347 libtiff: integer overflows in various inter-color 2071 space conversion tools". 2072 http://bugzilla.maptools.org/show_bug.cgi?id=2079 2073 2074 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay 2075 Berkenbilt for "Bug 2024 - possible null pointer dereference with 2076 one-line fix". 2077 http://bugzilla.maptools.org/show_bug.cgi?id=2024 2078 2079 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch 2080 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c: 2081 segfault after setting tdir_tag = IGNORE". 2082 http://bugzilla.maptools.org/show_bug.cgi?id=1895 2083 20842009-08-23 Bob Friesenhahn <[email protected]> 2085 2086 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing 2087 tiffcrop.sh into a collection of many specific tests. Re-wrote 2088 all of the existing tests to be based on some simple shell 2089 functions. Make distcheck works again. 2090 2091 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and 2092 added 'memcheck' and 'ptrcheck' targets to make it easy to run the 2093 tests under valgrind. 2094 20952009-08-21 Bob Friesenhahn <[email protected]> 2096 2097 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH 2098 build. 2099 2100 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not 2101 actually activated since it needed to be enabled in this 2102 Makefile.am. Also activated parallel-tests mode since it offers 2103 useful features such as per-test .log files and a summary test 2104 report .log file. 2105 21062009-08-20 Bob Friesenhahn <[email protected]> 2107 2108 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11, 2109 libtool 2.2.6. Enabled support for silent build rules 2110 (--enable-silent-rules or 'make V=0') and colorized tests. 2111 2112 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release. 2113 21142009-06-30 Frank Warmerdam <[email protected]> 2115 2116 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression. 2117 2118 * tools/tiffcp.c: add -c sgilog support. 2119 2120 * libtiff/tif_luv.c: correct return codes from encoderow to be 2121 1 on success instead of zero. 2122 http://bugzilla.maptools.org/show_bug.cgi?id=2069 2123 2124 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from 2125 #1085 for a better underflow fix that errors properly. 2126 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2127 http://bugzilla.maptools.org/show_bug.cgi?id=1985 2128 21292009-06-26 Frank Warmerdam <[email protected]> 2130 2131 * libtiff/tif_strip.c: Remove an inappropriate assertion that often 2132 fails on oddly sized 12bit jpeg compressed ycbcr images. 2133 21342009-06-22 Frank Warmerdam <[email protected]> 2135 2136 * libtiff/tif_lzw.c: Fix buffer underflow bug. 2137 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2138 21392009-06-21 Frank Warmerdam <[email protected]> 2140 2141 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support 2142 for dual mode 8/12 bit jpeg support. 2143 21442009-06-03 Frank Warmerdam <[email protected]> 2145 2146 * libtiff/tif_write.c: do not override the planar configuration to be 2147 contig for one sample files if planar configuration is already set. 2148 http://bugzilla.maptools.org/show_bug.cgi?id=2057 2149 21502009-06-02 Frank Warmerdam <[email protected]> 2151 2152 * libtiff/libtiff.def: Add TIFFUnsetField. 2153 21542009-05-03 Frank Warmerdam <[email protected]> 2155 2156 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various 2157 error reports to use "%s" as format string. 2158 http://trac.osgeo.org/gdal/ticket/2976 2159 21602009-03-12 Frank Warmerdam <[email protected]> 2161 2162 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining 2163 for some codecs (#2020). 2164 21652009-02-12 Frank Warmerdam <[email protected]> 2166 2167 * libtiff/tif_luv.c: Fix handling of tiled logluv images. 2168 http://bugzilla.maptools.org/show_bug.cgi?id=2005 2169 21702009-02-09 Frank Warmerdam <[email protected]> 2171 2172 * libtiff/tif_dirread.c: Improve allocation safety when allocated 2173 buffer for large tags. (#1998) Related to (#1993) 2174 21752009-02-06 Frank Warmerdam <[email protected]> 2176 2177 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the 2178 test suite should pass. 2179 21802009-02-05 Frank Warmerdam <[email protected]> 2181 2182 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size, 2183 but at the 2GB boundary to avoid overflow on 32bit systems. 2184 http://bugzilla.maptools.org/show_bug.cgi?id=1993 2185 2186 * libtiff/tif_dirread.c: Remove some assertions that blow due to 2187 corrupt files rather than in response to library internal 2188 inconsistencies. 2189 http://bugzilla.maptools.org/show_bug.cgi?id=1995 2190 http://bugzilla.maptools.org/show_bug.cgi?id=1991 2191 2192 * libtiff/tif_dirread.c: Fixed testing for failed result from 2193 TIFFReadDirectoryFindFieldInfo(). 2194 http://bugzilla.maptools.org/show_bug.cgi?id=1992 2195 21962009-01-23 Frank Warmerdam <[email protected]> 2197 2198 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors. 2199 http://bugzilla.maptools.org/show_bug.cgi?id=1911 2200 2201 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset. 2202 2203 http://bugzilla.maptools.org/show_bug.cgi?id=1924 2204 2205 * tools/tiffcrop.c: initialize xres/yres values. 2206 2207 * test/*.sh - default ${srcdir} to local directory. 2208 2209 * test/common.sh - start verbose mode after common settings. 2210 2211 * libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to 2212 avoid type mismatches on different platforms. 2213 http://bugzilla.maptools.org/show_bug.cgi?id=1889 2214 22152009-01-22 Frank Warmerdam <[email protected]> 2216 2217 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c, 2218 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues. 2219 2220 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT 2221 defined, primarily to reduce prototype warnings on windows. 2222 2223 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings 2224 about unused parameters, and uninitialized variables. 2225 22262009-01-21 Bob Friesenhahn <[email protected]> 2227 2228 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in 2229 order to trace full execution detail while executing the test suite. 2230 22312009-01-20 Frank Warmerdam <[email protected]> 2232 2233 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv. 2234 22352009-01-20 Bob Friesenhahn <[email protected]> 2236 2237 * test/Makefile.am (CLEANFILES): Make sure that test output files 2238 are removed by 'make clean' 2239 2240 * Update autotools for 4.0.0 beta3 2241 2242 * 4.0.0 beta3 produced. 2243 22442009-01-12 Bob Friesenhahn <[email protected]> 2245 2246 * test/tiffcrop.sh: New test script for tiffcrop from Richard 2247 Nolde. 2248 2249 * tools/tiff2ps.c: Remove spurious message to stderr. 2250 22512009-01-11 Bob Friesenhahn <[email protected]> 2252 2253 * tools/tiff2ps.c: Incorporated significant functionality update 2254 from Richard Nolde. In particular, support for rotating the image 2255 by 90, 180, 270, and 'auto' has been added. 2256 2257 * man/tiffcrop.1: Incorporated documentation updates from Richard 2258 Nolde. 2259 2260 * tools/tiffcrop.c: Incorporated significant functionality update 2261 from Richard Nolde. 2262 22632008-12-31 Bob Friesenhahn <[email protected]> 2264 2265 * libtiff/tiffio.h: GCC will now validate format specifications 2266 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and 2267 TIFFWarningExt() in order to reveal bugs. 2268 2269 * Many fixes throughout to work better as a 64-bit build. 2270 22712008-12-30 Bob Friesenhahn <[email protected]> 2272 2273 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length 2274 tags now require 64-bit parameter rather than 32-bit. 2275 2276 * libtiff/tif_dirread.c: Fixed issues with unaligned access to 2277 64-bit values. 2278 2279 * tools/thumbnail.c: Eliminate crash noticed while running test 2280 suite. 2281 22822008-12-29 Bob Friesenhahn <[email protected]> 2283 2284 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer): 2285 Initialize stack variables to avoid compiler warning. 2286 2287 * tools/tiffinfoce.c (main): Use toff_t for offset type when 2288 retrieving offset of EXIF IFD. 2289 2290 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the 2291 TIFFClientOpen() callback and other external function definitions. 2292 2293 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit 2294 type now. Fixes crash when dumping files containing an EXIF IFD. 2295 2296 * m4/libtool.m4: Update to libtool 2.2.6. 2297 22982008-12-21 Frank Warmerdam <[email protected]> 2299 2300 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function. 2301 2302 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full 2303 strip for the last partial strip in a jpeg compressed file. 2304 http://bugzilla.maptools.org/show_bug.cgi?id=1981 2305 23062008-10-29 Frank Warmerdam <[email protected]> 2307 2308 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when 2309 we take the shortcut to only update the strip/tile offsets in place. 2310 http://trac.osgeo.org/gdal/ticket/2621 2311 23122008-10-21 Andrey Kiselev <[email protected]> 2313 2314 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with 2315 the older versions retained). 2316 23172008-10-09 Frank Warmerdam <[email protected]> 2318 2319 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using 2320 IPP enabled version of libjpeg from Intel. 2321 http://bugzilla.maptools.org/show_bug.cgi?id=1951 2322 23232008-09-05 Andrey Kiselev <[email protected]> 2324 2325 * tools/tiffsplit.c: Use byte counts of proper size (uint64). 2326 Required for libtiff 4.0. 2327 2328 * tools/tiffsplit.c: Use dynamically allocated array instead of static 2329 when constructing output file names. 2330 23312008-09-03 Andrey Kiselev <[email protected]> 2332 2333 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when 2334 doing the filename/path construction. 2335 2336 * tools/tiff2pdf.c: More appropriate format string in 2337 t2p_write_pdf_string(); avoid signed/unsigned mismatch. 2338 2339 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug 2340 2341 http://bugzilla.maptools.org/show_bug.cgi?id=1929 2342 2343 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes 2344 CVE-2008-2327 security issue. 2345 23462008-09-01 Frank Warmerdam <[email protected]> 2347 2348 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function. 2349 2350 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD 2351 depending on whether the file is bigtiff or classic tiff. 2352 http://bugzilla.maptools.org/show_bug.cgi?id=1917 2353 23542008-08-12 Edward Lam <[email protected]> 2355 2356 * tools/tiffdump.c: When compiling for Microsoft Windows, apply 2357 consistent (__int64) casting when testing if _lseeki64 has 2358 successfully seeked as requested. This is necessary for large 2359 file support to work since off_t is only 32-bit. 2360 23612008-07-29 Frank Warmerdam <[email protected]> 2362 2363 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or 2364 the subsampling values not being 1, 2 or 4 (for jpeg compressed images) 2365 with control logic to return runtime errors (c/o Even Rouault) (#1927). 2366 23672008-06-17 Frank Warmerdam <[email protected]> 2368 2369 * tools/tiffcrop.c: Fix some portability problems. 2370 2371 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are 2372 used in tif_jpeg.c. 2373 2374 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags 2375 as TIFFOpen(). 2376 23772008-06-01 Frank Warmerdam <[email protected]> 2378 2379 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures 2380 like Sparc/Solaris. 2381 http://bugzilla.maptools.org/show_bug.cgi?id=1892 2382 23832008-05-27 Frank Warmerdam <[email protected]> 2384 2385 * libtiff.def: Add TIFFFindField 2386 http://bugzilla.maptools.org/show_bug.cgi?id=1891 2387 23882008-05-26 Frank Warmerdam <[email protected]> 2389 2390 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused. 2391 2392 * li2008-04-15 Andrey Kiselev <[email protected]> 2393 2394btiff/tif_win32.c: Replace custom Win32 memory api with generic 2395 POSIX one. No apparent value to use of GlobalAlloc() in the modern 2396 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885 2397 2398 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items 2399 in windows version (care of Edward Lam). 2400 24012008-05-24 Frank Warmerdam <[email protected]> 2402 2403 * tif_codec.c: Avoid NULL pointer dereferencing for exotic 2404 compression codec codes. 2405 2406 * tif_dirwrite.c: fix potential memory leak. 2407 2408 * tif_dirread.c: Fix unchecked malloc result. 2409 24102008-05-24 Bob Friesenhahn <[email protected]> 2411 2412 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh 2413 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh 2414 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh 2415 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh 2416 tiffdump.sh tiffinfo.sh}: Added more test scripts based on 2417 suggestions from Lee Howard posted to the tiff list on 13 Sep 2418 2007. 2419 24202008-05-23 Frank Warmerdam <[email protected]> 2421 2422 * libtiff/tif_fax3.c: Add an assert in an effort to detect a 2423 possible runtime problem reported by coverity. 2424 2425 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str. 2426 2427 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde. 2428 http://bugzilla.maptools.org/show_bug.cgi?id=1888 2429 2430 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak. 2431 2432 * tools/rgb2ycbcr.c: fix memory leak of raster buffer. 2433 2434 * tools/tiffcp.c: Simplify inknames code to avoid pointless test. 2435 Cleanup scanline allocation to avoid coverity warning. 2436 2437 * tools/thumbnail.c: Check for TIFFOpen() failure. 2438 24392008-05-18 Frank Warmerdam <[email protected]> 2440 2441 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT 2442 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear 2443 why this is needed. 2444 24452008-05-09 Bob Friesenhahn <[email protected]> 2446 2447 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like 2448 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4". 2449 24502008-04-15 Andrey Kiselev <[email protected]> 2451 2452 * test/: Test suite updated. Everything is passed now. 2453 2454 * libtiff/tif_dirinfo.c: Fixed description of the 2455 TIFFTAG_NUMBEROFINKS tag. 2456 24572008-04-14 Andrey Kiselev <[email protected]> 2458 2459 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}: 2460 Get rid of some of "dereferencing type-punned" warnings by converting 2461 tdir_offset field of TIFFDirEntry structure into union. 2462 24632008-04-10 Andrey Kiselev <[email protected]> 2464 2465 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}: 2466 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out 2467 from the public interface. Type of its 'count' parameter changed 2468 from uint32 to tmsize_t. 2469 2470 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields 2471 of the tiff structure have the size_t type instead of uint32. 2472 24732008-04-09 Andrey Kiselev <[email protected]> 2474 2475 * tools/tiffdump.c: Added support for MSVS 6.0. 2476 2477 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat() 2478 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating 2479 point values on MSVS 6.0 platform. 2480 24812008-03-14 Frank Warmerdam <[email protected]> 2482 2483 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in 2484 TIFFReadDirEntryArray() since they are interfering with seemingly 2485 legitimate files. http://trac.osgeo.org/gdal/ticket/2005 2486 24872008-02-09 Joris Van Damme <[email protected]> 2488 2489 * tif_dirread.c: Added handling for the case of number of values for 2490 PageNumber tag different from 2 (previously resulted in an assert 2491 indicating lack of handling and was forgotten about) 2492 24932008-02-01 Frank Warmerdam <[email protected]> 2494 2495 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on 2496 the actual jpeg data stream if the first strip/tile has zero size. 2497 This is the case when GDAL creates a new file with zero sizes, closes 2498 and reopens it. 2499 25002008-01-07 Frank Warmerdam <[email protected]> 2501 2502 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam). 2503 25042008-01-01 Frank Warmerdam <[email protected]> 2505 2506 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions. 2507 2508 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean 2509 targets. 2510 2511 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c 2512 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005 2513 (x64). 2514 2515 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag() 2516 and TIFFFieldWithName() now return TIFFField pointers instead of 2517 TIFFFieldInfo pointers. 2518 2519 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't 2520 exist. This makes it compile again on Windows 2521 2522 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c, 2523 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64. 2524 2525 * test/rewrite_tag.c: New test for TIFFRewriteField(). 2526 25272007-12-31 Frank Warmerdam <[email protected]> 2528 2529 * tif_dirwrite.c: Added TIFFRewriteField(). This new function 2530 rewrites one field "on disk" updating an existing directory 2531 entry. Lots of limitations still... 2532 2533 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of 2534 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that 2535 the strip offset/size values are dirty but nothing else about the 2536 directory is dirty. In flush handle "just stripmaps dirty" as a 2537 special case that just rewrites these values without otherwise 2538 modifying the directory on disk using TIFFRewriteField(). 2539 2540 We also modify logic so that in update mode the directory is not 2541 marked dirty on read, but only when something is changed. This 2542 means we need to keep track of updates to the stripmap stuff in 2543 TIFFAppendToStrip(). 2544 25452007-12-10 Frank Warmerdam <[email protected]> 2546 2547 * tif_jpeg.c: Improve ability to switch between encoding and decoding 2548 in the jpeg code (gdal bug #2033). 2549 25502007-11-23 Frank Warmerdam <[email protected]> 2551 2552 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c, 2553 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the 2554 rawcp/rawcc buffer are for writing and thus may require flushing. 2555 Necessary to distinguish whether they need to be written to disk when 2556 in mixed read/write mode and doing a mixture of writing followed by 2557 reading. http://trac.osgeo.org/gdal/ticket/1758 2558 25592007-11-23 Andrey Kiselev <[email protected]> 2560 2561 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches 2562 from Alexey Chupahin. 2563 25642007-11-02 Frank Warmerdam <[email protected]> 2565 2566 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for 2567 establishing if an existing tile can be rewritten to the same location 2568 by comparing the current size to all the other blocks in the same 2569 directory. This is dangerous in many situations and can easily 2570 corrupt a file. (observed in esoteric GDAL situation that's hard to 2571 document). This change involves leaving the stripbytecount[] values 2572 unaltered till TIFFAppendToStrip(). Now we only write a block back 2573 to the same location it used to be at if the new data is the same 2574 size or smaller - otherwise we move it to the end of file. 2575 2576 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile 2577 data when writing the directory just because we have BEENWRITING at 2578 some point in the past. This was causing odd junk to be written out 2579 in a tile of data when a single tile had an interleaving of reading 2580 and writing with reading last. (highlighted by gdal 2581 autotest/gcore/tif_write.py test 7. 2582 2583 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid 2584 modifying callers buffer. 2585 http://trac.osgeo.org/gdal/ticket/1965 2586 2587 * tif_predict.c/h: more fixes related to last item, keeping a 2588 distinct pfunc for encode and decode cases as these were getting 2589 mixed up sometimes. 2590 http://trac.osgeo.org/gdal/ticket/1948 2591 25922007-11-01 Frank Warmerdam <[email protected]> 2593 2594 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that 2595 predictor based encoding and decoding works in read-write update 2596 mode properly. 2597 http://trac.osgeo.org/gdal/ticket/1948 2598 25992007-10-24 Joris Van Damme <[email protected]> 2600 2601 * tif_dirread.c: Fixed problem with bogus file triggering 2602 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in 2603 ChopUpSingleUncompressedStrip 2604 26052007-10-22 Joris Van Damme <[email protected]> 2606 2607 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images 2608 at best, access violation at worst, when subsampled JPEG compressed imagery 2609 is decoded without the JPEG_COLORMODE feature 2610 26112007-10-11 Frank Warmerdam <[email protected]> 2612 2613 * html/index.html: Update "people responsible" section. 2614 26152007-10-05 Frank Warmerdam <[email protected]> 2616 2617 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases 2618 as reported on the mailing list. 2619 26202007-10-01 Joris Van Damme <[email protected]> 2621 2622 * changed some more incorrect %lud printf flags to %lu 2623 26242007-09-29 Joris Van Damme <[email protected]> 2625 2626 * tif_dirread.c: Strip chopping interfered badly with uncompressed 2627 subsampled images because it tried to divide subsampled rowblocks, 2628 leading to all sorts of errors throughout the library for these 2629 images. Fixed by making strip chopping divide in row counts that 2630 are a multiple of vertical subsampling value. 2631 26322007-09-28 Joris Van Damme <[email protected]> 2633 2634 * tif_dirread.c: Logical cast working around compiler warning 2635 2636 * tif_read.c: Correction of some error flags and parameter lists 2637 26382007-09-27 Joris Van Damme <[email protected]> 2639 2640 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust 2641 when dealing with large bitspersample values, shutting up purification 2642 tools that warn about truncation, though it remains incorrect and 2643 indicates a conceptual problem there. 2644 2645 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading 2646 of first IFD) to proper place because it badly interfered with memory 2647 mapping, resulting in mapping flag even with dummy mapping functions 2648 that returned 0 whilst at the same time the mapping tif_size wasn't 2649 set, thus resulting in continuous incorrect beyond-eof errors. 2650 26512007-09-24 Joris Van Damme <[email protected]> 2652 2653 * tif_dirinfo.c: Fixed (MSVC) compiler reports about 2654 inconsistent use of const in tiffFields and exifFields definition 2655 26562007-09-20 Frank Warmerdam <[email protected]> 2657 2658 * tif_dirwrite.c: Always write tile/strip offsets and sizes 2659 using LONG8 type when output format is BigTIFF. The 2660 TIFFWriteDirectoryTagLongLong8Array() function was restructured 2661 accordingly. 2662 2663 * tif_dirread.c: Improvements to error reporting text in 2664 TIFFFetchDirectory(). 2665 26662007-09-19 Bob Friesenhahn <[email protected]> 2667 2668 * test/images: Added a small collection of test images for use by 2669 test programs and scripts. 2670 * test/tiffinfo.sh: A trivial example test script. 2671 * test/common.sh: Added small script for setting the environment 2672 used by script-based tests. 2673 26742007-08-24 Frank Warmerdam <[email protected]> 2675 2676 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed 2677 zero when writing directory contents to preserve the ability to 2678 rewrite directories in place, even in the middle of a directory 2679 chain. 2680 2681 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field 2682 definitions that are missing. Existing definitions are silently 2683 ignored. 2684 2685 * tif_dirread.c: Add runtime error for fields for which no definition 2686 is found (in addition to an assert for developers) in 2687 TIFFFetchNormalTag(). Not sure if this is needed, but it seems 2688 prudent. 2689 26902007-08-10 Joris Van Damme <[email protected]> 2691 2692 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer 2693 from _TIFFRGBAImage structure to revert unwanted ABI change. 2694 26952007-08-10 Joris Van Damme <[email protected]> 2696 2697 * libtiff/tif_win32.c: use SetFilePointer instead of 2698 SetFilePointerEx, as per bug 2699 2700 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580 2701 27022007-07-19 Andrey Kiselev <[email protected]> 2703 2704 * libtiff/tif_stream.cxx: Put all callback functions declarations 2705 inside extern "C" block. 2706 2707 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c, 2708 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf() 2709 formatter instead of "%lld" with MSVC compiler. 2710 2711 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and 2712 _TIFFUInt64ToDouble() functions. 2713 27142007-07-18 Andrey Kiselev <[email protected]> 2715 2716 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit 2717 integer constants. 2718 2719 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h, 2720 remove tif_config.h/tiffconf.h during cleaning. As per bug 2721 2722 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573 2723 2724 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug 2725 2726 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577 2727 27282007-07-13 Andrey Kiselev <[email protected]> 2729 2730 * libtiff 4.0.0alpha released. 2731 27322007-07-12 Andrey Kiselev <[email protected]> 2733 2734 * tools/tiff2pdf.c: Added missed extern optind as per bug 2735 2736 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567 2737 2738 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c, 2739 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag 2740 extending scheme completed. 2741 27422007-07-11 Bob Friesenhahn <[email protected]> 2743 2744 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to 2745 use standard C++ library size types and attempt to detect overflow 2746 cases. 2747 27482007-07-08 Andrey Kiselev <[email protected]> 2749 2750 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h, 2751 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new 2752 tag extending scheme. Use the new scheme everywhere. 2753 2754 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c, 2755 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c, 2756 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}: 2757 TIFFFIeldInfo structure replaced with TIFFField structure. 2758 TIFFFieldInfo retained for the backward compatibility. 2759 27602007-07-05 Bob Friesenhahn <[email protected]> 2761 2762 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not 2763 defined. 2764 27652007-07-04 Andrey Kiselev <[email protected]> 2766 2767 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused 2768 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration 2769 removed. 2770 2771 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move 2772 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS, 2773 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory. 2774 These tags are not codec-specific and relate to image content, so 2775 process them as other normal tags. 2776 2777 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the 2778 public tiffio.h to private tif_dir.h. 2779 2780 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and 2781 outdated. 2782 27832007-07-03 Andrey Kiselev <[email protected]> 2784 2785 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c, 2786 tif_win3.c}: Obsoleted portability stuff removed. 2787 2788 * tools/tiff2ps.c: Added support 16-bit images as per bug 2789 2790 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566 2791 2792 Patch from William Bader. 2793 2794 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and 2795 significant upgrade of the whole utility as per bug 2796 2797 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560 2798 2799 Now we don't need tiffiop.h in tiff2pdf anymore and will open output 2800 PDF file using TIFFClientOpen() machinery as it is implemented 2801 by Leon Bottou. 2802 28032007-06-26 Bob Friesenhahn <[email protected]> 2804 2805 * configure.ac: Fix typo when substituting value for unsigned 8 bit type. 2806 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic. 2807 Added support for a TIFF_SSIZE_T in order to return memory sizes but still 2808 allow returning -1 for errors. 2809 * libtiff/tiffconf.vc.h: Add porting type defintions for WIN32. 2810 28112007-06-25 Bob Friesenhahn <[email protected]> 2812 2813 * port/strtoull.c: New porting function in case strtoull() is not 2814 available on the target system. 2815 * configure.ac: Add configure support for determining sized types 2816 in a portable way and performing necessary substitutions in 2817 tif_config.h and tiffconf.h. Updated tiff.h to use the new 2818 definitions. 2819 28202007-04-27 Andrey Kiselev <[email protected]> 2821 2822 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug 2823 2824 http://bugzilla.remotesensing.org/show_bug.cgi?id=154 2825 28262007-04-07 Andrey Kiselev <[email protected]> 2827 2828 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c, 2829 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c, 2830 tif_predict.c, tif_zip.c}: Finally fix bug 2831 2832 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274 2833 2834 by introducing _TIFFMergeFieldInfo() returning integer error status 2835 instead of void in case of problems with field merging (e.g., if the 2836 field with such a tag already registered). TIFFMergeFieldInfo() in 2837 public API remains void. Use _TIFFMergeFieldInfo() everywhere and 2838 check returned value. 2839 28402007-04-07 Frank Warmerdam <[email protected]> 2841 2842 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output 2843 blocks in TIFF_DownSample_Subsampled() (bug 1542). 2844 28452007-04-06 Frank Warmerdam <[email protected]> 2846 2847 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it 2848 will convert from decompressor to compressor or compress to decompress 2849 if required by the force arguments. This works around a problem in 2850 where the JPEGFixupTestSubsampling() may cause a decompressor to 2851 be setup on a directory when later a compressor is required with the 2852 force flag set. Occurs with the addtiffo program for instance. 2853 28542007-04-06 Andrey Kiselev <[email protected]> 2855 2856 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in 2857 functionality from Richard Nolde. As per bug 2858 2859 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525 2860 28612007-03-28 Frank Warmerdam <[email protected]> 2862 2863 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC. 2864 28652007-03-17 Joris Van Damme <[email protected]> 2866 2867 * start of BigTIFF upgrade - CVS HEAD unstable until further notice 2868 28692007-03-07 Joris Van Damme <[email protected]> 2870 2871 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading 2872 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling 2873 factor. This bug is mentioned in: 2874 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390 2875 http://www.asmail.be/msg0054766825.html 2876 28772007-03-07 Joris Van Damme <[email protected]> 2878 2879 * libtiff/tif_win32.c: made inclusion of windows.h unconditional 2880 2881 * libtiff/tif_win32.c: replaced preprocessor indication for consiously 2882 unused arguments by standard C indication for the same 2883 28842007-02-27 Andrey Kiselev <[email protected]> 2885 2886 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte 2887 counters in TIFFFetchData(). Should finally fix the issue 2888 2889 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2890 28912007-02-24 Andrey Kiselev <[email protected]> 2892 2893 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount. 2894 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350 2895 2896 * libtiff/tif_dirread.c: Added special function to handle 2897 SubjectDistance EXIF tag as per bug 2898 2899 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362 2900 2901 * tools/tiff2pdf.c: Do not assume inches when the resolution units 2902 do not specified. As per bug 2903 2904 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366 2905 2906 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if 2907 it was set as infinite. As per bug 2908 2909 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368 2910 2911 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed 2912 by Richard Nolde. As per bug 2913 2914 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383 2915 29162007-02-22 Andrey Kiselev <[email protected]> 2917 2918 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with 2919 ExtraSamples == 999 produced by Corel Draw. As per bug 2920 2921 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490 2922 2923 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters 2924 changed from tsize_t to uint32 to be able to work with data arrays 2925 larger than 2GB. Fixes bug 2926 2927 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2928 2929 Idea submitted by Matt Hancher. 2930 29312007-01-31 Andrey Kiselev <[email protected]> 2932 2933 * tools/tif2rgba.c: This utility does not work properly on big-endian 2934 architectures. It was fixed including the bug 2935 2936 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149 2937 29382007-01-15 Mateusz Loskot <[email protected]> 2939 2940 * Submitted libtiff port for Windows CE platform 2941 * libtiff/tif_config.wince.h: Added configuration header for WinCE. 2942 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE. 2943 * libtiff/tif_wince.c: Added WinCE-specific implementation of some 2944 functons from tif_win32.c. 2945 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c. 2946 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some 2947 standard header files for Windows CE build. 2948 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE. 2949 29502006-11-19 Frank Warmerdam <[email protected]> 2951 2952 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if 2953 we move a strip. 2954 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359 2955 29562006-10-13 Andrey Kiselev <[email protected]> 2957 2958 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported 2959 in Gentoo bug (): 2960 2961 http://bugs.gentoo.org/show_bug.cgi?id=142383 2962 2963 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable. 2964 Though it is still far from the state of being working and useful. 2965 29662006-10-12 Andrey Kiselev <[email protected]> 2967 2968 * libtiff/tif_fax3.c: Save the state of printdir codec dependent 2969 method. 2970 2971 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method 2972 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273 2973 2974 * libtiff/tif_win32.c: Fixed problem with offset value manipulation 2975 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322 2976 2977 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for 2978 vulnerabilities, reported in Gentoo bug (): 2979 2980 http://bugs.gentoo.org/show_bug.cgi?id=142383 2981 29822006-09-28 Andrey Kiselev <[email protected]> 2983 2984 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple 2985 vulnerabilities, as per Gentoo bug (): 2986 2987 http://bugs.gentoo.org/show_bug.cgi?id=142383 2988 29892006-09-27 Frank Warmerdam <[email protected]> 2990 2991 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing 2992 encoding and decoding on the same read-write TIFF handle. The LZW 2993 code can now maintain encode and decode state at the same time. The 2994 ZIP code will switch back and forth as needed. 2995 http://bugzilla.remotesensing.org/show_bug.cgi?id=757 2996 29972006-09-20 Frank Warmerdam <[email protected]> 2998 2999 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and 3000 tif_config.vc.h for easier identification by folks using an IDE. 3001 30022006-07-25 Frank Warmerdam <[email protected]> 3003 3004 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron 3005 30062006-07-19 Frank Warmerdam <[email protected]> 3007 3008 * tif_dirwrite.c: take care not to flush out buffer of strip/tile 3009 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates 3010 to bug report by Peng Gao with black strip at bottom of images. 3011 30122006-07-12 Frank Warmerdam <[email protected]> 3013 3014 * tif_dirwrite.c: make sure to use uint32 for wordcount in 3015 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields. 3016 It already seems to have been done for other field types. Needed 3017 for "tiffset" on files with geotiff ascii text. 3018 30192006-07-04 Bob Friesenhahn <[email protected]> 3020 3021 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c} 3022 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and 3023 its use does not appear to be required, so use it only when it is 3024 available. 3025 30262006-06-24 Andrey Kiselev <[email protected]> 3027 3028 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961). 3029 3030 * libtiff/tif_dirread.c: Move IFD fetching code in the separate 3031 function TIFFFetchDirectory() avoiding code duplication in 3032 TIFFReadDirectory() and TIFFReadCustomDirectory(). 3033 30342006-06-19 Frank Warmerdam <[email protected]> 3035 3036 * tools/tiff2pdf.c: Fix handling of -q values. 3037 http://bugzilla.remotesensing.org/show_bug.cgi?id=587 3038 30392006-06-17 Frank Warmerdam <[email protected]> 3040 3041 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled 3042 files. Modified TIFFReadDirectory() to not invoke 3043 EstimateStripByteCounts() for case where entry 0 and 1 are unequal 3044 but one of them is zero. 3045 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204 3046 30472006-06-08 Andrey Kiselev <[email protected]> 3048 3049 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping 3050 checking code in the separate function TIFFCheckDirOffset(). 3051 3052 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function. 3053 3054 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug 3055 3056 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191 3057 3058 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug 3059 3060 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194 3061 3062 * tools/tiff2pdf.c: Fixed buffer overflow condition in 3063 t2p_write_pdf_string() as per bug 3064 3065 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196 3066 30672006-06-07 Andrey Kiselev <[email protected]> 3068 3069 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added 3070 support for JBIG compression scheme (34661 code) contributed by Lee 3071 Howard. As per bug 3072 3073 http://bugzilla.remotesensing.org/show_bug.cgi?id=896 3074 3075 * configure, configure.ac: OJPEG support enabled by default. 3076 3077 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch. 3078 30792006-06-03 Bob Friesenhahn <[email protected]> 3080 3081 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in 3082 TIFFPrintDirectory(). Joris Van Damme authored the fix. 3083 30842006-04-21 Andrey Kiselev <[email protected]> 3085 3086 * tools/tiff2pdf.c: Unified line ending characters (always use '\n') 3087 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163 3088 3089 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am, 3090 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}: 3091 Added support for OpenVMS by Alexey Chupahin, [email protected]. 3092 30932006-04-20 Andrey Kiselev <[email protected]> 3094 3095 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}: 3096 Properly set the binary mode for stdin stream as per bug 3097 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141 3098 3099 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1, 3100 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1, 3101 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1, 3102 tiffset.1}: Improvements in page formatting as per bug 3103 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140 3104 3105 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed 3106 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139 3107 31082006-04-18 Frank Warmerdam <[email protected]> 3109 3110 * nmake.opt: use /EHsc for VS2005 compatibility. Also define 3111 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005. 3112 31132006-04-12 Joris Van Damme <[email protected]> 3114 3115 * libtiff/tif_getimage.c: Added support for planarconfig separate 3116 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1]) 3117 31182006-04-11 Joris Van Damme <[email protected]> 3119 3120 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines 3121 - Conversion of unassociated alpha to associated alpha now done with 3122 more performant LUT, and calculation more correct 3123 - Conversion of 16bit data to 8bit data now done with 3124 more performant LUT, and calculation more correct 3125 - Bugfix of handling of 16bit RGB with unassociated alpha 3126 31272006-04-11 Joris Van Damme <[email protected]> 3128 3129 * libtiff/tif_getimage.c: 3130 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated 3131 buffer for alpha strile and filled it, only to never read it back. 3132 Removed allocation and fill. 3133 - Minor rename of vars in gtTileSeparate and gtStripSeparate 3134 anticipating planned functionality extension 3135 31362006-04-08 Joris Van Damme <[email protected]> 3137 3138 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase 3139 and pickTileSeparateCase to PickSeparateCase as both work on strips as 3140 well 3141 3142 * libtiff/tif_getimage.c: moved img->get selection from 3143 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create 3144 logical hook for planned functionality extension 3145 31462006-04-08 Joris Van Damme <[email protected]> 3147 3148 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence 3149 of inappropriate use of jpeg_abort instead of jpeg_destroy 3150 31512006-04-07 Joris Van Damme <[email protected]> 3152 3153 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in 3154 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour 3155 on subsampled images - this ought to get sorted when we feel brave 3156 enough to replace TIFFScanlineSize alltogether 3157 3158 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip 3159 31602006-04-04 Joris Van Damme <[email protected]> 3161 3162 * libtiff/tiffio.h: added new type tstrile_t 3163 3164 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips 3165 to new tstrile_t, types of td_stripoffset and td_stripbytecount to 3166 toff_t* 3167 3168 * libtiff/tif_ojpeg.c: totally new implementation 3169 3170 * libtiff/tif_dirread.c: added several hacks to suit new support of 3171 OJPEG 3172 3173 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling 3174 of OJPEG images in favor of tif_getimage.c native handling of 3175 YCbCr and desubsampling 3176 31772006-03-29 Frank Warmerdam <[email protected]> 3178 3179 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric 3180 interpretation causes the "upsampled" flag to be recomputed. Fixes 3181 peculiar bug where photometric flag had to be set before jpegcolormode 3182 flag. 3183 31842006-03-25 Joris Van Damme <[email protected]> 3185 3186 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw 3187 3188 * libtiff/tif_strip.c: temporarilly added two new versions of 3189 TIFFScanlineSize 3190 - TIFFNewScanlineSize: proposed new version, after all related 3191 issues and side-effects are sorted out 3192 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change 3193 This needs further sorting out. 3194 31952006-03-25 Joris Van Damme <[email protected]> 3196 3197 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size 3198 of last truncated strip data to TIFFWriteEncodedStrip 3199 32002006-03-25 Joris Van Damme <[email protected]> 3201 3202 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw 3203 32042006-03-25 Joris Van Damme <[email protected]> 3205 3206 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile 3207 3208 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile 3209 3210 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to 3211 prepare the path for new tif_ojpeg.c 3212 32132006-03-23 Andrey Kiselev <[email protected]> 3214 3215 * libtiff 3.8.2 released. 3216 3217 * tools/Makefile.am: Use runtime paths linker flags when rpath 3218 option enabled. 3219 32202006-03-21 Andrey Kiselev <[email protected]> 3221 3222 * libtiff/libtiff.def: Added missed exports as per bug 3223 http://bugzilla.remotesensing.org/attachment.cgi?id=337 3224 3225 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc, 3226 tools/Makefile.vc: Makefiles improvements as per bug 3227 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128 3228 3229 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h}, 3230 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions 3231 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127 3232 3233 * libtiff/tif_strip.c: Take subsampling in account when calculating 3234 TIFFScanlineSize(). 3235 3236 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length. 3237 32382006-03-17 Andrey Kiselev <[email protected]> 3239 3240 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug 3241 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125 3242 3243 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug 3244 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124 3245 32462006-03-16 Andrey Kiselev <[email protected]> 3247 3248 * libtiff/tiffiop.h: Added decalration for 3249 _TIFFSetDefaultCompressionState(). 3250 3251 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c, 3252 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all 3253 codec cleanup methods. As per bug 3254 3255 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120 3256 32572006-03-15 Andrey Kiselev <[email protected]> 3258 3259 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As 3260 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119 3261 3262 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength. 3263 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110 3264 3265 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro 3266 removed; move here the STRIP_SIZE_DEFAULT macro definition. 3267 3268 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT 3269 macro definition. 3270 3271 * libtiff/tif_dir.c: Use double type instead of dblparam_t. 3272 32732006-03-14 Andrey Kiselev <[email protected]> 3274 3275 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence 3276 in TIFFReadDirectory, because it is always set at the start of 3277 function and we allow TIFFs without that tag set. 3278 32792005-03-13 Andrey Kiselev <[email protected]> 3280 3281 * libtiff 3.8.1 released. 3282 32832006-03-07 Andrey Kiselev <[email protected]> 3284 3285 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray() 3286 function as per bug 3287 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3288 3289 * libtiff/tif_dirread.c: More wise check for integer overflow 3290 condition as per bug 3291 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3292 3293 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}: 3294 Properly restore setfield/getfield methods in cleanup functions. As 3295 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3296 32972006-03-03 Andrey Kiselev <[email protected]> 3298 3299 * libtiff/{tif_predict.c, tif_predict.h}: Added new function 3300 TIFFPredictorCleanup() to restore parent decode/encode/field methods. 3301 3302 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use 3303 TIFFPredictorCleanup() in codec cleanup methods. As per bug 3304 3305 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3306 3307 * libtiff/tif_dirread.c: Fixed integer overflow condition in 3308 TIFFFetchData() function. As per bug 3309 3310 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3311 33122006-03-01 Andrey Kiselev <[email protected]> 3313 3314 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the 3315 TIFFSetField() method, not directly. As per bug 3316 3317 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043 3318 3319 * tools/ppm2tiff.c: Added support for PBM files as per bug 3320 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044 3321 33222006-02-27 Andrey Kiselev <[email protected]> 3323 3324 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline() 3325 to avoid crash as per bug 3326 3327 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081. 3328 33292006-02-26 Andrey Kiselev <[email protected]> 3330 3331 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and 3332 t2p_sample_rgba_to_rgb() was used in place of each other, that was 3333 resulted in problems with RGBA images with associated alpha. 3334 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097 3335 33362006-02-23 Andrey Kiselev <[email protected]> 3337 3338 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per 3339 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3340 3341 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER, 3342 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE 3343 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3344 3345 * tools/tiff2ps.c: Properly scale all the pages when converting 3346 multipage TIFF with /width/height/center options set. As per bug 3347 3348 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080 3349 33502006-02-15 Andrey Kiselev <[email protected]> 3351 3352 * tools/tiff2pdf.c: Do not create output file until all option checks 3353 will be done. As per bug 3354 3355 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072 3356 3357 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the 3358 list of input files as per bug: 3359 3360 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077 3361 33622006-02-09 Andrey Kiselev <[email protected]> 3363 3364 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per 3365 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063. 3366 3367 * tools/tiffgt.c: Avoid crashing in case of image unsupported by 3368 TIFFRGBAImage interface. 3369 3370 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per 3371 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065. 3372 33732006-02-07 Frank Warmerdam <[email protected]> 3374 3375 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG 3376 compressed TIFF files, per submission from Dan Cobra. 3377 33782006-02-07 Andrey Kiselev <[email protected]> 3379 3380 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly 3381 cast values to avoid warnings. As per bug 3382 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3383 3384 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when 3385 appropriate. As per bug 3386 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3387 3388 * libtiff/tif_aux.c: Fixed type of temporary variable in 3389 _TIFFCheckMalloc() as per bug 3390 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3391 33922006-02-06 Andrey Kiselev <[email protected]> 3393 3394 * libtiff/tif_aux.c: Return static array when fetching default 3395 YCbCrCoefficients (another problem, reported a the 3396 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry). 3397 33982006-02-03 Andrey Kiselev <[email protected]> 3399 3400 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints, 3401 YCbCrSubsampling and DotRange tags as per bugs 3402 3403 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 3404 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034 3405 3406 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of 3407 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug 3408 3409 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026. 3410 34112006-01-23 Andrey Kiselev <[email protected]> 3412 3413 * libtool related stuff updated from the 2.1a branch. 3414 34152006-01-11 Frank Warmerdam <[email protected]> 3416 3417 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff, 3418 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works 3419 properly as per bug: 3420 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025 3421 34222006-01-09 Bob Friesenhahn <[email protected]> 3423 3424 * configure.ac: Fix with_default_strip_size comparison as reported 3425 by Norihiko Murase. 3426 34272006-01-08 Bob Friesenhahn <[email protected]> 3428 3429 * test/Makefile.am (LIBTIFF): Due to linking against libtiff 3430 incorrectly, tests were not actually testing the uninstalled 3431 libtiff. Now they are. 3432 34332006-01-04 Andrey Kiselev <[email protected]> 3434 3435 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE, 3436 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount 3437 should be uint32 value. 3438 34392006-01-02 Bob Friesenhahn <[email protected]> 3440 3441 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can 3442 be used if build directory is not the same as source directory. 3443 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented 3444 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET, 3445 and re-sorted tag names in alphabetical order. 3446 34472005-12-29 Andrey Kiselev <[email protected]> 3448 3449 * libtiff 3.8.0 released. 3450 34512005-12-28 Bob Friesenhahn <[email protected]> 3452 3453 * tools/bmp2tiff.c (main): Fixed warning regarding returning 3454 inconsistent types from a condition. 3455 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf 3456 format. 3457 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs. 3458 34592005-12-28 Joris Van Damme <[email protected]> 3460 3461 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML 3462 34632005-12-27 Andrey Kiselev <[email protected]> 3464 3465 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including 3466 windows.h, to reduce the compile time. 3467 34682005-12-26 Bob Friesenhahn <[email protected]> 3469 3470 * libtiff/tif_jpeg.c: Improve compilation under MinGW. 3471 34722005-12-26 Andrey Kiselev <[email protected]> 3473 3474 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}: 3475 tiffFieldInfo and exifFieldInfo arrays definitions moved back to 3476 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo() 3477 private functions to retrieve FieldInfo arrays. 3478 34792005-12-24 Bob Friesenhahn <[email protected]> 3480 3481 * html/build.html: Added some additional instructions for when 3482 building using MSVC under Windows. Also fixed two HTML syntax 3483 errors and used HTML Tidy to tidy up the HTML syntax and 3484 formatting. 3485 34862005-12-24 Andrey Kiselev <[email protected]> 3487 3488 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c, 3489 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and 3490 StoNits tags custom. 3491 34922005-12-23 Andrey Kiselev <[email protected]> 3493 3494 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make 3495 WhitePoint tag custom. 3496 3497 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added. 3498 34992005-12-23 Joris Van Damme <[email protected]> 3500 3501 * libtiff/tiffio.h: fixed typo that potentially resulted in 3502 redefininition of USE_WIN32_FILEIO 3503 3504 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning 3505 calls in core LibTiff. 3506 35072005-12-21 Andrey Kiselev <[email protected]> 3508 3509 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC, 3510 Photoshop and ICCProfile tags custom. 3511 35122005-12-21 Joris Van Damme <[email protected]> 3513 3514 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling 3515 newer code to get context indicator in error handler and still 3516 remain compatible with older code: Done TIFFError calls everywhere 3517 except in tools 3518 35192005-12-20 Andrey Kiselev <[email protected]> 3520 3521 * tools/tiffcp.c: Added many error reporting messages; fixed integer 3522 overflow as per bug 3523 3524 http://bugzilla.remotesensing.org/show_bug.cgi?id=789 3525 35262005-12-16 Frank Warmerdam <[email protected]> 3527 3528 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled 3529 YCbCr images in jpeg compressed TIFF files. 3530 35312005-12-14 Andrey Kiselev <[email protected]> 3532 3533 * tools/tiffcp.c: Return non-zero status when reading fails (again). 3534 35352005-12-13 Andrey Kiselev <[email protected]> 3536 3537 * tools/tiffcp.c: Return non-zero status when reading fails. 3538 35392005-12-12 Andrey Kiselev <[email protected]> 3540 3541 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags. 3542 35432005-12-09 Andrey Kiselev <[email protected]> 3544 3545 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag 3546 custom. 3547 3548 * tools/tiffinfo.c: Print EXIF directory contents if exist. 3549 3550 * libtiff/tiff.h: Few EXIF tag numbers added. 3551 3552 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c, 3553 tiffio.h}: Preliminary support to read custom directories. New 3554 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory(). 3555 35562005-12-07 Andrey Kiselev <[email protected]> 3557 3558 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}: 3559 More work to implement custom directory read support. 3560 3561 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h, 3562 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite 3563 tags custom. 3564 35652005-12-05 Andrey Kiselev <[email protected]> 3566 3567 * libtiff/tif_dirread.c: One more workaround for broken 3568 StripByteCounts tag. Handle the case when StripByteCounts array filled 3569 with completely wrong values. 3570 35712005-11-30 Andrey Kiselev <[email protected]> 3572 3573 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure 3574 in the TIFFOpenW() function as per bug 3575 3576 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003 3577 3578 * libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind() 3579 functions as per bug 3580 3581 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008 3582 35832005-11-20 Frank Warmerdam <[email protected]> 3584 3585 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support 3586 for MS MDI format. 3587 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002 3588 3589 * .cvsignore: many files added, and a few update according 3590 to suggestion of Brad HArds on tiff mailing list. 3591 35922005-11-03 Frank Warmerdam <[email protected]> 3593 3594 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory 3595 public. 3596 35972005-10-31 Andrey Kiselev <[email protected]> 3598 3599 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays 3600 as per bug 3601 3602 http://bugzilla.remotesensing.org/show_bug.cgi?id=943 3603 3604 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter 3605 as per bug 3606 3607 http://bugzilla.remotesensing.org/show_bug.cgi?id=944 3608 3609 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization 3610 problem as per bug 3611 3612 http://bugzilla.remotesensing.org/show_bug.cgi?id=946 3613 3614 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug 3615 3616 http://bugzilla.remotesensing.org/show_bug.cgi?id=965 3617 3618 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and 3619 ResolutionUnit tags modifiable during write process. As per bug 3620 3621 http://bugzilla.remotesensing.org/show_bug.cgi?id=977 3622 3623 * tools/tiffsplit.c: Copy fax related fields over splitted parts 3624 as per bug 3625 3626 http://bugzilla.remotesensing.org/show_bug.cgi?id=983 3627 36282005-10-21 Frank Warmerdam <[email protected]> 3629 3630 * tif_dirread.c: Don't try and split single strips into "0" strips 3631 in ChopUpSingleUncompressedStrip. This happens in some degenerate 3632 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff) 3633 36342005-10-20 Joris Van Damme <[email protected]> 3635 3636 * tif_fax3.c: changed 'at scanline ...' style warning/errors 3637 with incorrect use of tif_row, to 'at line ... of 3638 strip/tile ...' style 3639 36402005-10-15 Frank Warmerdam <[email protected]> 3641 3642 * tif_write.c: fixed setting of planarconfig as per bug report 3643 on the mailing list from Joris. 3644 36452005-10-07 Andrey Kiselev <[email protected]> 3646 3647 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h, 3648 tif_dirread.c}: Make the default strip size configurable via the 3649 --with-default-strip-size and STRIP_SIZE_DEFAULT options. 3650 36512005-09-30 Bob Friesenhahn <[email protected]> 3652 3653 * html/support.html: Fixed link to documentation on Greg Ward's 3654 LogLuv TIFF format. 3655 36562005-09-28 Andrey Kiselev <[email protected]> 3657 3658 * tools/tiffdump.c: Fixed crash when reading malformed tags. 3659 36602005-09-20 Andrey Kiselev <[email protected]> 3661 3662 * tools/tiff2pdf.c: Added missed 'break' statement as per bug 3663 http://bugzilla.remotesensing.org/show_bug.cgi?id=932 3664 36652005-09-12 Andrey Kiselev <[email protected]> 3666 3667 * libtiff 3.7.4 released. 3668 3669 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch 3670 from Patrick Welche (all scripts moved in the 'config' and 'm4' 3671 directories). 3672 36732005-09-12 Frank Warmerdam <[email protected]> 3674 3675 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris. 3676 36772005-09-05 Frank Warmerdam <[email protected]> 3678 3679 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV 3680 also set it to NULL to avoid double free when re-setting custom 3681 string fields as per: 3682 3683 http://bugzilla.remotesensing.org/show_bug.cgi?id=922 3684 36852005-08-12 Frank Warmerdam <[email protected]> 3686 3687 * libtiff/tif_print.c: avoid signed/unsigned warning. 3688 3689 * libtiff/tif_dirread.c: removed unused variable. 3690 36912005-07-30 Frank Warmerdam <[email protected]> 3692 3693 * libtiff/tif_dir.c: Fixed up support for swapping "double complex" 3694 values (128 bits as 2 64 bits doubles). GDAL gcore tests now 3695 pass on bigendian (macosx) system. 3696 36972005-07-28 Andrey Kiselev <[email protected]> 3698 3699 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename 3700 CheckMalloc() function to _TIFFCheckMalloc() and make it available 3701 globally as an internal helper routine. 3702 37032005-07-27 Andrey Kiselev <[email protected]> 3704 3705 * libtiff/tif_dir.c: More improvements in the "pass by value" part of 3706 the custom tags handling code. 3707 37082005-07-26 Andrey Kiselev <[email protected]> 3709 3710 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to 3711 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples() 3712 function, use TIFFFetchNormalTag() instead as per bug 3713 3714 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3715 3716 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag() 3717 instead. 3718 3719 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug 3720 3721 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3722 37232005-07-25 Andrey Kiselev <[email protected]> 3724 3725 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays. 3726 3727 * tools/tiffdump.c: Added support for TIFF_IFD datatype. 3728 37292005-07-21 Andrey Kiselev <[email protected]> 3730 3731 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in 3732 the TIFFWriteCheck() function in case of single band images (as per 3733 TIFF spec). 3734 37352005-07-12 Andrey Kiselev <[email protected]> 3736 3737 * SConstruct, libtiff/SConstruct: Added the first very preliminary 3738 support for SCons software building tool (http://www.scons.org/). 3739 This is experimental infrastructure and it will exist along with the 3740 autotools mechanics. 3741 37422005-07-07 Andrey Kiselev <[email protected]> 3743 3744 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from 3745 the NetBSD source tree (the old 4-clause BSD license changed to 3746 the new 3-clause one). 3747 3748 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind() 3749 replacement module. 3750 3751 * port/dummy.c: Make the dummy function static. 3752 37532005-07-06 Andrey Kiselev <[email protected]> 3754 3755 * tools/tiffcp.c: Fixed WhitePoint tag copying. 3756 3757 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}: 3758 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera, 3759 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom. 3760 37612005-07-04 Andrey Kiselev <[email protected]> 3762 3763 * libtiff 3.7.3 released. 3764 3765 * configure, configure.ac: Do not use empty -R option when linking 3766 with --enable-rpath. 3767 37682005-07-01 Andrey Kiselev <[email protected]> 3769 3770 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid 3771 reading the first IFD when needed. As per bug 3772 3773 http://bugzilla.remotesensing.org/show_bug.cgi?id=875 3774 3775 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side 3776 effects. 3777 37782005-06-23 Andrey Kiselev <[email protected]> 3779 3780 * tools/tiff2pdf.c: Print two characters per loop in the 3781 t2p_write_pdf_trailer(). As per bug 3782 3783 http://bugzilla.remotesensing.org/show_bug.cgi?id=594 3784 3785 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As 3786 per bug 3787 3788 http://bugzilla.remotesensing.org/show_bug.cgi?id=844 3789 3790 * acinclude.m4: Updated to latest OpenGL test macros versions. 3791 3792 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler 3793 platform. As per bug 3794 3795 http://bugzilla.remotesensing.org/show_bug.cgi?id=855 3796 37972005-06-14 Andrey Kiselev <[email protected]> 3798 3799 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits 3800 and YClipPathUnits tags. 3801 38022005-06-07 Andrey Kiselev <[email protected]> 3803 3804 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size; 3805 use pixel sized shift in contigous case. 3806 38072005-06-06 Andrey Kiselev <[email protected]> 3808 3809 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}: 3810 Make overviews working for contiguos images. 3811 38122005-06-03 Andrey Kiselev <[email protected]> 3813 3814 * libtiff/tif_open.c: Replace runtime endianess check with the compile 3815 time one. 3816 3817 * libtiff/tif_predict.c: Floating point predictor now works on 3818 big-endian hosts. 3819 38202005-06-01 Andrey Kiselev <[email protected]> 3821 3822 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom 3823 ASCII values. 3824 3825 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make 3826 DocumentName, Artist, HostComputer, ImageDescription, Make, Model, 3827 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and 3828 TargetPrinter tags custom. 3829 3830 * libtiff/tif_jpeg.c: Cleanup the codec state depending on 3831 TIFF_CODERSETUP flag (to fix memry leaks). 3832 3833 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after 3834 allocating. 3835 38362005-05-26 Andrey Kiselev <[email protected]> 3837 3838 * configure.ac, libtiff/Makefile.am: Added workaround for 3839 OpenBSD/MirOS soname problem as per bug 3840 3841 http://bugzilla.remotesensing.org/show_bug.cgi?id=838 3842 3843 * libtiff/tif_dirwrite.c: Use tdir_count when calling 3844 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as 3845 per bug 3846 3847 http://bugzilla.remotesensing.org/show_bug.cgi?id=845 3848 38492005-05-25 Andrey Kiselev <[email protected]> 3850 3851 * tools/ppm2tiff.c: Fixed format string when read PPM file header with 3852 the fscanf() function. As per bug 3853 3854 http://bugzilla.remotesensing.org/show_bug.cgi?id=861 3855 3856 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns 3857 uint16 array when fetching the BYTE and SBYTE filds, so we should 3858 consider result as pointer to uint16 array and not as array of chars. 3859 As per bug 3860 3861 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3862 3863 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug 3864 3865 http://bugzilla.remotesensing.org/show_bug.cgi?id=830 3866 3867 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share 3868 mode in CreateFile() call as per bug 3869 3870 http://bugzilla.remotesensing.org/show_bug.cgi?id=829 3871 3872 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and 3873 libtiffxx libraries as per bug 3874 3875 http://bugzilla.remotesensing.org/show_bug.cgi?id=826 3876 3877 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with 3878 GDAL. 3879 38802005-05-23 Frank Warmerdam <[email protected]> 3881 3882 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with 3883 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables 3884 in directory. 3885 38862005-05-22 Frank Warmerdam <[email protected]> 3887 3888 * libtiff/tif_dirread.c: Changed the code that computes 3889 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is 3890 zero. This is a common case with GDAL indicating a "null" tile/strip. 3891 38922005-05-17 Andrey Kiselev <[email protected]> 3893 3894 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying. 3895 38962005-05-06 Frank Warmerdam <[email protected]> 3897 3898 * libtiff/tif_dirread.c: Applied similar change to 3899 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys. 3900 3901 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3902 3903 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw(). 3904 39052005-05-06 Andrey Kiselev <[email protected]> 3906 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly; 3907 added new option '-b' to use interpolation in output PDF files (Bruno 3908 Ledoux). 3909 39102005-05-05 Frank Warmerdam <[email protected]> 3911 3912 * libtiff/tif_dirread.c: Ensure that broken files with too many 3913 values in PerSampleShorts work ok instead of crashing. 3914 3915 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3916 39172005-04-27 Andrey Kiselev <[email protected]> 3918 3919 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the 3920 input file. 3921 39222005-04-15 Andrey Kiselev <[email protected]> 3923 3924 * libtiff/tif_predict.c: Added ability to encode floating point 3925 predictor, as per TIFF Technical Note 3. 3926 39272005-04-14 Andrey Kiselev <[email protected]> 3928 3929 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode 3930 floating point predictor, as per TIFF Technical Note 3. 3931 39322005-04-13 Andrey Kiselev <[email protected]> 3933 3934 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}: 3935 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to 3936 swap 24-bit floating point values. 3937 3938 * libtiff/tiff.h: Added predictor constants. 3939 39402005-04-08 Andrey Kiselev <[email protected]> 3941 3942 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate 3943 values in _TIFFVSetField() function. Inspired by the bug 3944 3945 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3946 3947 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag 3948 as per bug 3949 3950 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3951 39522005-03-30 Andrey Kiselev <[email protected]> 3953 3954 * libtiff/tif_open.c: Do not read header in case the output file 3955 should be truncated (Ron). 3956 3957 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead 3958 of bsearch() in _TIFFFindFieldInfoByName() function (Ron). 3959 3960 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron). 3961 39622005-03-22 Andrey Kiselev <[email protected]> 3963 3964 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass 3965 rpath option. 3966 39672005-03-21 Andrey Kiselev <[email protected]> 3968 3969 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom 3970 tags. 3971 39722005-03-18 Andrey Kiselev <[email protected]> 3973 3974 * libtiff/dirinfo.c: Added DNG tags. 3975 3976 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag 3977 handling code. 3978 3979 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo); 3980 added DNG 1.1.0.0 tags. 3981 3982 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per 3983 bug 3984 3985 http://bugzilla.remotesensing.org/show_bug.cgi?id=794 3986 3987 * man/TIFFGetField.3tiff: Add a note about autoregistered tags. 3988 39892005-03-17 Andrey Kiselev <[email protected]> 3990 3991 * nmake.opt: Build with Win32 CRT library by default. 3992 3993 * tools/tiff2ps.c: Fixed typo in page size handling code. 3994 3995 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed 3996 by value. 3997 3998 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags. 3999 40002005-03-15 Andrey Kiselev <[email protected]> 4001 4002 * libtiff 3.7.2 released. 4003 40042005-03-09 Andrey Kiselev <[email protected]> 4005 4006 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and 4007 floating point data; complain on unsupported bit depths. 4008 40092005-03-05 Andrey Kiselev <[email protected]> 4010 4011 * tif_stream.cxx: Use ios namespace instead of ios_base to support 4012 GCC 2.95. 4013 4014 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from 4015 Lee Howard for HylaFax DCS tag 4016 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771) 4017 40182005-03-04 Andrey Kiselev <[email protected]> 4019 4020 * configure, configure.ac: Use -rpath option instead of -R as per bug 4021 4022 http://bugzilla.remotesensing.org/show_bug.cgi?id=732 4023 4024 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee 4025 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax 4026 software. As per bug 4027 4028 http://bugzilla.remotesensing.org/show_bug.cgi?id=771 4029 4030 * nmake.opt, html/build.html: Add more comments, change the config 4031 file organization a bit as per bug 4032 4033 http://bugzilla.remotesensing.org/show_bug.cgi?id=764 4034 4035 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison 4036 as per bug 4037 4038 http://bugzilla.remotesensing.org/show_bug.cgi?id=785 4039 40402005-03-03 Andrey Kiselev <[email protected]> 4041 4042 * libtiff/tif_dirread.c: More logic to guess missed strip size as per 4043 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4044 4045 * tools/fax2ps.c: Replace insecure mktemp() function with the 4046 tmpfile() as per bug 4047 4048 http://bugzilla.remotesensing.org/show_bug.cgi?id=786 4049 40502005-02-04 Andrey Kiselev <[email protected]> 4051 4052 * libtiff/tiff.h: Changed the int8 definition to be always signed char 4053 as per bug 4054 4055 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4056 4057 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{} 4058 block as per bug 4059 4060 http://bugzilla.remotesensing.org/show_bug.cgi?id=763 4061 40622005-02-03 Bob Friesenhahn <[email protected]> 4063 4064 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images 4065 display more correctly. Images display brighter than they should 4066 on a Sun workstation. 4067 40682005-02-03 Andrey Kiselev <[email protected]> 4069 4070 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or 4071 suspicious values in the tags. As per bugs 4072 4073 http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4074 4075 and 4076 4077 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 4078 4079 * tools/tiff2ps.c: Fixed problem with page sizes as per bug 4080 4081 http://bugzilla.remotesensing.org/show_bug.cgi?id=742 4082 40832005-01-31 Bob Friesenhahn <[email protected]> 4084 4085 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description. 4086 (TIFFTAG_TILELENGTH): Corrected description. 4087 40882005-01-30 Andrey Kiselev <[email protected]> 4089 4090 * configure.ac: Fixes for --with-docdir option as per bug 4091 4092 http://bugzilla.remotesensing.org/show_bug.cgi?id=759 4093 4094 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per 4095 bug 4096 4097 http://bugzilla.remotesensing.org/show_bug.cgi?id=756 4098 4099 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from 4100 Michael Rinne and Edward Lam. 4101 41022005-01-15 Andrey Kiselev <[email protected]> 4103 4104 * configure.ac: Make the documentation directory location configurable 4105 via the --with-docdir option (as suggested by Jeremy C. Reed). 4106 4107 * libtiff/tif_color.c: Use double as the second argument of pow() 4108 function in TIFFCIELabToRGBInit(). As per bug 4109 4110 http://bugzilla.remotesensing.org/show_bug.cgi?id=741 4111 4112 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to 4113 integer as per bug 4114 4115 http://bugzilla.remotesensing.org/show_bug.cgi?id=740 4116 4117 * libtiff/tif_getimage.c: Always fill the error message buffer in 4118 TIFFRGBAImageBegin() as per bug 4119 4120 http://bugzilla.remotesensing.org/show_bug.cgi?id=739 4121 41222005-01-12 Andrey Kiselev <[email protected]> 4123 4124 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific 4125 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME 4126 tags as per bug 4127 4128 http://bugzilla.remotesensing.org/show_bug.cgi?id=736 4129 4130 * libtiff/tif_win32.c: Fixed message formatting in functions 4131 Win32WarningHandler() and Win32ErrorHandler() as per bug 4132 4133 http://bugzilla.remotesensing.org/show_bug.cgi?id=735 4134 4135 * tools/tiff2ps.c: Interpret the -w and -h options independently. As 4136 per bug 4137 4138 http://bugzilla.remotesensing.org/show_bug.cgi?id=689 4139 41402005-01-11 Andrey Kiselev <[email protected]> 4141 4142 * libtiff/tiffio.h: Move the color conversion routines in the 'extern 4143 "C"' section as per bug 4144 4145 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4146 4147 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C 4148 compiler to avoid double definition of BSD types as per bug 4149 4150 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4151 4152 * libtiff/Makefile.am: Place the C++ stream API in the separate 4153 library called libtiffxx to avoid unneeded dependencies. Probably 4154 there will be more C++ API in the future. As per bugs 4155 4156 http://bugzilla.remotesensing.org/show_bug.cgi?id=733 4157 4158 and 4159 4160 http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4161 41622005-01-05 Andrey Kiselev <[email protected]> 4163 4164 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the 4165 wrong tag counts (Dmitry V. Levin, Martin Pitt). 4166 4167 * configure.ac: Replace --disable-c++ with the --disable-cxx option as 4168 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4169 41702004-12-25 Andrey Kiselev <[email protected]> 4171 4172 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled 4173 RGB-images as per bug 4174 4175 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4176 4177 4178 * tools/tiffset.c: Convert character option to integer value as per 4179 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725 4180 41812004-12-20 Andrey Kiselev <[email protected]> 4182 4183 * libtiff 3.7.1 released. 4184 4185 * html/tiffset.1.html: Add missed manual page as per bug 4186 4187 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4188 4189 * libtiff/tiff.h: Revert back libtiff data type definitions as per 4190 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687 4191 41922004-12-19 Andrey Kiselev <[email protected]> 4193 4194 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when 4195 checking for tag count in TIFFReadDirectory() function. As per bug 4196 4197 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4198 4199 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in 4200 CheckMallock() function. 4201 4202 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled 4203 RGB-images as per bug 4204 4205 http://bugzilla.remotesensing.org/show_bug.cgi?id=718 4206 42072004-12-15 Frank Warmerdam <[email protected]> 4208 4209 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on 4210 SunPro compiler. 4211 42122004-12-11 Bob Friesenhahn <[email protected]> 4213 4214 * autogen.sh: aclocal and autoheader should be executed after 4215 libtoolize. Also add '-I .' to aclocal invocation to check 4216 current directory for macros. 4217 42182004-12-10 Andrey Kiselev <[email protected]> 4219 4220 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type 4221 as per bugs 4222 4223 http://bugzilla.remotesensing.org/show_bug.cgi?id=703 4224 4225 and 4226 4227 http://bugzilla.remotesensing.org/show_bug.cgi?id=704 4228 42292004-12-04 Andrey Kiselev <[email protected]> 4230 4231 * nmake.opt: Link with the user32.lib in windowed mode. As per bug 4232 4233 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4234 4235 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed 4236 mode as per bug 4237 4238 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4239 4240 * libtiff/tif_config.in.vc: Removed unneded definitions for 4241 read/open/close/lseek functions to fix the 4242 4243 http://bugzilla.remotesensing.org/show_bug.cgi?id=680 4244 42452004-12-03 Andrey Kiselev <[email protected]> 4246 4247 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore() 4248 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore 4249 must be removed in the future, as it was never used properly. As per 4250 bug 4251 4252 http://bugzilla.remotesensing.org/show_bug.cgi?id=692 4253 42542004-11-30 Bob Friesenhahn <[email protected]> 4255 4256 * libtiff/tif_jpeg.c: Added a work-around in order to allow 4257 compilation with the heavily modified version of libjpeg delivered 4258 with Cygwin. 4259 42602004-11-29 Andrey Kiselev <[email protected]> 4261 4262 * libtiff/tif_dir.c: Properly handle tags, which have the uint32 4263 counts. As per bug 4264 4265 http://bugzilla.remotesensing.org/show_bug.cgi?id=693 4266 4267 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug 4268 4269 http://bugzilla.remotesensing.org/show_bug.cgi?id=690 4270 42712004-11-28 Andrey Kiselev <[email protected]> 4272 4273 * libtiff/tif_unix.c: Make UNIX module compilable (and usable) 4274 on Windows. 4275 4276 * nmake.opt: Add missed DLLNAME variable. 4277 42782004-11-26 Frank Warmerdam <[email protected]> 4279 4280 * libtiff/makefile.vc: make it easier to rename the libtiff DLL. 4281 42822004-11-24 Andrey Kiselev <[email protected]> 4283 4284 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as 4285 per bug 4286 4287 http://bugzilla.remotesensing.org/show_bug.cgi?id=545 4288 4289 * man/tiffset.1: Added manual page for tiffset tool written by Jay 4290 Berkenbilt. As per bug 4291 4292 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4293 42942004-11-23 Frank Warmerdam <[email protected]> 4295 4296 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError. 4297 42982004-11-21 Frank Warmerdam <[email protected]> 4299 4300 * html/document.html: Updated Adobe web links as per email from Joris. 4301 43022004-11-21 Andrey Kiselev <[email protected]> 4303 4304 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new 4305 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to 4306 use C++ streams should #include <tiffio.hxx>. 4307 43082004-11-13 Andrey Kiselev <[email protected]> 4309 4310 * libtiff/tiff.h: Added Adobe DNG tags. 4311 4312 * libtiff/tif_win32.c: Typo fixed. 4313 4314 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to 4315 be compliant with the latest standard. Appropriate additions in 4316 makefiles now completed. 4317 43182004-11-11 Andrey Kiselev <[email protected]> 4319 4320 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the 4321 different tag types. As per bug 4322 4323 http://bugzilla.remotesensing.org/show_bug.cgi?id=600 4324 43252004-11-10 Andrey Kiselev <[email protected]> 4326 4327 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for 4328 YCbCr image which lacks that tag (noted by Hans Petter Selasky). 4329 43302004-11-09 Andrey Kiselev <[email protected]> 4331 4332 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky). 4333 43342004-11-07 Andrey Kiselev <[email protected]> 4335 4336 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface 4337 contributed by Edward Lam (see 4338 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details). 4339 Though no changes in any makefiles yet. 4340 43412004-11-05 Frank Warmerdam <[email protected]> 4342 4343 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file 4344 is bad. This is the callers responsibility. 4345 http://bugzilla.remotesensing.org/show_bug.cgi?id=651 4346 43472004-11-05 Andrey Kiselev <[email protected]> 4348 4349 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW() 4350 function to work with the double byte strings (used to represent 4351 filenames in some locales). As per bug 4352 4353 http://bugzilla.remotesensing.org/show_bug.cgi?id=625 4354 4355 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and 4356 Compression tags of type LONG from broken TIFFS as per bug 4357 4358 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4359 4360 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC, 4361 the writecount should have uint32 type. As per bug 4362 4363 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4364 4365 * libtiff/tif_write.c: Fixed wrong if() statement in 4366 TIFFAppendToStrip() function as per bug 4367 4368 http://bugzilla.remotesensing.org/show_bug.cgi?id=660 4369 43702004-11-04 Andrey Kiselev <[email protected]> 4371 4372 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES 4373 field. The caller should supply a count when setting this field. As 4374 per bug 4375 4376 http://bugzilla.remotesensing.org/show_bug.cgi?id=648 4377 4378 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have 4379 uint32 count. Use this type everywhere. 4380 43812004-11-03 Frank Warmerdam <[email protected]> 4382 4383 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653. 4384 43852004-11-02 Frank Warmerdam <[email protected]> 4386 4387 * tools/tiff2rgba.c: removed extra newlines in usage message. 4388 43892004-10-30 Andrey Kiselev <[email protected]> 4390 4391 * libtiff/tif_dirwrite.c: Improvements in tag writing code. 4392 4393 * tools/tiff2ps.c: Fixed wrong variable data type when read Position 4394 tags (Tristan Hill). 4395 43962004-10-30 Frank Warmerdam <[email protected]> 4397 4398 * libtiff/tiffiop.h: added fallback definition of assert() if we 4399 don't have assert.h. 4400 44012004-10-29 Andrey Kiselev <[email protected]> 4402 4403 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines 4404 choosing when the incorrect Group4Options tag set. As per bug 4405 4406 http://bugzilla.remotesensing.org/show_bug.cgi?id=323 4407 4408 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of 4409 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in 4410 TIFFWriteNormalTag(). 4411 44122004-10-28 Andrey Kiselev <[email protected]> 4413 4414 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution 4415 tags (Peter Fales). 4416 4417 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions. 4418 44192004-10-28 Frank Warmerdam <[email protected]> 4420 4421 * tools/tiff2pdf.c: added casts to avoid warnings. 4422 4423 * libtiff/libtiff.def: Added several more entry points required 4424 to link fax2tiff.c against the DLL on windows. 4425 44262004-10-27 Andrey Kiselev <[email protected]> 4427 4428 * configure, configure.ac: Added --enable-rpath option to embed linker 4429 paths into library binary. 4430 44312004-10-26 Andrey Kiselev <[email protected]> 4432 4433 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin). 4434 4435 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed 4436 (Vladimir Nadvornik, Dmitry V. Levin). 4437 44382004-10-16 Andrey Kiselev <[email protected]> 4439 4440 * libtiff 3.7.0 released. 4441 44422004-10-15 Bob Friesenhahn <[email protected]> 4443 4444 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h 4445 in this file so its inclusion is removed. Including stdio.h 4446 sometimes incurs an INT32 typedef conflict between MinGW's 4447 basetsd.h and libjpeg's jmorecfg.h. 4448 44492004-10-15 Andrey Kiselev <[email protected]> 4450 4451 * man/bmp2tiff.1: Added manual page for bmp2tiff utility. 4452 44532004-10-13 Bob Friesenhahn <[email protected]> 4454 4455 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid 4456 conflict noticed under MinGW. 4457 * ltmain.sh: Fix for MinGW compilation. 4458 44592004-10-13 Frank Warmerdam <[email protected]> 4460 4461 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz. 4462 http://bugzilla.remotesensing.org/show_bug.cgi?id=635 4463 44642004-10-12 Andrey Kiselev <[email protected]> 4465 4466 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c, 4467 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes 4468 properly (Dmitry V. Levin, Marcus Meissner). 4469 44702004-10-11 Andrey Kiselev <[email protected]> 4471 4472 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed 4473 to TIFF_IFD. 4474 44752004-10-10 Andrey Kiselev <[email protected]> 4476 4477 * tools/bmp2tif.c: Check the space allocation results. 4478 44792004-10-09 Andrey Kiselev <[email protected]> 4480 4481 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields 4482 of the TIFFDirectory structure with the 0 instead of -1 to avoid 4483 confusing integer overflows in TIFFTileRowSize() for striped images. 4484 4485 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported 4486 by Ross A. Finlayson. 4487 4488 * libtiff/tif_dir.c: Fixed custom tags handling as per bug 4489 4490 http://bugzilla.remotesensing.org/show_bug.cgi?id=629 4491 44922004-10-08 Frank Warmerdam <[email protected]> 4493 4494 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation 4495 of tif_fieldinfo. 4496 4497 http://bugzilla.remotesensing.org/show_bug.cgi?id=630 4498 44992004-10-04 Bob Friesenhahn <[email protected]> 4500 4501 * contrib/iptcutil/README: Added the missing README which goes 4502 along with iptcutil. 4503 45042004-10-03 Andrey Kiselev <[email protected]> 4505 4506 * libtiff/tif_compress.c: Improved error reporting in 4507 TIFFGetConfiguredCODECs() (Dmitry V. Levin). 4508 45092004-10-02 Andrey Kiselev <[email protected]> 4510 4511 * libtiff 3.7.0beta2 released. 4512 4513 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c, 4514 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c, 4515 tif_pixarlog.c, tif_write.c}: Added checks for failed memory 4516 allocations and integer overflows (Dmitry V. Levin). 4517 4518 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added. 4519 45202004-10-01 Frank Warmerdam <[email protected]> 4521 4522 * libtiff/tif_open.c: added a more informative message if a BigTIFF 4523 file is opened. 4524 45252004-09-30 Frank Warmerdam <[email protected]> 4526 4527 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to 4528 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info 4529 in the Adobe XMP Specification. 4530 45312004-09-29 Andrey Kiselev <[email protected]> 4532 4533 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of 4534 memset(). 4535 4536 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches 4537 from Dmitry V. Levin to fix possible integer overflow problems. 4538 45392004-09-28 Andrey Kiselev <[email protected]> 4540 4541 * libtiff/tif_getimage.c: Check for allocated buffers before clearing 4542 (Dmitry V. Levin). 4543 45442004-09-26 Andrey Kiselev <[email protected]> 4545 4546 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}: 4547 Optimize checking for the strip bounds. 4548 4549 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and 4550 TIFFRasterScanlineSize() functions report zero in the case of integer 4551 overflow now. Properly handle this case in TIFFReadDirectory() 4552 (patches from Dmitry V. Levin). 4553 45542004-09-25 Andrey Kiselev <[email protected]> 4555 4556 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8() 4557 macro where appropriate. 4558 4559 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as 4560 noted by Gennady Khokhorin. 4561 4562 * libtiff/tif_dirread.c: Always check the return values, returned 4563 by the _TIFFmalloc() (Dmitry V. Levin). 4564 4565 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array() 4566 functions (Dmitry V. Levin). 4567 4568 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}: 4569 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(), 4570 TIFFGrowStrips() (found by Dmitry V. Levin). 4571 45722004-09-24 Andrey Kiselev <[email protected]> 4573 4574 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs() 4575 to get the list of configured codecs. 4576 4577 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from 4578 Dmitry V. Levin. 4579 45802004-09-23 Andrey Kiselev <[email protected]> 4581 4582 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix 4583 possible integer overflow in CheckMalloc() function. 4584 45852004-09-22 Andrey Kiselev <[email protected]> 4586 4587 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead 4588 of plain TIFFhowmany() where appropriate. 4589 45902004-09-21 Andrey Kiselev <[email protected]> 4591 4592 * libtiff/tif_getimage.c: Initialize arrays after space allocation. 4593 45942004-09-19 Andrey Kiselev <[email protected]> 4595 4596 * libtiff 3.7.0beta released. 4597 4598 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer 4599 overruns fixed, as noted by Chris Evans. 4600 46012004-09-14 Bob Friesenhahn <[email protected]> 4602 4603 * commit: Added a script to make it more convenient to commit 4604 updates. The CVS commit message is extracted from this ChangeLog 4605 file. 4606 46072004-09-14 Andrey Kiselev <[email protected]> 4608 4609 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c, 4610 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c, 4611 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c, 4612 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c, 4613 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h, 4614 tif_config.h.in, tiffiop.h}: 4615 Get rid of BSD data types (u_char, u_short, u_int, u_long). 4616 46172004-09-13 Bob Friesenhahn <[email protected]> 4618 4619 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP 4620 specification. Reference libtiff bug tracking system to submit 4621 private tag additions. 4622 46232004-09-12 Bob Friesenhahn <[email protected]> 4624 4625 * tools/tiffgt.c: Include "tif_config.h". 4626 4627 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build 4628 tiffgt. This results in the 'compile' script being added to the 4629 project. 4630 4631 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options 4632 required to find OpenGL headers necessary to build tiffgt. Also 4633 ensure that the libtiff that we built is used rather than some other 4634 libtiff installed on the system. 4635 46362004-09-12 Andrey Kiselev <[email protected]> 4637 4638 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT 4639 libraries. 4640 46412004-09-11 Bob Friesenhahn <[email protected]> 4642 4643 * configure.ac: Pass library configuration defines via 4644 tif_config.h rather than extending CPPFLAGS. Configure a 4645 libtiff/tiffconf.h in order to satisfy application requirements 4646 (not used by library build). Do not define _POSIX_C_SOURCE=2 since 4647 this causes failure to build on systems which properly respect 4648 this request. 4649 4650 * libtiff/tiffconf.h.in: New file to act as the template for the 4651 configured tiffconf.h 4652 4653 * libtiff/files.lst (HDRS): Install the configured tiffconf.h. 4654 46552004-09-10 Frank Warmerdam <[email protected]> 4656 4657 * html/internals.html: Split off a discussion of adding new tags 4658 into addingtags.html. 4659 46602004-09-10 Andrey Kiselev <[email protected]> 4661 4662 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added. 4663 4664 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug 4665 4666 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4667 4668 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting. 4669 4670 * libtiff/tif_dirread.c: Don't reject to read tags of the 4671 SamplesPerPixel size when the tag count is greater than number of 4672 samples as per bug 4673 4674 http://bugzilla.remotesensing.org/show_bug.cgi?id=576 4675 4676 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off 4677 defining int8/uint8/... etc. types. As per bug 4678 4679 http://bugzilla.remotesensing.org/show_bug.cgi?id=607 4680 46812004-09-09 Frank Warmerdam <[email protected]> 4682 4683 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files 4684 to avoid compile warnings about getopt() and a few other things. 4685 46862004-09-02 Andrey Kiselev <[email protected]> 4687 4688 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer 4689 assigning magic in TIFFFetchFloat(). 4690 46912004-09-01 Andrey Kiselev <[email protected]> 4692 4693 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme 4694 to avoid requirement for tiffiop.h inclusion in some applications. See 4695 here 4696 4697 http://www.asmail.be/msg0054799560.html 4698 4699 for details. 4700 4701 * tools/fax2tiff.c: Use the new functions in the code. 4702 47032004-08-25 Andrey Kiselev <[email protected]> 4704 4705 * tools/tiff2pdf.c: Initialize arrays properly. 4706 4707 * tools/tiff2ps.c: Avoid zero division in setupPageState() function; 4708 properly initialize array in PSDataBW(). 4709 47102004-08-24 Andrey Kiselev <[email protected]> 4711 4712 * tools/tiff2pdf.c: More fixes for bug 4713 4714 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4715 4716 from Ross Finlayson. 4717 47182004-08-23 Andrey Kiselev <[email protected]> 4719 4720 * tools/tiff2ps.c: Fixed problem with uninitialized values. 4721 4722 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the 4723 TIFFDefaultDirectory() (in addition to 2004-08-19 fix). 4724 4725 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug 4726 4727 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4728 47292004-08-20 Andrey Kiselev <[email protected]> 4730 4731 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks 4732 that the input file has compression, photometric interpretation, 4733 etcetra, tags or if not than a more descriptive error is returned. 4734 4735 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the 4736 code, responsible for tag data type checking. 4737 47382004-08-19 Andrey Kiselev <[email protected]> 4739 4740 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static 4741 variable as per bug 4742 4743 http://bugzilla.remotesensing.org/show_bug.cgi?id=593 4744 47452004-08-16 Andrey Kiselev <[email protected]> 4746 4747 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per 4748 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586 4749 47502004-08-01 Andrey Kiselev <[email protected]> 4751 4752 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and 4753 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc. 4754 47552004-07-24 Andrey Kiselev <[email protected]> 4756 4757 * libtiff/tif_lzw.c: LZW compression code is merged back from the 4758 separate package. All libtiff tools are updated to not advertise an 4759 abcence of LZW support. 4760 47612004-07-12 Andrey Kiselev <[email protected]> 4762 4763 * libtiff/tiffio.h: Revert thandle_t back to void* type. 4764 47652004-07-11 Andrey Kiselev <[email protected]> 4766 4767 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error 4768 messages, as suggested by Bernd Herd. 4769 47702004-07-03 Andrey Kiselev <[email protected]> 4771 4772 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings 4773 when setting custom tags by value. Reported by Eric Fieleke. 4774 47752004-06-14 Andrey Kiselev <[email protected]> 4776 4777 * tools/bmp2tiff.c: Add missed RawsPerStrip setting. 4778 47792004-06-08 Andrey Kiselev <[email protected]> 4780 4781 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files 4782 into TIFFs. 4783 47842004-06-07 Andrey Kiselev <[email protected]> 4785 4786 * libtiff 3.7.0alpha released. 4787 47882004-06-06 Andrey Kiselev <[email protected]> 4789 4790 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid 4791 of ugly 64-bit hacks, replace them with the clever (autoconf based ) 4792 ones :-). 4793 4794 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause 4795 problems in 64-bit environment). 4796 47972004-06-05 Andrey Kiselev <[email protected]> 4798 4799 * tools/tiffset.c: tiffset now can set any libtiff supported tags. 4800 Tags can be supplied by the mnemonic name or number. 4801 4802 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new 4803 functions TIFFFindFieldInfoByName() and TIFFFieldWithName(). 4804 48052004-05-27 Andrey Kiselev <[email protected]> 4806 4807 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF 4808 markers as per bug 4809 4810 http://bugzilla.remotesensing.org/show_bug.cgi?id=581 4811 48122004-05-24 Andrey Kiselev <[email protected]> 4813 4814 * tools/tiffsplit.c: Don't forget to copy Photometric 4815 Interpretation tag. 4816 48172004-05-20 Andrey Kiselev <[email protected]> 4818 4819 * libtiff/{tif_open.c, tiffio.h}: New function added: 4820 TIFFIsBigEndian(). Function returns nonzero if given was file written 4821 in big-endian order. 4822 4823 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte 4824 files. Now output files will be written using the same byte order 4825 flag as in the input image. See 4826 4827 http://bugzilla.remotesensing.org/show_bug.cgi?id=574 4828 4829 for details. 4830 48312004-05-19 Frank Warmerdam <[email protected]> 4832 4833 * libtiff/tif_print.c: added (untested) support for printing 4834 SSHORT, SLONG and SRATIONAL fields. 4835 4836 * tools/tiffcp.c: close output file on normal exit. 4837 48382004-05-17 Andrey Kiselev <[email protected]> 4839 4840 * libtiff/tif_fax3.c: Avoid reading CCITT compression options 4841 if compression type mismatches. See 4842 4843 http://bugzilla.remotesensing.org/show_bug.cgi?id=565 4844 48452004-04-30 Andrey Kiselev <[email protected]> 4846 4847 * libtiff/tif_strip.c: Never return 0 from the 4848 TIFFNumberOfStrips(). 4849 48502004-04-29 Andrey Kiselev <[email protected]> 4851 4852 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which 4853 store single SampleFormat value for multisampled images. See 4854 4855 http://bugzilla.remotesensing.org/show_bug.cgi?id=562 4856 48572004-04-25 Andrey Kiselev <[email protected]> 4858 4859 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8, 4860 int16 and int32 types to avoid complains on some compilers. Details at 4861 4862 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4863 48642004-04-20 Andrey Kiselev <[email protected]> 4865 4866 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug 4867 4868 http://bugzilla.remotesensing.org/show_bug.cgi?id=555 4869 48702004-04-14 Andrey Kiselev <[email protected]> 4871 4872 * libtiff/tif_write.c: Allow in-place updating of the compressed 4873 images (don't work properly with all codecs). For details see GDAL bug 4874 4875 http://bugzilla.remotesensing.org/show_bug.cgi?id=534 4876 48772004-04-06 Andrey Kiselev <[email protected]> 4878 4879 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used 4880 in the Intergarph JPEG compressed TIFF images as per bug: 4881 4882 http://bugzilla.remotesensing.org/show_bug.cgi?id=532 4883 48842004-04-04 Frank Warmerdam <[email protected]> 4885 4886 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails 4887 via bad2. 4888 48892004-03-26 Andrey Kiselev <[email protected]> 4890 4891 * tools/tiffcp.c: Properly set Photometric Interpretation in case of 4892 JPEG compression of grayscale images. 4893 4894 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not 4895 present in the input image. 4896 48972004-03-19 Andrey Kiselev <[email protected]> 4898 4899 * {many}: The first attempt to switch to autotools. 4900 49012004-03-03 Andrey Kiselev <[email protected]> 4902 4903 * libtiff/tif_open.c: Use dummy mmap/munmap functions in 4904 TIFFClientOpen() when the appropriate client functions was not 4905 supplied by user. 4906 49072004-03-02 Frank Warmerdam <[email protected]> 4908 4909 * tools/ycbcr.c: fixed main() declaration as per: 4910 http://bugzilla.remotesensing.org/show_bug.cgi?id=513 4911 49122004-02-26 Andrey Kiselev <[email protected]> 4913 4914 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed 4915 images. Reported by Artem Mirolubov. 4916 4917 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED 4918 tag type in TIFFFetchNormalTag() as per bug 4919 4920 http://bugzilla.remotesensing.org/show_bug.cgi?id=508 4921 49222004-02-17 Frank Warmerdam <[email protected]> 4923 4924 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per: 4925 http://bugzilla.remotesensing.org/show_bug.cgi?id=494 4926 49272004-02-05 Andrey Kiselev <[email protected]> 4928 4929 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per 4930 bug 4931 4932 http://bugzilla.remotesensing.org/show_bug.cgi?id=483 4933 4934 But we need more work on fax codec to support update mode. 4935 49362004-01-30 Frank Warmerdam <[email protected]> 4937 4938 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck, 4939 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by 4940 Scott Reynolds. 4941 49422004-01-29 Andrey Kiselev <[email protected]> 4943 4944 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS 4945 and TIFFTAG_INDEXED as per bug 4946 4947 http://bugzilla.remotesensing.org/show_bug.cgi?id=475 4948 4949 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is 4950 NULL before proceeding further as per bug 4951 4952 http://bugzilla.remotesensing.org/show_bug.cgi?id=474 4953 4954 Check results, returned by the TIFFFdOpen() before returning and close 4955 file if TIFFFdOpen() failed as per bug 4956 4957 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4958 4959 * libtiff/tif_open.c: More fixes for 4960 4961 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4962 49632004-01-28 Andrey Kiselev <[email protected]> 4964 4965 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate 4966 TIFFCleanup() from the TIFFClose() in order to fix the bug 4967 4968 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4969 4970 * tools/tiffcp.c: Fixed problem with wrong interpretation of the 4971 InkNames tag as per bug 4972 4973 http://bugzilla.remotesensing.org/show_bug.cgi?id=466 4974 4975 Memory leak fixed. 4976 49772004-01-21 Frank Warmerdam <[email protected]> 4978 4979 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that 4980 are field_passcount=TRUE properly. Arguably anonymous custom tags 4981 should be declared as passcount=FALSE, but I don't want to change 4982 that without a careful review. 4983 49842004-01-20 Andrey Kiselev <[email protected]> 4985 4986 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of 4987 stripped image in TIFFWriteBufferSetup(). As per bug 4988 4989 http://bugzilla.remotesensing.org/show_bug.cgi?id=460 4990 49912004-01-11 Andrey Kiselev <[email protected]> 4992 4993 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(), 4994 patch from Gerben Koopmans. 4995 4996 * libtiff/tif_dirread.c: Check field_passcount value before setting 4997 the value of undefined type, patch from Gerben Koopmans. 4998 49992004-01-02 Andrey Kiselev <[email protected]> 5000 5001 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for 5002 non-RGB images. 5003 50042003-12-31 Andrey Kiselev <[email protected]> 5005 5006 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL 5007 pointer passed. Patch supplied by Larry Grill. 5008 5009 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as 5010 suggested by Jeremy C. Reed. 5011 50122003-12-26 Andrey Kiselev <[email protected]> 5013 5014 * libtiff 3.6.1 released. 5015 50162003-12-24 Andrey Kiselev <[email protected]> 5017 5018 * config.guess, config.sub: Updated from the recent upstream. 5019 50202003-12-22 Andrey Kiselev <[email protected]> 5021 5022 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t: 5023 More cleanups in color conversion interface, added appropriate manual 5024 page. 5025 50262003-12-19 Andrey Kiselev <[email protected]> 5027 5028 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as 5029 per bug 5030 5031 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5032 5033 * tools/tiff2ps.c: Added support for alpha channel. Fixes 5034 5035 http://bugzilla.remotesensing.org/show_bug.cgi?id=428 5036 5037 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}: 5038 Interface for Lab->RGB color conversion is finally cleaned up. 5039 Added support for ReferenceBlackWhite tag handling when converted from 5040 YCbCr color space. The latter closes 5041 5042 http://bugzilla.remotesensing.org/show_bug.cgi?id=120 5043 50442003-12-07 Andrey Kiselev <[email protected]> 5045 5046 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings. 5047 5048 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG 5049 library. 5050 50512003-12-06 Andrey Kiselev <[email protected]> 5052 5053 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the 5054 file and properly use it for CIE Lab->RGB transform. 5055 50562003-12-04 Andrey Kiselev <[email protected]> 5057 5058 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB 5059 conversion routines now in the tif_color.c module. New function 5060 TIFFYCbCrtoRGB() available in TIFF API. 5061 5062 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly. 5063 50642003-12-03 Andrey Kiselev <[email protected]> 5065 5066 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in 5067 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c 5068 module. 5069 5070 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t, 5071 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}: 5072 Finally resolved problems with orientation handling. TIFFRGBAImage 5073 interface now properly supports all possible orientations, i.e. images 5074 will be flipped both in horizontal and vertical directions if 5075 required. 'Known bugs' section now removed from the appropriate manual 5076 pages. Closed bug entry: 5077 5078 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5079 50802003-12-02 Andrey Kiselev <[email protected]> 5081 5082 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError() 5083 function calls as per bug 5084 5085 http://bugzilla.remotesensing.org/show_bug.cgi?id=440 5086 50872003-11-28 Ross Finlayson <[email protected]> 5088 5089 * tools/tiff2pdf.c: Some bugs fixed. 5090 50912003-11-27 Andrey Kiselev <[email protected]> 5092 5093 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine, 5094 reported by Antonio Scuri. 5095 5096 * man/tiff2pdf.1: Few improvements in page layout. 5097 5098 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html: 5099 Added support fpr tiff2pdf manual page. 5100 51012003-11-26 Ross Finlayson <[email protected]> 5102 5103 * /man/tiff2pdf.1: File added to repository. 5104 51052003-11-26 Andrey Kiselev <[email protected]> 5106 5107 * Makefile.in, /tools/{Makefile.in, makefile.vc}: 5108 Added support fpr tiff2pdf utility. 5109 51102003-11-25 Ross Finlayson <[email protected]> 5111 5112 * /tools/tiff2pdf.c: File added to repository. 5113 51142003-11-22 Andrey Kiselev <[email protected]> 5115 5116 * /tools/raw2tiff.c: sqrtf() replaced with sqrt(). 5117 51182003-11-21 Andrey Kiselev <[email protected]> 5119 5120 * /tools/raw2tiff.c: #include <getopt.h> removed. 5121 5122 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent 5123 sgigt utility removed and replaced with the completely rewritten 5124 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision, 5125 there is a lot of things to improve. 5126 5127 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly 5128 extract the fields from the OJPEG files. Patch supplied by Ross 5129 Finlayson. 5130 5131 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}: 5132 Added new function TIFFIsCODECConfigured(), suggested by Ross 5133 Finlayson. 5134 51352003-11-18 Andrey Kiselev <[email protected]> 5136 5137 * libtiff/tif_dirinfo.c: Implemented binary search in 5138 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson. 5139 5140 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced 5141 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson. 5142 51432003-11-17 Frank Warmerdam <[email protected]> 5144 5145 * tif_dirread.c: do not mark all anonymously defined tags to be 5146 IGNOREd. 5147 51482003-11-17 Andrey Kiselev <[email protected]> 5149 5150 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use 5151 TIFFDataWidth() function insted of tiffDataWidth array. 5152 51532003-11-16 Andrey Kiselev <[email protected]> 5154 5155 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13) 5156 datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes". 5157 51582003-11-15 Frank Warmerdam <[email protected]> 5159 5160 * Makefile.in: fixed missing backslash for tif_color.c in list. 5161 51622003-11-13 Andrey Kiselev <[email protected]> 5163 5164 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}: 5165 New color space conversion code: CIE L*a*b* 1976 images now supported 5166 by the TIFFRGBAImage interface. All introduced routines go to new 5167 module tif_color.c. Eventually all color conversion functions should 5168 be moved there. 5169 51702003-11-12 Andrey Kiselev <[email protected]> 5171 5172 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles 5173 with the reverse byte order (it is reported by the magic header 5174 field). Problem reported by Andreas Wiesmann. 5175 5176 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation 5177 calculation function. Guessing mechanics now documented in manual page. 5178 51792003-11-11 Andrey Kiselev <[email protected]> 5180 5181 * tools/raw2tiff.c: Implemented image size guessing using 5182 correlation coefficient calculation between two neighbour lines. 5183 51842003-11-09 Frank Warmerdam <[email protected]> 5185 5186 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the 5187 planarconfig_contig case in TIFFComputeTile(). 5188 5189 http://bugzilla.remotesensing.org/show_bug.cgi?id=387 5190 51912003-11-09 Andrey Kiselev <[email protected]> 5192 5193 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint. 5194 51952003-11-07 Andrey Kiselev <[email protected]> 5196 5197 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}: 5198 Added TIFFRawStripSize() function as suggested by Chris Hanson. 5199 52002003-11-03 Andrey Kiselev <[email protected]> 5201 5202 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as 5203 per bug 5204 5205 http://bugzilla.remotesensing.org/show_bug.cgi?id=424 5206 52072003-10-29 Andrey Kiselev <[email protected]> 5208 5209 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented. 5210 5211 * html/build.html: Added note about GNU make requirement. 5212 52132003-10-25 Andrey Kiselev <[email protected]> 5214 5215 * Makefile.in: Fixes in using MAKEFLAGS as per bug 5216 5217 http://bugzilla.remotesensing.org/show_bug.cgi?id=418 5218 5219 * port/install.sh.in: Option -p added to the mkdir command to create 5220 all directory tree structure before installing. 5221 52222003-10-18 Andrey Kiselev <[email protected]> 5223 5224 * /tools/tiff2ps.c: #include <strings.h> replaced with the 5225 #include <string.h>. 5226 52272003-10-16 Andrey Kiselev <[email protected]> 5228 5229 * Makefile.in: Add an absolute path to the test_pics.sh call. 5230 52312003-10-12 Andrey Kiselev <[email protected]> 5232 5233 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD 5234 typedefs. 5235 52362003-10-09 Andrey Kiselev <[email protected]> 5237 5238 * configure, libtiff/{Makefile.in, mkversion.c}: 5239 Relative buildings fixed. 5240 5241 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building 5242 rule. 5243 52442003-10-07 Andrey Kiselev <[email protected]> 5245 5246 * Makefile.in: Added missed v3.6.0.html. 5247 5248 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with 5249 ORIENTATION_BOTLEFT. 5250 52512003-10-04 Andrey Kiselev <[email protected]> 5252 5253 * 3.6.0 final release. 5254 52552003-10-03 Andrey Kiselev <[email protected]> 5256 5257 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New 5258 function TIFFReadRGBAImageOriented() implemented to retrieve raster 5259 array with user-specified origin position as suggested by Jason Frank. 5260 See 5261 5262 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5263 5264 for details. 5265 5266 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented() 5267 instead of TIFFReadRGBAImage(). 5268 5269 * tools/tiff2ps.c: Fixed possible endless loop as per bug 5270 5271 http://bugzilla.remotesensing.org/show_bug.cgi?id=404 5272 52732003-09-30 Andrey Kiselev <[email protected]> 5274 5275 * libtiff/tif_dirread.c: Check field counter against number of fields 5276 in order to fix 5277 5278 http://bugzilla.remotesensing.org/show_bug.cgi?id=366 5279 5280 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug 5281 5282 http://bugzilla.remotesensing.org/show_bug.cgi?id=342 5283 52842003-09-25 Andrey Kiselev <[email protected]> 5285 5286 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c, 5287 tif_close.c}: Store a list of opened IFD to prevent looping as per bug 5288 5289 http://bugzilla.remotesensing.org/show_bug.cgi?id=383 5290 52912003-09-23 Andrey Kiselev <[email protected]> 5292 5293 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See 5294 5295 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5296 52972003-08-21 Andrey Kiselev <[email protected]> 5298 5299 * tools/tiffmedian.c: int declaration replaced with the uint32 to 5300 support large images as per bug 5301 5302 http://bugzilla.remotesensing.org/show_bug.cgi?id=382 5303 53042003-08-12 Andrey Kiselev <[email protected]> 5305 5306 * libtiff/Makefile.in: Fixed problem with building in different 5307 directory. 5308 5309 * tools/tiff2ps.c: Added missing #include <strings.h>. 5310 5311 * libtiff/tif_dirwrite.c: More fixes for custom tags code 5312 from Ashley Dreier. 5313 53142003-08-07 Andrey Kiselev <[email protected]> 5315 5316 * tools/tiff2ps.c: Added page size setting when creating PS Level 2. 5317 Patch submitted by Balatoni Denes (with corrections from Tom 5318 Kacvinsky). 5319 5320 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is 5321 being used. Reported by Tom Kacvinsky. 5322 5323 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing, 5324 reported by Ashley Dreier. 5325 5326 * libtiff/tif_print.c: Fixed problem with float tags reading, support 5327 for printing RATIONAL and BYTE tags added. 5328 53292003-08-05 Andrey Kiselev <[email protected]> 5330 5331 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to 5332 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause 5333 problems with predictor initialization. Remove O_RDONLY check during 5334 state block allocation to be able open LZW compressed files in update 5335 mode. 5336 5337 Problem exist for libtiff version of the tif_lzw.c module. One from 5338 lzw-compression-kit hasn't such troubles. 5339 53402003-08-04 Frank Warmerdam <[email protected]> 5341 5342 * libtiff/tif_write.c: modified tif_write.c so that the various 5343 encoded write functions use tif_postdecode() to apply byte order 5344 swapping (swab) to the application passed data buffer if the same 5345 would be done when reading. This allows us to write pixel data with 5346 more than 8 bits per sample to existing files of a non-native byte 5347 order. One side effect of this change is the applications buffer 5348 itself is altered in this case by the act of writing. 5349 5350 http://bugzilla.remotesensing.org/show_bug.cgi?id=171 5351 53522003-07-25 Frank Warmerdam <[email protected]> 5353 5354 * libtiff/tif_open.c: avoid signed/unsigned casting warning 5355 initializing typemask as per patch from J.A. Strother. 5356 5357 * tools/tiffcp.c: fixed signed/unsigned casting warning. 5358 5359 * libtiff/tif_print.c: dos2unix conversion. 5360 5361 * tools/tiffsplit.c: increased the maximum number of pages that 5362 can be split. Patch provided by Andrew J. Montalenti. 5363 53642003-07-11 Andrey Kiselev <[email protected]> 5365 5366 * tools/raw2tiff.c: Added option `-p' to explicitly select color 5367 space of input image data. Closes 5368 5369 http://bugzilla.remotesensing.org/show_bug.cgi?id=364 5370 53712003-07-08 Frank Warmerdam <[email protected]> 5372 5373 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c, 5374 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c, 5375 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c: 5376 avoid casting warning at /W4. 5377 53782003-07-03 Andrey Kiselev <[email protected]> 5379 5380 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel. 5381 53822003-06-30 Andrey Kiselev <[email protected]> 5383 5384 * libtiff/tif_pixarlog.c: Unused variables removed. 5385 5386 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with 5387 EstimateStripByteCounts() as per bug 5388 5389 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5390 5391 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on 5392 64-bit architectures as per bug 5393 5394 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5395 5396 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of 5397 unknown data type. 5398 53992003-06-19 Frank Warmerdam <[email protected]> 5400 5401 * libtiff/tif_print.c: fixed some serious bugs when printing 5402 custom tags ... almost certain to crash. 5403 5404 * libtiff/tif_dirread.c: Don't ignore custom fields that are 5405 autodefined. Not sure how this got to be like this. 5406 54072003-06-18 Andrey Kiselev <[email protected]> 5408 5409 * 3.6.0 Beta2 released. 5410 5411 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data 5412 comparing as per bug 5413 5414 http://bugzilla.remotesensing.org/show_bug.cgi?id=349 5415 5416 `-z' option now can be used to set the number of reported different 5417 bytes. 5418 54192003-06-09 Andrey Kiselev <[email protected]> 5420 5421 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1 5422 to -r option to get the entire image as one strip. See 5423 5424 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5425 5426 for details. 5427 54282003-06-04 Andrey Kiselev <[email protected]> 5429 5430 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber 5431 values as per bug 5432 5433 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5434 54352003-05-27 Frank Warmerdam <[email protected]> 5436 5437 * libtiff/tif_jpeg.c: modified segment_height calculation to always 5438 be a full height tile for tiled images. Also changed error to just 5439 be a warning. 5440 54412003-05-25 Andrey Kiselev <[email protected]> 5442 5443 * tools/fax2tiff.c: Page numbering fixed, as per bug 5444 5445 http://bugzilla.remotesensing.org/show_bug.cgi?id=341 5446 54472003-05-20 Andrey Kiselev <[email protected]> 5448 5449 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5450 configure, Makefile.in: Switched back to the old behaviour. Likely 5451 better solution should be found for OJPEG support. 5452 54532003-05-11 Andrey Kiselev <[email protected]> 5454 5455 * libtiff/mkversion.c: Fixed problem with wrong string size when 5456 reading RELEASE-DATE file. 5457 54582003-05-07 Andrey Kiselev <[email protected]> 5459 5460 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array 5461 index was out of range. 5462 54632003-05-06 Andrey Kiselev <[email protected]> 5464 5465 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5466 configure, Makefile.in: Improved libtiff compilation with OJPEG 5467 support. Now no need for patching IJG JPEG library, hack requred by 5468 libtiff will be compiled and used in-place. Implemented with 5469 suggestion and help from Bill Allombert, Debian's libjpeg maintainer. 5470 5471 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in 5472 TIFFVGetFieldDefaulted() function. 5473 54742003-05-05 Andrey Kiselev <[email protected]> 5475 5476 * tools/ppm2tiff.c: PPM header parser improved: now able to skip 5477 comments. 5478 5479 * tools/tiffdither.c: Fixed problem with bit fill order tag setting: 5480 was not copied from source image. 5481 5482 * libtiff/getimage.c: Workaround for some images without correct 5483 info about alpha channel as per bug 5484 5485 http://bugzilla.remotesensing.org/show_bug.cgi?id=331 5486 54872003-04-29 Andrey Kiselev <[email protected]> 5488 5489 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3. 5490 It basically allows one to use the /flateDecode filter for ZIP 5491 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes 5492 5493 http://bugzilla.remotesensing.org/show_bug.cgi?id=328 5494 5495 * tools/tiff2ps.c: Force deadzone printing when EPS output specified 5496 as per bug 5497 5498 http://bugzilla.remotesensing.org/show_bug.cgi?id=325 5499 55002003-04-17 Andrey Kiselev <[email protected]> 5501 5502 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts 5503 due to problems with multidirectory images. Quality of error messages 5504 improved. 5505 55062003-04-16 Andrey Kiselev <[email protected]> 5507 5508 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG 5509 encoded images. See bug entries 5510 5511 http://bugzilla.remotesensing.org/show_bug.cgi?id=275 5512 5513 and 5514 5515 http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5516 5517 * libtiff/tif_dirread.c: Additional check for StripByteCounts 5518 correctness. Fixes 5519 5520 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 5521 55222003-03-12 Andrey Kiselev <[email protected]> 5523 5524 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c, 5525 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c, 5526 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c, 5527 tiffmedian.c}: Added library version reporting facility to all tools. 5528 55292003-03-06 Frank Warmerdam <[email protected]> 5530 5531 * port/install.sh.in: Fixed problems with install producing paths 5532 like ///usr/local/lib on cygwin. 5533 55342003-02-27 Andrey Kiselev <[email protected]> 5535 5536 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of 5537 raw input page. Patch supplied by Julien Gaulmin. See 5538 5539 http://bugzilla.remotesensing.org/show_bug.cgi?id=293 5540 5541 for details. 5542 55432003-02-26 Frank Warmerdam <[email protected]> 5544 5545 * libtiff/tif_dir.c: fixed up the tif_postdecode settings 5546 responsible for byte swapping complex image data. 5547 5548 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till 5549 LZWSetupDecode(). Needed to read LZW files in "r+" mode. 5550 55512003-02-07 Andrey Kiselev <[email protected]> 5552 5553 * tools/ppm2tiff.c: Fixed problem with too many arguments. 5554 55552003-02-04 Andrey Kiselev <[email protected]> 5556 5557 * tools/raw2tiff.c: Memory leak fixed. 5558 55592003-02-03 Andrey Kiselev <[email protected]> 5560 5561 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin 5562 (thanks, Julien!). More switches for fax2tiff tool for better control 5563 of input and output. Details at 5564 5565 http://bugzilla.remotesensing.org/show_bug.cgi?id=272 5566 55672003-02-03 Frank Warmerdam <[email protected]> 5568 5569 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg 5570 library so that we can check if there is already any tile/strip data 5571 before deciding between creating a compressor or a decompressor. 5572 55732003-01-31 Frank Warmerdam <[email protected]> 5574 5575 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is 5576 a pre-existing compressed image. That is, image writing to 5577 pre-existing compressed images is not allowed. 5578 5579 * libtiff/tif_open.c: Removed error if opening a compressed file 5580 in update mode. 5581 5582 http://bugzilla.remotesensing.org/show_bug.cgi?id=198 5583 55842003-01-31 Andrey Kiselev <[email protected]> 5585 5586 * config.guess, config.sub: Updated to recent upstream versions. 5587 55882003-01-15 Frank Warmerdam <[email protected]> 5589 5590 * cut 3.6.0 Beta release. 5591 55922002-12-20 Andrey Kiselev <[email protected]> 5593 5594 * tools/fax2ps.c, man/fax2ps.1: Page size was determined 5595 in wrong way as per bug 5596 5597 http://bugzilla.remotesensing.org/show_bug.cgi?id=239 5598 55992002-12-17 Frank Warmerdam <[email protected]> 5600 5601 * libtiff/tif_dirread.c: Allow wrong sized arrays in 5602 TIFFFetchStripThing(). 5603 5604 http://bugzilla.remotesensing.org/show_bug.cgi?id=49 5605 56062002-12-02 Frank Warmerdam <[email protected]> 5607 5608 * libtiff/tif_dir.c: fix problem with test on td_customValueCount. 5609 Was using realloc even first time. Fix by Igor Venevtsev. 5610 56112002-11-30 Frank Warmerdam <[email protected]> 5612 5613 * libtiff/tif_dir.c: fixed bug with resetting an existing custom 5614 field value. 5615 5616 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom" 5617 tags in TIFFVGetField() ... added missing break. 5618 56192002-10-14 Frank Warmerdam <[email protected]> 5620 5621 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make 5622 the scanline buffer long enough when writing rgb triplets. 5623 The scanline needs to be 3 X the number of dots or else it will 5624 contain an incomplete triplet and programs that try to separate 5625 the eps by redefining the colorimage operator will get messed up. 5626 Patch supplied by William Bader. 5627 5628 * Makefile.in: added tif_extension.c to file list as per 5629 http://bugzilla.remotesensing.org/show_bug.cgi?id=218. 5630 56312002-10-11 Andrey Kiselev <[email protected]> 5632 5633 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for 5634 large files (>2GiB) supporting. New option in the config.site: 5635 LARGEFILE="yes". Should be enough for I/O of the large files. 5636 56372002-10-10 Frank Warmerdam <[email protected]> 5638 5639 * libtiff/html/v3.6.0.html: new release notes. 5640 5641 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email 5642 link for Andrey. Pointer to v3.6.0.html. 5643 5644 * libtiff/Makefile.in: added direct rule for tiffvers.h for release. 5645 56462002-10-07 Andrey Kiselev <[email protected]> 5647 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken 5648 (thanks, Sebastian!). New switches: 5649 -b # for a bottom margin of # inches 5650 -c center image 5651 -l # for a left margin of # inches 5652 -r rotate the image by 180 degrees 5653 New features merged with code for shrinking/overlapping. 5654 Previously added -c and -n switches (for overriding PS units) renamed 5655 in -x and -y respectively. 5656 5657 http://bugzilla.remotesensing.org/show_bug.cgi?id=200 5658 5659 * html/man/*.html: Updated from actual manual pages. 5660 56612002-10-06 Frank Warmerdam <[email protected]> 5662 5663 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong 5664 size on windows. Use #define boolean hack. 5665 5666 http://bugzilla.remotesensing.org/show_bug.cgi?id=188 5667 5668 * libtiff/tiff.h: Don't do special type handling in tiff.h unless 5669 USING_VISUALAGE is defined. 5670 5671 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5672 56732002-10-03 Frank Warmerdam <[email protected]> 5674 5675 * libtiff/tiff.h: added COMPRESSION_JP2000. 5676 56772002-10-02 Andrey Kiselev <[email protected]> 5678 5679 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays 5680 by the TIFFFetchByteArray() function. Should finally resolve 5681 5682 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5683 5684 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT 5685 5686 * html/Makefile.in: New targets added: html and groffhtml for 5687 producing HTML representations of the manual pages automatically. 5688 html target uses man2html tool, groffhtml uses groff tool. 5689 56902002-09-29 Frank Warmerdam <[email protected]> 5691 5692 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support 5693 from John H. DuBois III. 5694 56952002-09-15 Andrey Kiselev <[email protected]> 5696 5697 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added 5698 manual page for raw2tiff(1) tool. 5699 57002002-09-12 Andrey Kiselev <[email protected]> 5701 5702 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to 5703 the tiffio.h header file. 5704 5705 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added 5706 manual page for TIFFDataWidth() function 5707 57082002-09-08 Frank Warmerdam <[email protected]> 5709 5710 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair() 5711 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196. 5712 5713 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments 5714 since we are unable to properly include the amount to skip. 5715 5716 http://bugzilla.remotesensing.org/show_bug.cgi?id=80 5717 57182002-09-02 Andrey Kiselev <[email protected]> 5719 5720 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching 5721 in TIFFFetchByteArray(). Problem described at 5722 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5723 57242002-08-22 Andrey Kiselev <[email protected]> 5725 5726 * /libtiff/tif_dirinfo.c: Further additions to free custom fields 5727 in _TIFFSetupFieldInfo() function. 5728 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details. 5729 5730 * /libtiff/tif_lzw.c: Additional consistency checking added in 5731 LZWDecode() and LZWDecodeCompat(). 5732 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190 5733 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5734 5735 * /libtiff/tif_lzw.c: 5736 Added check for valid code lengths in LZWDecode() and 5737 LZWDecodeCompat(). Fixes 5738 http://bugzilla.remotesensing.org/show_bug.cgi?id=115 5739 57402002-08-16 Andrey Kiselev <[email protected]> 5741 5742 * /libtiff/{Makefile.vc, libtiff.def}: 5743 Missed declarations added. 5744 57452002-08-15 Frank Warmerdam <[email protected]> 5746 5747 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the 5748 return code from the underlying pick function. 5749 5750 http://bugzilla.remotesensing.org/show_bug.cgi?id=177 5751 5752 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap 5753 with FIELD_CUSTOM as mentioned in bug 169. 5754 5755 * tif_close.c: added logic to free dynamically created anonymous 5756 field definitions to correct a small memory leak. 5757 5758 http://bugzilla.remotesensing.org/show_bug.cgi?id=169 5759 57602002-08-10 Andrey Kiselev <[email protected]> 5761 5762 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}: 5763 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet. 5764 57652002-07-31 Frank Warmerdam <[email protected]> 5766 5767 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in 5768 JPEGDecode() as per bugzilla bug (issue 1): 5769 5770 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5771 5772 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to 5773 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't 5774 present in the tiff tags. 5775 5776 http://bugzilla.remotesensing.org/show_bug.cgi?id=168 5777 5778 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and 5779 TIFFWriteScanline() now set tif_row explicitly in case the codec has 5780 fooled with the value. 5781 5782 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5783 57842002-06-22 Andrey Kiselev <[email protected]> 5785 5786 * /tools/tiff2ps.c: Added workaround for some software that may crash 5787 when last strip of image contains fewer number of scanlines than 5788 specified by the `/Height' variable. See 5789 http://bugzilla.remotesensing.org/show_bug.cgi?id=164 5790 for explanation. 5791 57922002-06-21 Andrey Kiselev <[email protected]> 5793 5794 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility: 5795 splitting long images in several pages. See 5796 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation. 5797 Patch granted by John Williams <[email protected]>. 5798 57992002-06-11 Frank Warmerdam <[email protected]> 5800 5801 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new 5802 Tiffile.cpp example of converting TIFF files into a DIB on Win32. 5803 This one is described in: 5804 5805 http://bugzilla.remotesensing.org/show_bug.cgi?id=143 5806 5807 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at: 5808 5809 http://bugzilla.remotesensing.org/show_bug.cgi?id=156 5810 58112002-05-10 Andrey Kiselev <[email protected]> 5812 5813 * tools/tiff2ps: New commandline switches to override resolution 5814 units obtained from the input file. Closes 5815 http://bugzilla.remotesensing.org/show_bug.cgi?id=131 5816 58172002-04-26 Andrey Kiselev <[email protected]> 5818 5819 * libtiff/libtiff.def: Added missed declaration. 5820 58212002-04-22 Andrey Kiselev <[email protected]> 5822 5823 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff. 5824 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125 5825 58262002-04-20 Andrey Kiselev <[email protected]> 5827 5828 * libtiff/tif_open.c: Pointers to custom procedures 5829 in TIFFClientOpen() are checked to be not NULL-pointers. 5830 58312002-04-18 Andrey Kiselev <[email protected]> 5832 5833 * libtiff/libtiff.def: Added missed declarations. 5834 5835 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure. 5836 58372002-04-16 Andrey Kiselev <[email protected]> 5838 5839 * libtiff/tif_lzw.c: Additional checks for data integrity introduced. 5840 Should finally close 5841 http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5842 58432002-04-10 Andrey Kiselev <[email protected]> 5844 5845 * tools/tiff2ps: Division by zero fixed. 5846 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88 5847 58482002-04-09 Andrey Kiselev <[email protected]> 5849 5850 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h: 5851 TIFFCheckpointDirectory() routine added. 5852 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124 5853 5854 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description 5855 for the new function. 5856 58572002-04-08 Andrey Kiselev <[email protected]> 5858 5859 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced 5860 additional members tif->tif_decodestatus and tif->tif_encodestatus 5861 for correct handling of unconfigured codecs (we should not try to read 5862 data or to define data size without correct codecs). 5863 5864 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK 5865 changed. Now it has used tif->tif_decodestatus and 5866 tif->tif_encodestatus. 5867 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in 5868 case of __cvs_8.tif test image). 5869 5870 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in 5871 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced. 5872 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case 5873 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif. 5874 58752002-04-04 Andrey Kiselev <[email protected]> 5876 5877 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat 5878 replaced by warnings. Now libtiff should read corrupted LZW-compressed 5879 files by skipping bad strips. 5880 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5881 58822002-04-03 Frank Warmerdam <[email protected]> 5883 5884 * libtiff/tif_dirwrite.c: Removed some dead code. 5885 5886 * libtiff/*: Cleanup some warnings. 5887 5888 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField() 5889 for variable length FIELD_CUSTOM values. Was int * but should be 5890 u_short *. 5891 58922002-04-01 Andrey Kiselev <[email protected]> 5893 5894 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp 5895 utility (at cpStripToTile routine). 5896 58972002-03-27 Frank Warmerdam <[email protected]> 5898 5899 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func. 5900 5901 http://bugzilla.remotesensing.org/show_bug.cgi?id=111 5902 5903 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with 5904 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE). 5905 5906 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so 5907 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example. 5908 59092002-03-26 Dwight Kelly <[email protected]> 5910 5911 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5912 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined 5913 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec 5914 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes: 5915 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and 5916 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9). 5917 59182002-03-26 Andrey Kiselev <[email protected]> 5919 5920 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile 5921 now also uses TIFFRGBAImageOK before reading. This is additional fix 5922 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5923 59242002-03-25 Andrey Kiselev <[email protected]> 5925 5926 * libtiff/: tif_getimage.c: Additional check for supported 5927 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses 5928 TIFFRGBAImageOK before reading. 5929 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5930 59312002-03-15 Andrey Kiselev <[email protected]> 5932 5933 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5934 tif_dirwrite.c: Added routine TIFFDataWidth for detrmining 5935 TIFFDataType sizes instead of working with tiffDataWidth array 5936 directly. Should prevent out-of-borders bugs in case of unknown or 5937 broken data types. EstimateStripByteCounts routine modified, so it 5938 won't work when tags with uknown sizes founded. 5939 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109 5940 59412002-03-13 Andrey Kiselev <[email protected]> 5942 5943 * libtiff/tif_getimage.c: Added support for correct handling 5944 `Orientation' tag in gtTileContig. Should be added in other gt* 5945 functions as well, but I have not images for testing yet. Partially 5946 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5947 59482002-03-10 Andrey Kiselev <[email protected]> 5949 5950 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to 5951 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION, 5952 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes 5953 http://bugzilla.remotesensing.org/show_bug.cgi?id=99 5954 59552002-03-08 Andrey Kiselev <[email protected]> 5956 5957 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not 5958 be stripped when installing, utility binaries will do. Closes 5959 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 5960 59612002-02-28 Frank Warmerdam <[email protected]> 5962 5963 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT. 5964 5965 * man/libtiff.3t: added copyright tag info. 5966 59672002-02-11 Frank Warmerdam <[email protected]> 5968 5969 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__. 5970 5971 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 5972 5973 * man/Makefile.in: Patch DESTDIR handling 5974 5975 http://bugzilla.remotesensing.org/show_bug.cgi?id=95 5976 5977 * configure: OpenBSD changes for Sparc64 and DSO version. 5978 5979 http://bugzilla.remotesensing.org/show_bug.cgi?id=96 5980 59812002-02-05 Frank Warmerdam <[email protected]> 5982 5983 * config.site/configure: added support for OJPEG=yes option to enable 5984 OJPEG support from config.site. 5985 59862002-01-27 Frank Warmerdam <[email protected]> 5987 5988 * html/document.html: fixed links for TIFf 6 docs. 5989 59902002-01-18 Frank Warmerdam <[email protected]> 5991 5992 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config. 5993 5994 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the 5995 decodestrip function returns anything not greater than zero as per 5996 http://bugzilla.remotesensing.org/show_bug.cgi?id=97 5997 5998 * configure: Modify CheckForBigEndian so it can work in a cross 5999 compiled situation. 6000 60012002-01-16 Frank Warmerdam <[email protected]> 6002 6003 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list. 6004 6005 * tools/tiffset.c: fix bug in error reporting. 6006 6007 * tools/tiffcp.c: fix several warnings that show up with -Wall. 6008 60092002-01-04 Frank Warmerdam <[email protected]> 6010 6011 * libtiff/tif_jpeg.c: fixed computation of segment_width for 6012 tiles files to avoid error about it not matching the 6013 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile 6014 size.") for ITIFF files. Apparently the problem was incorporated since 6015 3.5.5, presumably during the OJPEG/JPEG work recently. 6016 60172001-12-15 Frank Warmerdam <[email protected]> 6018 6019 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1. 6020 6021 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 6022 6023 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1 6024 (defined in tiffconf.h - 1 by default) then the RGBA interface 6025 will assume that a fourth extra sample is ASSOCALPHA if the 6026 EXTRASAMPLE value isn't set for it. This changes the behaviour of 6027 the library, but makes it work better with RGBA files produced by 6028 lots of applications that don't mark the alpha values properly. 6029 6030 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 6031 http://bugzilla.remotesensing.org/show_bug.cgi?id=65 6032 60332001-12-12 Frank Warmerdam <[email protected]> 6034 6035 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to 6036 override those from tiff directory. This makes this work with 6037 ImageGear generated files. 6038 60392001-12-07 Frank Warmerdam <[email protected]> 6040 6041 * html/Makefile.in: added missing images per bug 92. 6042 6043 * port/Makefile.in: fixed clean target per bug 92. 6044 60452001-11-28 Frank Warmerdam <[email protected]> 6046 6047 * Reissue 3.5.7 release. 6048 6049 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be 6050 YYYYMMDD so that it is increasing over time. 6051 6052 * Makefile.in: Ensure that tiffvers.h is regenerated in the 6053 make release target. 6054 6055 * Makefile.in: added libtiff/tiffvers.h to the release file list. 6056 60572001-11-23 Frank Warmerdam <[email protected]> 6058 6059 * added html/v3.5.7.html, updated html/index.html. 6060 6061 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}. 6062 60632001-11-15 Frank Warmerdam <[email protected]> 6064 6065 * configure: fixed test for -lm. 6066 60672001-11-02 Frank Warmerdam <[email protected]> 6068 6069 * Added PHOTOMETRIC_ITULAB as per bug 90. 6070 6071 http://bugzilla.remotesensing.org/show_bug.cgi?id=90 6072 60732001-10-10 Frank Warmerdam <[email protected]> 6074 6075 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4, 6076 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases 6077 in keeping with TIFF 6.0 standard in tiff.h 6078 6079 http://bugzilla.remotesensing.org/show_bug.cgi?id=83 6080 60812001-09-26 Frank Warmerdam <[email protected]> 6082 6083 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function. 6084 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory. 6085 60862001-09-24 Frank Warmerdam <[email protected]> 6087 6088 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug. 6089 6090 http://bugzilla.remotesensing.org/show_bug.cgi?id=78 6091 6092 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an 6093 error about LZW not being available. 6094 6095 * libtiff/tif_dir.c: propagate failure to initialize compression 6096 back from TIFFSetField() as an error status, so applications can 6097 detect failure. 6098 6099 * libtiff/tif_dir.c: removed the auto replacement of 6100 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField(). 6101 6102 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile 6103 from CVS as they are all supposed to be auto-generated by configure. 6104 61052001-09-22 Frank Warmerdam <[email protected]> 6106 6107 * libtiff/tif_ojpeg.c: new update from Scott. 6108 61092001-09-09 Frank Warmerdam <[email protected]> 6110 6111 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to 6112 always use the "safe" version, even if there is a very slight 6113 cost in performance. 6114 6115 http://bugzilla.remotesensing.org/show_bug.cgi?id=54 6116 6117 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@ 6118 in two places. 6119 6120 * libtiff/tif_getimage.c: Fixed problem with reading strips or 6121 tiles that don't start on a tile boundary. Fix contributed by 6122 Josep Vallverdu (from HP), and further described in bug 47. 6123 6124 http://bugzilla.remotesensing.org/show_bug.cgi?id=47 6125 6126 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support. 6127 6128 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott. 6129 61302001-09-06 Frank Warmerdam <[email protected]> 6131 6132 * libtiff/tif_packbits.c: fixed memory overrun error. 6133 6134 http://bugzilla.remotesensing.org/show_bug.cgi?id=77 6135 61362001-08-31 Frank Warmerdam <[email protected]> 6137 6138 * libtiff/tif_getimage.c: relax handling of contig case where 6139 there are extra samples that are supposed to be ignored. This 6140 should now work for 8bit greyscale or palletted images. 6141 6142 http://bugzilla.remotesensing.org/show_bug.cgi?id=75 6143 61442001-08-28 Frank Warmerdam <[email protected]> 6145 6146 * libtiff/tif_getimage.c: Don't complain for CMYK (separated) 6147 images with more than four samples per pixel. See: 6148 6149 http://bugzilla.remotesensing.org/show_bug.cgi?id=73 6150 61512001-08-10 Frank Warmerdam <[email protected]> 6152 6153 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy() 6154 in TIFFReadRGBATile() to avoid issues in cases of overlapping 6155 buffers. See Bug 69 in Bugzilla. 6156 6157 http://bugzilla.remotesensing.org/show_bug.cgi?id=69 6158 6159 * tools/tiff2rgba.c: fixed getopt() call so that -b works again. 6160 61612001-08-09 Frank Warmerdam <[email protected]> 6162 6163 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__ 6164 when checking for 64 bit architectures as per bugzilla bug 67. 6165 61662001-07-27 Frank Warmerdam <[email protected]> 6167 6168 * man/Makefile.in: add TIFFClientOpen link as per debian submitted 6169 bug 66. 6170 61712001-07-20 Frank Warmerdam <[email protected]> 6172 6173 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H 6174 has been included. 6175 61762001-07-19 Frank Warmerdam <[email protected]> 6177 6178 * libtiff/tif_open.c: Seek back to zero after failed read, 6179 before writing header. 6180 61812001-07-18 Frank Warmerdam <[email protected]> 6182 6183 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors 6184 much better. Now depends on having patched libjpeg as per 6185 patch in contrib/ojpeg/*. 6186 61872001-07-17 Frank Warmerdam <[email protected]> 6188 6189 * */Makefile.in: added DESTDIR support. 6190 6191 http://bugzilla.remotesensing.org/show_bug.cgi?id=60 6192 61932001-07-16 Frank Warmerdam <[email protected]> 6194 6195 * configure, libtiff/Makefile.in: applied OpenBSD patches 6196 as per: 6197 6198 http://bugzilla.remotesensing.org/show_bug.cgi?id=61 6199 62002001-06-28 Frank Warmerdam <[email protected]> 6201 6202 * libtiff/tif_getimage.c: Fixed so that failure is properly 6203 reported by gtTileContig, gtStripContig, gtTileSeparate and 6204 gtStripSeparate. 6205 6206 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51 6207 6208 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare. 6209 Updated bug section of tiffcmp.1 to note tiled file issues. 6210 6211 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53 6212 62132001-06-22 Frank Warmerdam <[email protected]> 6214 6215 * configure: Changes for DSO generation on AIX provided by 6216 John Marquart <[email protected]>. 6217 6218 * configure, libtiff/Makeifle.in: Modified to build DSOs properly 6219 on Darwin thanks to Robert Krajewski ([email protected]) and 6220 Keisuke Fujii ([email protected]). 6221 62222001-06-13 Frank Warmerdam <[email protected]> 6223 6224 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component. 6225 6226 * man/tiff2rgba.1: new 6227 62282001-05-22 Frank Warmerdam <[email protected]> 6229 6230 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in. 6231 62322001-05-13 Frank Warmerdam <[email protected]> 6233 6234 * libtiff/tools/thumbnail.c: changed default output compression 6235 to packbits from LZW since LZW isn't generally available. 6236 62372001-05-12 Frank Warmerdam <[email protected]> 6238 6239 * libtiff/tif_ojpeg.c: New. 6240 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related 6241 to OJPEG support. 6242 6243 Scott Marovich <[email protected]> supplied OJPEG support. 6244 62452001-05-11 Frank Warmerdam <[email protected]> 6246 6247 * tiff.h: removed, it duplicates libtiff/tiff.h. 6248 62492001-05-08 Frank Warmerdam <[email protected]> 6250 6251 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to 6252 ensure everything is in order. 6253 6254 * libtiff/libtiff.def: added TIFFCreateDirectory and 6255 TIFFDefaultStripSize as per: 6256 6257 http://bugzilla.remotesensing.org/show_bug.cgi?id=46 6258 62592001-05-02 Frank Warmerdam <[email protected]> 6260 6261 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for 6262 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to 6263 force use of uint32 counts instead of short counts. 6264 6265 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the 6266 case of writing TIFF_BYTE/TIFF_SBYTE fields. 6267 6268 http://bugzilla.remotesensing.org/show_bug.cgi?id=43 6269 62702001-05-01 Frank Warmerdam <[email protected]> 6271 6272 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per 6273 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44 6274 62752001-04-05 Frank Warmerdam <[email protected]> 6276 6277 * tiffio.h: removed C++ style comment. 6278 6279 * configure: fixed up SCRIPT_SH/SHELL handling. 6280 6281 * Makefile.in: Fixed SCRIPT_SH/SHELL handling. 6282 6283 * config.guess: documented more variables as per bug 40. 6284 62852001-04-03 Frank Warmerdam <[email protected]> 6286 6287 * configure, *Makefile.in: Various changes to improve configuration 6288 for HP/UX specifically, and also in general. They include: 6289 - Try to handle /usr/bin/sh instead of /bin/sh where necessary. 6290 - Upgrade to HP/UX 10.x+ compiler, linker and dso options. 6291 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP 6292 - Use -${MAKEFLAGS} in sub makes from makefiles. 6293 6294 http://bugzilla.remotesensing.org/show_bug.cgi?id=40 6295 62962001-04-02 Frank Warmerdam <[email protected]> 6297 6298 * libtiff/tiff.h: Applied hac to try and resolve the problem 6299 with the inttypes.h include file on AIX. 6300 6301 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6302 6303 * VERSION: update to 3.5.7 beta in preparation for release. 6304 6305 * configure/config.site: modified to check if -lm is needed for 6306 MACHDEPLIBS if not supplied by config.site. Needed for Darwin. 6307 6308 * config.guess: updated wholesale to an FSF version apparently 6309 from 1998 (as opposed to 1994). This is mainly inspired by 6310 providing for MacOS X support. 6311 63122001-03-29 Frank Warmerdam <[email protected]> 6313 6314 * configure, Makefile.in, etc: added support for OPTIMIZER being 6315 set from config.site. 6316 63172001-03-28 Frank Warmerdam <[email protected]> 6318 6319 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix: 6320 6321 Here's a fix for fax2ps that corrects behaviour for non-Letter paper 6322 sizes. It fixes two problems: 6323 6324 Without scaling (-S) the fax is now centered on the page size specified 6325 with -H and/or -W. Before, fax2ps was using an obscure and practially 6326 useless algorithm to allocate the image relative to Letter sized paper 6327 which sometime sled to useless whitespace on the paper, while at the 6328 same time cutting of the faxes printable area at the opposite border. 6329 6330 Second, scaling now preserves aspect ratio, which makes unusual faxes 6331 (in particular short ones) print properly. 6332 6333 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35 6334 6335 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by 6336 Bruce A. Mallett. See check message for detailed information 6337 on all the changes, including a faster encoder, fixes for level 6338 2 PostScript, and support for the imagemask operator. 6339 63402001-03-27 Frank Warmerdam <[email protected]> 6341 6342 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to 6343 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX. 6344 6345 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6346 63472001-03-16 Frank Warmerdam <[email protected]> 6348 6349 * tif_dirinfo.c: moved definition of copyright tag in field list. 6350 Apparently they have to be in sorted order by tag id. 6351 63522001-03-13 Frank Warmerdam <[email protected]> 6353 6354 * tif_getimage.c: Added support for 16bit minisblack/miniswhite 6355 images in RGBA interface. 6356 63572001-03-02 Frank Warmerdam <[email protected]> 6358 6359 * Added TIFFTAG_COPYRIGHT support. 6360 63612001-02-19 Frank Warmerdam <[email protected]> 6362 6363 * Brent Roman contributed updated tiffcp utility (and tiffcp.1) 6364 with support for extracting subimages with the ,n syntax, and also 6365 adding the -b bias removal flag. 6366 63672001-02-16 Frank Warmerdam <[email protected]> 6368 6369 * libtiff/libtiff.def: Brent Roman submitted new version adding 6370 serveral missing entry points. 6371 6372 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS. 6373 Some sort of weird VMS thing. 6374 6375 http://bugzilla.remotesensing.org/show_bug.cgi?id=31 6376 6377 * tif_luv.c/tiff.h/tiffio.h: 6378 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward 6379 ([email protected]). He writes: 6380 6381 1) I improved the gamut-mapping function in tif_luv.c for imaginary 6382 colors, because some images were being super-saturated on the input 6383 side and this resulted in some strange color shifts in the output. 6384 6385 2) I added a psuedotag in tiff.h to control random dithering during 6386 LogLuv encoding. This is turned off by default for 32-bit LogLuv and 6387 on for 24-bit LogLuv output. Dithering improves the average color 6388 accuracy over the image. 6389 6390 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in 6391 tiffio.h, to expose internal routines for converting between LogLuv and 6392 XYZ coordinates. This is helpful for writing more efficient, 6393 specialized conversion routines, especially for reading LogLuv files. 6394 6395 Changes applied with minor edits. 6396 63972001-01-23 Frank Warmerdam <[email protected]> 6398 6399 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember 6400 whether we are encoding or decoding. This is to ensure graceful 6401 recovery if TIFFClientOpen() discovers an attempt to open a compressed 6402 file for "r+" access, and subsequently close it, as it resets the 6403 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the 6404 compressor's concept of whether it is in encode or decode mode. 6405 64062001-01-08 Mike Welles <[email protected]> 6407 6408 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip 6409 64102001-01-07 Frank Warmerdam <[email protected]> 6411 6412 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet() 6413 as per bug report by Patrick Connor. 6414 64152000-12-28 Frank Warmerdam <[email protected]> 6416 6417 * Added RELEASE-DATE file to release file list. 6418 6419 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h. 6420 64212000-12-22 Mike Welles <[email protected]> 6422 * added link to CVS mirror from index.html 6423 6424 * updated html/internals.html to note that LZW compression is 6425 not supported by default. 6426 64272000-12-22 Frank Warmerdam <[email protected]> 6428 6429 * updated html/libtiff.html to not point at Niles' old JPL web site 6430 for the man pages, point at www.libtiff.org. 6431 64322000-12-21 Frank Warmerdam <[email protected]> 6433 6434 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by 6435 Leonard Rosenthol <[email protected]>. May interfere 6436 with correct building on older systems. If so, please let me know. 6437 64382000-12-19 Mike Welles <[email protected]> 6439 6440 * Took out LZW Encoding from tif_lzw.c 6441 6442 * Created HOWTO-RELEASE 6443 6444 * Created html/v3.5.6.html 6445 6446 * updated index.html 6447 64482000-12-01 Frank Warmerdam <[email protected]> 6449 6450 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h. 6451 Patches supplied by Frank Cringle <[email protected]> 6452 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif 6453 64542000-11-24 Frank Warmerdam <[email protected]> 6455 6456 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private 6457 target so that the private headers required by libgeotiff can be 6458 installed with the others. They are not installed by default. 6459 6460 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso 6461 targets so libtiff.so will be built with an explicit dependency 6462 on libm.so. 6463 6464 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to 6465 libtiff.so.3.5.5. 6466 6467 * libtiff/Makefile.in & configure: Remove all references to the ALPHA 6468 file, or ALPHA version logic. Added stuff about DIST_POINT in 6469 place of DIST_TYPE and the alpha release number stuff. 6470 64712000-11-22 Frank Warmerdam <[email protected]> 6472 6473 * I have applied a patch from Steffen Moeller <[email protected]> to 6474 the configure script so that it now accepts the --prefix, and 6475 --exec-prefix directives. 6476 64772000-11-13 Frank Warmerdam <warmerda@cs46980-c> 6478 6479 * I have made a variety of modifications in an effort to ensure the 6480 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE 6481 file which seems to be updated regularly. 6482 6483 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in 6484 version include file. 6485 o renamed version.h to tiffvers.h because we now have to install it 6486 with the public libtiff include files. 6487 o include tiffvers.h in tiffio.h. 6488 o updated tif_version.c to use tiffvers.h. 6489 o Updated Makefile.in accordingly. 6490 6491 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25 6492 I have updated the win32 detection rules in tiffcomp.h. 6493 64942000-10-20 Frank Warmerdam <warmerda@cs46980-c> 6495 6496 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which 6497 the strip/tile width and height aren't multiples of the sampling size. 6498 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20 6499 Some patches from Rick LaMont of Dot C Software. 6500 6501 * Modified tif_packbits.c encoder to avoid compressing more 6502 data than provided if rowsize doesn't factor into provided data 6503 (such as occurs for YCbCr). 6504 65052000-10-19 Frank Warmerdam <warmerda@cs46980-c> 6506 6507 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical 6508 roundup if rows_per_strip not a multiple of vertical sample size. 6509 65102000-10-16 Frank Warmerdam <warmerda@cs46980-c> 6511 6512 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory 6513 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6514 from [email protected]. 6515 6516 * Modified tif_packbits.c decoding to avoid overrunning the 6517 output buffer, and to issue a warning if data needs to be 6518 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6519 65202000-10-12 Frank Warmerdam <warmerda@cs46980-c> 6521 6522 * Modified tiff2bw to ensure portions add to 100%, and that 6523 white is properly recovered. 6524 6525 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15 6526 Patch c/o Stanislav Brabec <[email protected]> 6527 65282000-09-30 Frank Warmerdam <warmerda@cs46980-c> 6529 6530 * Modified TIFFClientOpen() to emit an error on an attempt to 6531 open a comperessed file for update (O_RDWR/r+) access. This is 6532 because the compressor/decompressor code gets very confused when 6533 the mode is O_RDWR, assuming this means writing only. See 6534 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13 6535 65362000-09-27 Frank Warmerdam <warmerda@cs46980-c> 6537 6538 * Added GNULDdso target an`d switched linux and freebsd to use it. 6539 65402000-09-26 Frank Warmerdam <warmerda@cs46980-c> 6541 6542 * Applied patch for 0x0000 sequences in tif_fax3.h's definition 6543 of EXPAND1D() as per bug 11 (from Roman). 6544 65452000-09-25 Frank Warmerdam <warmerda@cs46980-c> 6546 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve 6547 cygwin compatibility. 6548 6549 * Applied patch from Roman Shpount to tif_fax3.c. This seems to 6550 be a proper fix to the buffer sizing problem. See 6551 http://bugzilla.remotesensing.org/show_bug.cgi?id=11 6552 6553 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without 6554 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10 6555 Thanks to Nick Lamb <[email protected]> for reporting the 6556 bug and proving the patch. 6557 65582000-09-18 Frank Warmerdam <warmerda@cs46980-c> 6559 6560 * Fixed tif_jpeg.c so avoid destroying the decompressor before 6561 we are done access data thanks to bug report from: 6562 Michael Eckstein <[email protected]>. 6563 6564 * Reverted tif_flush change. 6565 65662000-09-14 Frank Warmerdam <warmerda@cs46980-c> 6567 6568 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an 6569 error when TIFF_BEENWRITING is not set. This ensures that the 6570 directory contents can still be flushed by TIFFFlush(). 6571 65722000-08-14 Frank Warmerdam <[email protected]> 6573 6574 * tif_open.c: Don't set MMAP for O_RDWR files. 6575 6576 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY 6577 so that files opened for update can be strip chopped too. 6578 6579 * tif_read.c: fixed up bug with files missing rowsperstrip and 6580 the strips per separation fix done a few weeks ago. 6581 65822000-07-17 Frank Warmerdam <warmerda@cs46980-c> 6583 6584 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and 6585 SAMPLEFORMAT_COMPLEXINT. 6586 65872000-07-13 Mike Welles <[email protected]> 6588 6589 * index.html, bugs.html: added bugzilla info. 6590 65912000-07-12 Frank Warmerdam <[email protected]> 6592 6593 * tif_read.c: fix subtle bug with determining the number of 6594 rows for strips that are the last strip in a separation but 6595 not the last strip of all in TIFFReadEncodedStrip(). 6596 6597 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by 6598 Peter Skarpetis <[email protected]> 6599 66002000-06-15 Frank Warmerdam <[email protected]> 6601 6602 * Modified tiffio.h logic with regard to including windows.h. It 6603 won't include it when building with __CYGWIN__. 6604 66052000-05-11 Frank Warmerdam <warmerda@cs46980-c> 6606 6607 * README: update to mention www.libtiff.org, don't list Sam's old 6608 email address. 6609 6610 * configure: Fixed DSO test for Linux as per patch from 6611 Jan Van Buggenhout <[email protected]>. 6612 66132000-04-21 Frank Warmerdam <[email protected]> 6614 6615 * libtiff/tif_dirread.c: Don't use estimate strip byte count for 6616 one tile/strip images with an offset, and byte count of zero. These 6617 could be "unpopulated" images. 6618 66192000-04-18 Frank Warmerdam <[email protected]> 6620 6621 * contrib/addtiffo: Added "averaging" resampling option. 6622 6623 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT. 6624 6625Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]> 6626 6627 * tools/Makefile.in: Modified to install properly on SGI. 6628 66292000-04-12 Mike Welles <[email protected]> 6630 * configure: Fixed stupid mistake in libc6 test on Linux 6631 66322000-04-04 Mike Welles <[email protected]> 6633 * tif_win32.c: Applied patch to fix overreads and ovverwrites 6634 caught by BoundsChecker. From Arvan Pritchard 6635 <[email protected]> (untested). 6636 6637 * tif_getimage.c: Applied patch to silence VC6 warnings. From 6638 Arvan Pritchard <[email protected]> 6639 6640 * tif_lzw.c: Applied patch to silence VC6 warnings. From 6641 Arvan Pritchard <[email protected]> 6642 66432000-03-28 Frank Warmerdam <warmerda@cs46980-c> 6644 6645 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss. 6646 66472000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release *** 6648 6649 * fax2ps: Fixed mixup of width and height in bounding box statement 6650 as per submission by Nalin Dahyabhai <[email protected]>. 6651 66522000-03-27 Mike Welles <[email protected]> 6653 6654 * fax2ps: Modified printruns to take uint32 instead of uint16. 6655 Patch courtesy of Bernt Herd <[email protected]> 6656 66572000-03-20 Mike Welles <[email protected]> 6658 6659 * configure: added test for libc6 for linux targets. Bug reported by 6660 Stanislav Brabec <[email protected]> 6661 6662 * Added 3.5 docs to html/Makefile.in. 6663 Thanks to Stanislav Brabec <[email protected]> 6664 6665 * configure: fixed bugs in sed scripts 6666 (applied sed script s:/@:s;@:;s:/s;;:;: to configure). 6667 fix submitted to Stanislav Brabec <[email protected]> 6668 6669 * tools/iptcutil was not in files list, and wasn't being 6670 added to tar archive. Updated Makefile.in. 6671 66722000-03-17 Frank Warmerdam <warmerda@cs46980-c> 6673 6674 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32 6675 conversion for the run arrays. 6676 66772000-03-03 Frank Warmerdam <[email protected]> 6678 6679 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of 6680 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c. 6681 66822000-03-02 Frank Warmerdam <[email protected]> 6683 6684 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c. 6685 6686 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger 6687 to avoid overruns encountered with frle_bug.tif. 6688 6689Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]> 6690 6691 * Fixed tools/tiffcmp so that stopondiff testing works. 6692 Patch care of Joseph Orost <[email protected]>. 6693 66942000-01-28 <warmerda@CS46980-B> 6695 6696 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is 6697 set to 1, and added default (off) setting in tiffconf.h. This 6698 should eventually be set by the configure script somehow. 6699 6700 The original work on all these 2-4GB changes was done by 6701 Peter Smith ([email protected]). 6702 6703 * Modified tif_win32.c to support 2-4GB seeks. 6704 6705 * tentatively changed toff_t to be unsigned instead of signed to 6706 facilitate support for 2-4GB files. 6707 6708 * Updated a variety of files to use toff_t. Fixed some mixups 6709 between toff_t and tsize_t. 6710 6711Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]> 6712 6713 * Largely reimplemented contrib/addtiffo to avoid temp files, 6714 updating the TIFF file in place. Fixed a few other bugs to. 6715 6716 * Set tif_rawdatasize to zero when freeing raw data buffer in 6717 TIFFWriteDirectory(). 6718 6719 * Enabled "REWRITE_HACK" in tif_write.c by default. 6720 6721 * Fix bug in tif_write.c when switching between reading one directory 6722 and writing to another. 6723 6724 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory() 6725 6726Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]> 6727 6728 * Added TIFFmemory(3t) functions to libtiff.def. 6729 6730Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]> 6731 6732 * Added libtiff/libtiff.def to TIFFILES distribution list. 6733 6734Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]> 6735 6736 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit). 6737 6738 * Altered descriptions in tools to reflect "by default" lzw not supported 6739 6740 * Updated index.html to note lzw compression kit. 6741 6742Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]> 6743 6744 * Added fax3sm_winnt.c to distribution list in Makefile.in. 6745 6746Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release *** 6747 6748 * Aadded Pixar tag support. Contributed by Phil Beffery <[email protected]> 6749 6750 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice 6751 when LZW compression invoked. 6752 6753 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions 6754 in tools to reflect removal of LZW compression 6755 6756Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]> 6757 6758 * Fixed bug that caused LZW (non) compression to segfault. Added 6759 warning about LZW compression removed being removed, and why. 6760 6761 * Added nostrip to install in tools/Makefile.in so that debugging 6762 symbols are kept. 6763 6764Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]> 6765 6766 * Added patch from Ivo Penzar <[email protected]>, 6767 supporting Adobe ZIP deflate. Untested. 6768 6769Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]> 6770 6771 * Made Packbits the default compression in tools/tiff2rgba.c instead 6772 of LZW. 6773 6774Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release *** 6775 6776 * Added tif_luv to contrib/djgpp/Makefile.lib. 6777 6778Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]> 6779 6780 * Added zip creation to relase makefile target 6781 6782 * Added html for TIFFWriteTile.3t man page. 6783 6784Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]> 6785 6786 * Added some changes to tif_write.c to support rewriting existing 6787 fixed sized tiles and strips. Code mods disabled by default, only 6788 enabled if REWRITE_HACK is defined for now. 6789 6790Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]> 6791 6792 * Added TIFFWriteTile.3t man page. 6793 6794Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]> 6795 6796 * Added notes on use of makefile.vc in build.html, and fixed 6797 email subscription address. 6798 6799199-11-28 Mike Welles <[email protected]> 6800 6801 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c 6802 6803 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c, 6804 from Bruce Carmeron <[email protected]> -- modifications of 6805 changes made by Frank (sun cc still complained on cast). 6806 6807 * Added tiffconf.h to install target per request from Bill 6808 Radcliffe <[email protected]>: "We need a way for ImageMagick to 6809 know features have been compiled into the TIFF library in order to 6810 handle things properly". 6811 6812Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]> 6813 6814 * fixed various VC++ warnings as suggested by Gilles Vollant 6815 <[email protected]>. 6816 6817Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]> 6818 6819 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to 6820 not imply applications are responsible for image data swapping. 6821 68221999-11-22 Mike Welles <[email protected]> 6823 * HTML-ized the man pages, added to html/man 6824 6825 * Removed LZW Compression to comply with Unisys patent extortion. 6826 68271999-09-29 Mike Welles <[email protected]> 6828 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c, 6829 From Ivo Penzar <[email protected]. 6830 6831 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle 6832 memory mapped files. <[email protected]> 6833 68341999-09-26 Mike Welles <[email protected]> *** 3.5.2 release *** 6835 * Corrected alpha versioning. 6836 6837 * Removed distinction between alpha and release targets in Makefile.in. 6838 6839 * added release.stamp target, which tags cvs tree, and updates 6840 "RELEASE-DATE" 6841 6842 * added releasediff target, which diffs tree with source as of 6843 date in "RELEASE-DATE" 6844 6845 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving 6846 away from alpha/non-alpha distinctions). 6847 6848 * updated html to reflect release 6849 68501999-09-23 <warmerda@CS46980-B> 6851 6852 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance. 6853 6854 * Added CYGWIN case in configure. 6855 6856Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]> 6857 6858 * Applied Francois Dagand's patch to handle fax decompression bug. 6859 (sizes >= 65536 were failing) 6860 6861Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]> 6862 6863 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested 6864 by Christopher Lawton <[email protected]> 6865 6866Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]> 6867 6868 * Added IRIX/gcc, and OSF/1 4.x support on behalf of 6869 Albert Chin-A-Young <[email protected]> 6870 6871 * Added TIFFReassignTagToIgnore() API on behalf of 6872 Bruce Cameron <[email protected]>. Man page still pending. 6873 6874Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]> 6875 6876 * Added test target in Makefile, test_pics.sh script and pics/*.rpt 6877 files to provide for a rudimentary testsuite. 6878 6879 * Added contrib/tags back from old distribution ... fixed up a bit. 6880 68811999-08-16 <warmerda@CS46980-B> 6882 6883 * Added simple makefile.vc makefiles for building with MS VC++ 6884 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give 6885 better solutions for some users. 6886 6887Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]> 6888 6889 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't 6890 put it in tools since part of it is in C++. 6891 68921999-08-16 Michael L. Welles <[email protected]> 6893 6894 * Updated html/index.html with anon CVS instructions. 6895 6896Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]> 6897 6898 * pre-remove so link before softlink in LINUXdso action in 6899 libtiff/Makefile.in to avoid failure on LINUXdso builds other than 6900 the first. 6901 6902 * Fixed problem with cvtcmap() in tif_getimage.c modifying the 6903 colormaps owned by the TIFF handle itself when trying to fixup wrong 6904 (eight bit) colormaps. Corrected by maintaining a private copy of 6905 the colormap. 6906 6907 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in 6908 tif_getimage.c. 6909 6910 * CVS Repository placed at remotesensing.org. ChangeLog added. 6911