12016-08-16 Even Rouault <even.rouault at spatialys.com> 2 3 * tools/tiffcrop.c: fix C99'ism. 4 52016-08-15 Even Rouault <even.rouault at spatialys.com> 6 7 * tools/tiff2bw.c: fix weight computation that could result of color 8 value overflow (no security implication). Fix bugzilla #2550. 9 Patch by Frank Freudenberg. 10 112016-08-15 Even Rouault <even.rouault at spatialys.com> 12 13 * tools/rgb2ycbcr.c: validate values of -v and -h parameters to 14 avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569) 15 162016-08-15 Even Rouault <even.rouault at spatialys.com> 17 18 * tools/tiffcrop.c: Fix out-of-bounds write in loadImage(). 19 From patch libtiff-CVE-2016-3991.patch from 20 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543) 21 222016-08-15 Even Rouault <even.rouault at spatialys.com> 23 24 * libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode 25 if more input samples are provided than expected by PixarLogSetupEncode. 26 Idea based on libtiff-CVE-2016-3990.patch from 27 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and 28 simpler check. (bugzilla #2544) 29 302016-08-15 Even Rouault <even.rouault at spatialys.com> 31 32 * tools/tiff2rgba.c: Fix integer overflow in size of allocated 33 buffer, when -b mode is enabled, that could result in out-of-bounds 34 write. Based initially on patch tiff-CVE-2016-3945.patch from 35 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for 36 invalid tests that rejected valid files. (bugzilla #2545) 37 382016-07-11 Even Rouault <even.rouault at spatialys.com> 39 40 * tools/tiffcrop.c: Avoid access outside of stack allocated array 41 on a tiled separate TIFF with more than 8 samples per pixel. 42 Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360 43 (CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559) 44 452016-07-10 Even Rouault <even.rouault at spatialys.com> 46 47 * libtiff/tif_read.c: Fix out-of-bounds read on 48 memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1() 49 when stripoffset is beyond tmsize_t max value (reported by 50 Mathias Svensson) 51 522016-07-10 Even Rouault <even.rouault at spatialys.com> 53 54 * tools/tiffdump.c: fix a few misaligned 64-bit reads warned 55 by -fsanitize 56 572016-07-03 Even Rouault <even.rouault at spatialys.com> 58 59 * libtiff/tif_read.c: make TIFFReadEncodedStrip() and 60 TIFFReadEncodedTile() directly use user provided buffer when 61 no compression (and other conditions) to save a memcpy(). 62 63 * libtiff/tif_write.c: make TIFFWriteEncodedStrip() and 64 TIFFWriteEncodedTile() directly use user provided buffer when 65 no compression to save a memcpy(). 66 672016-07-01 Even Rouault <even.rouault at spatialys.com> 68 69 * libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and 70 PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid 71 potential invalid memory write on corrupted/unexpected images when 72 using the TIFFRGBAImageBegin() interface (reported by 73 Clay Wood) 74 752016-06-28 Even Rouault <even.rouault at spatialys.com> 76 77 * libtiff/tif_pixarlog.c: fix potential buffer write overrun in 78 PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson) 79 (CVE-2016-5875) 80 812016-06-15 Bob Friesenhahn <[email protected]> 82 83 * libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64 84 to libtiff.def 85 862016-06-05 Bob Friesenhahn <[email protected]> 87 88 * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff, 89 ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from 90 the distribution. The libtiff tools rgb2ycbcr and thumbnail are 91 only built in the build tree for testing. Old files are put in 92 new 'archive' subdirectory of the source repository, but not in 93 distribution archives. These changes are made in order to lessen 94 the maintenance burden. 95 962016-05-10 Bob Friesenhahn <[email protected]> 97 98 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the 99 HAVE_SNPRINTF definition.' 100 1012016-05-09 Bob Friesenhahn <[email protected]> 102 103 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward 104 Lam to define HAVE_SNPRINTF for Visual Studio 2015. 105 1062016-04-27 Even Rouault <even.rouault at spatialys.com> 107 108 * libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD, 109 fix regression, introduced on 2014-12-23, when reading a one-strip 110 file without a StripByteCounts tag. GDAL #6490 111 1122016-04-07 Bob Friesenhahn <[email protected]> 113 114 * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for 115 purposes of security issue reporting. 116 1172016-01-23 Even Rouault <even.rouault at spatialys.com> 118 119 * libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr) 120 coming from GDAL internal libtiff 121 1222016-01-09 Even Rouault <even.rouault at spatialys.com> 123 124 * libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure 125 a uint16 to reduce size of the binary. 126 1272016-01-03 Even Rouault <even.rouault at spatialys.com> 128 129 * libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised 130 by GCC 6 -Wmisleading-indentation 131 1322015-12-27 Even Rouault <even.rouault at spatialys.com> 133 134 * libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL 135 string to %s formatter, which is undefined behaviour in sprintf(). 136 1372015-12-27 Even Rouault <even.rouault at spatialys.com> 138 139 * libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode() 140 triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif 141 (bugzilla #2508) 142 1432015-12-27 Even Rouault <even.rouault at spatialys.com> 144 145 * libtiff/tif_luv.c: fix potential out-of-bound writes in decode 146 functions in non debug builds by replacing assert()s by regular if 147 checks (bugzilla #2522). 148 Fix potential out-of-bound reads in case of short input data. 149 1502015-12-26 Even Rouault <even.rouault at spatialys.com> 151 152 * libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage 153 interface in case of unsupported values of SamplesPerPixel/ExtraSamples 154 for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in 155 TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and 156 CVE-2015-8683 reported by zzf of Alibaba. 157 1582015-12-21 Even Rouault <even.rouault at spatialys.com> 159 160 * libtiff/tif_dirread.c: workaround false positive warning of Clang Static 161 Analyzer about null pointer dereference in TIFFCheckDirOffset(). 162 1632015-12-19 Even Rouault <even.rouault at spatialys.com> 164 165 * libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found 166 by Clang Static Analyzer 167 1682015-12-18 Even Rouault <even.rouault at spatialys.com> 169 170 * libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in 171 TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory 172 offsets on a even offset (affects BigTIFF). This was a regression of the 173 changeset of 2015-10-19. 174 1752015-12-12 Even Rouault <even.rouault at spatialys.com> 176 177 * libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile() 178 should return -1 in case of failure of tif_encodestrip() as documented 179 * libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of 180 failure so that the above mentionned functions detect the error. 181 1822015-12-06 Even Rouault <even.rouault at spatialys.com> 183 184 * libtiff/uvcode.h: const'ify uv_code array 185 1862015-12-06 Even Rouault <even.rouault at spatialys.com> 187 188 * libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields, 189 tiffFieldArray and exifFieldArray arrays 190 1912015-12-06 Even Rouault <even.rouault at spatialys.com> 192 193 * libtiff/tif_print.c: constify photoNames and orientNames arrays 194 1952015-12-06 Even Rouault <even.rouault at spatialys.com> 196 197 * libtiff/tif_close.c, libtiff/tif_extension.c : rename link 198 variable to avoid -Wshadow warnings 199 2002015-11-22 Even Rouault <even.rouault at spatialys.com> 201 202 * libtiff/*.c: fix typos in comments (patch by Kurt Schwehr) 203 2042015-11-22 Even Rouault <even.rouault at spatialys.com> 205 206 * libtiff/*.c: fix MSVC warnings related to cast shortening and 207 assignment within conditional expression 208 2092015-11-18 Even Rouault <even.rouault at spatialys.com> 210 211 * libtiff/*.c: fix clang -Wshorten-64-to-32 warnings 212 2132015-11-18 Even Rouault <even.rouault at spatialys.com> 214 215 * libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL 216 to please MSVC 2013 217 2182015-11-17 Even Rouault <even.rouault at spatialys.com> 219 220 * libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction 221 if BitsPerPixel > 24, so as to avoid huge memory allocation and file 222 read attempts 223 2242015-11-02 Even Rouault <even.rouault at spatialys.com> 225 226 * libtiff/tif_dirread.c: remove duplicated assignment (reported by 227 Clang static analyzer) 228 2292015-10-28 Even Rouault <even.rouault at spatialys.com> 230 231 * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c, 232 libtiff/tif_jpeg_12.c: suppress warnings about 'no previous 233 declaration/prototype' 234 2352015-10-19 Even Rouault <even.rouault at spatialys.com> 236 237 * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix 238 'warning: negative integer implicitly converted to unsigned type' warning 239 (part of -Wconversion) 240 2412015-10-17 Even Rouault <even.rouault at spatialys.com> 242 243 * libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c, 244 libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/) 245 2462015-09-12 Bob Friesenhahn <[email protected]> 247 248 * libtiff 4.0.6 released. 249 250 * html/v4.0.6.html: Added release notes for 4.0.6. 251 2522015-09-06 Bob Friesenhahn <[email protected]> 253 254 * tools/tiffgt.c: Silence glut API deprecation warnings on MacOS 255 X. Patch by Roger Leigh. 256 257 * Makefile.am: Added a 'coverity' rule to assist with Coverity 258 submissions. 259 260 * tools/tiff2pdf.c: Fix compiler warning about unused function 261 when JPEG is not available. 262 263 * tools/fax2ps.c (main): Detect failure to write to temporary 264 file. 265 2662015-09-05 Bob Friesenhahn <[email protected]> 267 268 * libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8): 269 Change implementation so that it does not sometimes overflow the 270 range of a 32-bit int and to avoid a signed vs unsigned compare 271 compiler warning. 272 (TIFF_INT64_MAX): Avoid use of platform-specific large constants. 273 (TIFF_UINT32_MAX): Avoid use of platform-specific large constants. 274 2752015-09-01 Bob Friesenhahn <[email protected]> 276 277 * Makefile.am (distcheck-hook), configure.ac: Applied patches by 278 Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue 279 with BSD make and to make use of cmake in 'distcheck' target 280 conditional on if cmake is available. 281 282 * CMakeLists.txt, Makefile.am, configure.ac: Applied patches by 283 Roger Leigh (via tiff mailing list on 2015-09-01). 284 285 CMake build is now included in 'distcheck' target. 286 287 Builds with CMake 2.8.9 and newer. 288 289 Tar is now resquested to use POSIX PAX format. 290 2912015-08-31 Bob Friesenhahn <[email protected]> 292 293 * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by 294 Roger Leigh (via tiff mailing list on 2015-08-31. 295 296 CMake reads all version information directly from configure.ac to 297 avoid duplication of values. This basically greps over the file 298 for the LIBTIFF_* variables, then translates them to the form 299 needed for cmake. This includes the release version and libtool 300 shared library version information. 301 302 Make shared/static library building configurable. Currently it 303 always builds shared libraries, with static libs having a _static 304 suffix (copying zlib, but it means it's got a non-standard name). 305 CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the 306 other, which is now used instead. There's now a single "tiff" 307 target to build either shared or static as required, and all the 308 tests and tools are linked with this. Note: the Windows tests fail 309 when linked with a static libtiff (says: libtiff.dll not found). 310 Not really a regression since this was not tested up to this 311 point, and it's likely the unit tests haven't (ever?) been run on 312 Windows with a static libtiff, so there's some additional 313 portability issue here to address. Works fine on UNIX systems, 314 and fine on Windows with the default to build a DLL. 315 316 Add a missing file which wasn't being distributed, causing unit 317 tests to fail. Note that "find . -name '*.cmake'" lists all the 318 CMake files which need distributing in addition to all the 319 CMakeLists.txt files (which now are distributed). 320 3212015-08-31 Even Rouault <even.rouault at spatialys.com> 322 323 * libtiff/tif_predict.c: pedantic change to add explicit masking 324 with 0xff before casting to uchar in floating-point horizontal 325 differencing and accumulation routines. 326 3272015-08-31 Even Rouault <even.rouault at spatialys.com> 328 329 * libtiff/tif_predict.c: fix generation of output with 16 bit 330 or 32 bit integer, when byte swapping is needed, in 331 horizontal predictor (#2521). Also fixes decoding when there is 332 a single pixel to code (unlikely case...) and byte swapping is 333 involved. 334 3352015-08-30 Even Rouault <even.rouault at spatialys.com> 336 337 * libtiff/tif_lzw.c: make nextdata a unsigned type to avoid 338 undefined behaviour with shifts (gcc -fsanitize=shift) 339 3402015-08-30 Even Rouault <even.rouault at spatialys.com> 341 342 * libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c: 343 add explicit masking with 0xff before casting 344 to unsigned char (make icc -check=conversions happy) 345 346 * libtiff/tif_predict.c: operate on unsigned datatypes when 347 computing/applying differences to avoid undefined behaviour of 348 signed types (C standard compliance) 349 3502015-08-30 Bob Friesenhahn <[email protected]> 351 352 * configure.ac: libtiff 4.0.5 released. 353 3542015-08-29 Bob Friesenhahn <[email protected]> 355 356 * CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing 357 list on 2015-08-29) to add ld-version-script option to cmake build 358 to match autoconf. Note: defaults to 'on' to be ABI-compatible by 359 default with common Linux distribution builds. Note that the 360 autoconf configure script defaults to 'off'. 361 362 * html/build.html: Applied patch by Roger Leigh (via tiff mailing 363 list on 2015-08-29) to describe how to use CMake to build libtiff. 364 3652015-08-28 Bob Friesenhahn <[email protected]> 366 367 * html/v4.0.5.html: Added HTML file describing the changes which 368 will appear in the 4.0.5 release. 369 3702015-08-23 Bob Friesenhahn <[email protected]> 371 372 * libtiff/tiffiop.h: For MinGW comiles, make sure that build 373 supports necessary __MSVCRT_VERSION__ (at least at least 0x800). 374 Otherwise large files can not be supported for POSIX-style I/O. 375 376 * tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit 377 builds about cast to thandle_t. 378 379 * test/rewrite_tag.c (main): Does not require any arguments. 380 3812015-08-20 Bob Friesenhahn <[email protected]> 382 383 * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to 384 fix build issues when using Cmake due to Windows large file 385 changes. 386 3872015-08-18 Bob Friesenhahn <[email protected]> 388 389 * libtiff/tiffiop.h: First cut at supporting large files under 390 Microsoft Windows using tif_unix.c and the libtiff tools. This 391 only works if the Windows CDK is new enough to support the APIs 392 used (Visual C++ 2005 or later). Support for large files is not 393 actually tested yet. 394 3952015-08-15 Bob Friesenhahn <[email protected]> 396 397 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that 398 client_data is initialized to a known value, and to report an 399 error on two memory allocation failures. 400 4012015-08-13 Bob Friesenhahn <[email protected]> 402 403 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx 404 symbol versioning. Patch was mailed to libtiff list on Thu, 13 405 Aug 2015. 406 4072015-07-04 Bob Friesenhahn <[email protected]> 408 409 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3 410 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 411 +0100. 412 413 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh 414 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 415 416 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by 417 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 418 4192015-06-24 Bob Friesenhahn <[email protected]> 420 421 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 422 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several 423 corrections to ensure that the autotools build still works were 424 added by me. I have not yet tested the build using 'cmake' or 425 MSVC with 'nmake'. 426 4272015-06-21 Bob Friesenhahn <[email protected]> 428 429 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG 430 library so only execute if JPEG is available. 431 432 * libtiff 4.0.4 released. 433 434 * configure.ac: Add a HAVE_FOO Automake conditional for each 435 add-on library. 436 437 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode 438 requires JPEG support to compile. Use Automake conditional to 439 only include it when JPEG support is available. 440 441 * html/build.html: Try to improve the nmake-based VC++ build 442 description. 443 444 * libtiff/tiffconf.vc.h: Build fixes based on testing. 445 446 * libtiff/tif_config.vc.h: Build fixes based on testing. 447 448 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove 449 export for it. 450 4512015-06-20 Bob Friesenhahn <[email protected]> 452 453 * libtiff/tif_config.vc.h: Make adjustments to match the new 454 definitions that configure produces, including for WIN64. Still 455 needs to be tested. 456 457 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting 458 specifier. 64-bit MinGW supports 'long long' but support for 459 'lld' is not assured by the run-time DLLs and so GCC warns. 460 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition 461 and printf format specifier to deal with printing values of 462 'size_t' type. In particular, this was necessary for WIN64. 463 Added a configure test for if the system headers provide 'optarg' 464 (normal case) and block out the many explicit 'extern' statements 465 in the utilities. This was found to be necessary under Windows 466 when getopt is in a DLL and the symbols are already imported with 467 dllimport via standard header files. 468 469 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32 470 and boolean in MinGW build due to including jpeglib.h. 471 472 * test/rewrite_tag.c (main): Fix problem with location of variable 473 declaration. 474 475 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs, 476 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme, 477 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc, 478 TIFFRasterScanline, TIFFSetErrorHandlerExt, 479 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories, 480 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory, 481 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by 482 Roger Leigh and justified by use in libtiff tests, documentation, 483 and changelog notes. Also sorted symbol list and removed 484 duplicate entries. 485 4862015-06-16 Bob Friesenhahn <[email protected]> 487 488 * libtiff/tif_getimage.c: Fix four Coverity issues related to 489 unintended sign extension. 490 4912015-06-16 Even Rouault <even.rouault at spatialys.com> 492 493 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna) 494 4952015-06-14 Lee Howard <[email protected]> 496 497 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on 498 Bugzilla Bug #2510 fixes several harmless but still annoying 499 warnings 500 501 * configure: contribution from Ludolf Holzheid on Bugzilla 502 Bug #2498. Adds an option to select the file I/O style on 503 Windows hosts. 504 505 * libtiff/tif_getimage.c: contribution from Gary Cramblitt 506 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs. 507 508 * configure, configure.ac: contribution from Marcos H. Woehrmann 509 on Bugzilla Bug #2405. Correct shell equality operator. 510 511 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt 512 on Bugzilla Bug #2401. Appropriately call glFlush(). 513 514 * tools/tiff2pdf.c: change ColorTransform from "0" to "1" 515 following Bugzilla Bug #2150. 516 5172015-06-13 Lee Howard <[email protected]> 518 519 * libtiff/tif_lzw.c: contribution from Andy Cave - decode 520 files that contain consecutive CODE_CLEAR codes. 521 522 * tools/tiff2pdf.c: contribution from Antti S. Lankila on 523 Bugzilla Bug #2078. Suppress initial output of the header. 524 525 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy - 526 Take care in using the return value from snprintf(). 527 528 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira - 529 correctly copy the compression tag from the source TIFF. 530 531 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira - 532 correct sizing and scaling problems with output document. 533 5342015-06-10 Bob Friesenhahn <[email protected]> 535 536 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two 537 clean implementations in order to avoid pre-processor hell. Only 538 one of the implementations is used in a given build. 539 5402015-06-08 Even Rouault <even.rouault at spatialys.com> 541 542 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12 543 case 544 5452015-06-07 Bob Friesenhahn <[email protected]> 546 547 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975 548 "Division or modulo by zero". 549 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division 550 or modulo by zero". 551 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by 552 zero". 553 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by 554 zero". 555 556 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and 557 715974 "Division or modulo by zero". 558 5592015-05-31 Bob Friesenhahn <[email protected]> 560 561 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity 562 1134470 "Logically dead code" by making the roll-over check 563 explicit. 564 565 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227 566 "Division or modulo by zero". 567 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by 568 zero". 569 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by 570 zero". 571 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by 572 zero". 573 574 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix 575 Coverity 298626 "Logically dead code". 576 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead 577 code". 578 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead 579 code". 580 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead 581 code" 582 583 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++ 584 operator precedenc in evaluation. Might quench Coverity 1134470 585 "Logically dead code". 586 587 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands 588 don't affect result". This change uses ifdefs to include 589 applicable code based on properties of libjpeg. Still needs to be 590 re-tested with 12-bit "6b" and "MK1". 591 5922015-05-30 Bob Friesenhahn <[email protected]> 593 594 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310 595 "Resource leak". 596 597 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix 598 Coverity 601720 "Resource leak". 599 600 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624 601 "Dereference before null check". 602 603 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400 604 "Missing break in switch". 605 606 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer 607 size calculation for overflow. 608 609 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity 610 1024226 "Untrusted value as argument". 611 612 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted 613 value as argument". 614 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes 615 read". 616 (readextension): Fix Coverity 1024893 "Ignoring number of bytes 617 read". 618 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes 619 read". 620 (readraster): Fix Coverity 1024891 "Ignoring number of bytes 621 read". 622 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes 623 read". 624 625 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181 626 "Structurally dead code". 627 628 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return 629 value from library". 630 (guessSize): Fix Coverity 1024888 "Unchecked return value from 631 library". 632 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read". 633 (guessSize): Fix Coverity 1024889 "Unchecked return value from 634 library". 635 636 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621 637 "Resource leak". 638 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead 639 code". 640 (t2p_write_pdf): Fix Coverity 1227690 "Unused value". 641 6422015-05-29 Bob Friesenhahn <[email protected]> 643 644 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468 645 "Infinite loop". 646 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value". 647 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound". 648 6492015-05-28 Bob Friesenhahn <[email protected]> 650 651 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 652 Coverity 298615 "Resource leak". 653 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign 654 extension". 655 656 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value 657 as argument". 658 (main): Fix Coverity 1024678 "Unchecked return value from 659 library". 660 (main): Fix Coverity 1024679 "Unchecked return value from 661 library". 662 (main): Fix Coverity 1214160 "Ignoring number of bytes read". 663 664 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 665 Coverity 298615 "Resource leak". 666 667 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309 668 "Resource leak". 669 670 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource 671 leak". 672 (cpStrips): Fix Coverity 1024305 "Resource leak". 673 6742015-05-27 Bob Friesenhahn <[email protected]> 675 676 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe 677 for 64-bit systems. Add some header validations. Should fix many 678 Coverity issues. 679 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)". 680 (main): Quiet Coverity 1024223 "Untrusted value as argument". 681 682 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting 683 level does not match indentation". 684 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read". 685 This was a benign mis-diagnosis but added code to enforce against 686 buffer overflow. 687 688 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical 689 vs. bitwise operator". 690 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or 691 modulo by zero". 692 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead 693 code". 694 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not 695 match indentation". 696 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not 697 match indentation". 698 (loadImage): Fix Coverity 1299741 "Dereference before null check". 699 (loadImage): Fix Coverity 1299740 "Out-of-bounds write". 700 7012015-03-02 Even Rouault <[email protected]> 702 703 * tools/tiffdither.c: check memory allocations to avoid writing to 704 NULL pointer. Also check multiplication overflow. Fixes #2501, 705 CVE-2014-8128. Derived from patch by Petr Gajdos. 706 7072015-01-26 Even Rouault <[email protected]> 708 709 * add html/v4.0.4beta.html under version control 710 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used 711 7122015-01-26 Even Rouault <[email protected]> 713 714 * libtiff 4.0.4beta released 715 7162015-01-26 Even Rouault <[email protected]> 717 718 * automake: updated to 1.15 719 * libtool: updated to 2.4.5 720 7212015-01-22 Even Rouault <[email protected]> 722 723 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013) 724 7252015-01-05 Frank Warmerdam <[email protected]> 726 727 * html/bugs.html: remove note about needing to email the tiff mailing 728 list administrator about being approved for membership, this appears 729 not to be true. 730 7312015-01-05 Olivier Paquet <[email protected]> 732 733 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection. 734 7352015-01-03 Even Rouault <[email protected]> 736 737 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow 738 when reading more than 65535 directories, and effectively error out when 739 reaching that limit. 740 7412014-12-29 Even Rouault <[email protected]> 742 743 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10 744 markers to avoid emitting a warning (even if, according to the TechNote, 745 there are admitedly unusual/not recommended or even forbidden variants, but 746 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2, 747 SOF9 and SOF10). 748 Define in_color_space and input_components to the right values in 749 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by 750 libjpeg API documentation, so as to be compatible with mozjpeg library. 751 Note: the default settings of mozjpeg will produce progressive scans, which 752 is forbidden by the TechNote. 753 7542014-12-29 Even Rouault <[email protected]> 755 756 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling. 757 to avoid buffer leak (fix previous fix, found by Coverity scan) 758 7592014-12-29 Even Rouault <[email protected]> 760 761 * libtiff/tif_next.c: add new tests to check that we don't read outside of 762 the compressed input stream buffer. 763 764 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height 765 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and 766 putcontig8bitYCbCr21tile cases. 767 7682014-12-27 Even Rouault <[email protected]> 769 770 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing 771 extented tags installed by user code through the extender mechaninm before 772 calling the extender callback (GDAL #5054) 773 7742014-12-26 Bob Friesenhahn <[email protected]> 775 776 * tools/tiffcrop.c: Fix warnings about variables set but not used. 777 778 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set 779 but not used. 780 781 * tools/tiffgt.c: Fix warnings about unused parameters. 782 783 * libtiff/tif_stream.cxx: Fix warnings about unused parameters. 784 7852014-12-25 Even Rouault <[email protected]> 786 787 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix 788 various typos found by Debian lintian tool (GDAL #5756) 789 7902014-12-24 Even Rouault <[email protected]> 791 792 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling. 793 http://bugzilla.maptools.org/show_bug.cgi?id=2235 794 7952014-12-24 Even Rouault <[email protected]> 796 797 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images. 798 http://bugzilla.maptools.org/show_bug.cgi?id=2445 799 8002014-12-24 Even Rouault <[email protected]> 801 802 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image. 803 Derived from patch by Petr Gajdos, 804 http://bugzilla.maptools.org/show_bug.cgi?id=2443 805 8062014-12-23 Even Rouault <[email protected]> 807 808 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code 809 of _TIFFFillStriles(). This solves crashing bug on corrupted 810 images generated by afl. 811 8122014-12-23 Even Rouault <[email protected]> 813 814 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with 815 <= 0 by casting it to int64 first. This solves crashing bug on corrupted 816 images generated by afl. 817 8182014-12-21 Bob Friesenhahn <[email protected]> 819 820 * tools/tiffdump.c: Guard against arithmetic overflow when 821 calculating allocation buffer sizes. 822 8232014-12-21 Even Rouault <[email protected]> 824 825 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if 826 SamplesPerPixel = 3. Enforce that 827 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127) 828 8292014-12-21 Even Rouault <[email protected]> 830 831 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES 832 copying. The right fix would be to properly copy it, but not worth the burden 833 for those esoteric utilities. 834 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127) 835 8362014-12-21 Even Rouault <[email protected]> 837 838 * tools/thumbnail.c: fix out-of-buffer write 839 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128) 840 8412014-12-21 Even Rouault <[email protected]> 842 843 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS 844 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or 845 COMPRESSION_CCITTFAX4 846 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128) 847 8482014-12-21 Even Rouault <[email protected]> 849 850 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes 851 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129) 852 8532014-12-21 Even Rouault <[email protected]> 854 855 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading 856 TIFFTAG_SAMPLESPERPIXEL 857 8582014-12-21 Even Rouault <[email protected]> 859 860 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none. 861 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480) 862 Description: fix for Debian bug #741451 863 tiffcp crashes when converting JPEG-encoded TIFF to a different 864 encoding (like none or lzw). For example this will probably fail: 865 tiffcp -c none jpeg_encoded_file.tif output.tif 866 The reason is that when the input file contains JPEG data, 867 the tiffcp code forces conversion to RGB space. However, 868 the output normally inherits YCbCr subsampling parameters 869 from the input, which leads to a smaller working buffer 870 than necessary. The buffer is subsequently overrun inside 871 cpStripToTile() (called from writeBufferToContigTiles). 872 Note that the resulting TIFF file would be scrambled even 873 if tiffcp wouldn't crash, since the output file would contain 874 RGB data intepreted as subsampled YCbCr values. 875 This patch fixes the problem by forcing RGB space on the output 876 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded. 877 Author: Tomasz Buchert <[email protected]> 878 8792014-12-21 Even Rouault <[email protected]> 880 881 Fix various crasher bugs on fuzzed images. 882 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for 883 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing 884 the directory 885 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or 886 TransferFunction if BitsPerSample has not yet been read, otherwise reading 887 it later will cause user code to crash if BitsPerSample > 1 888 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with 889 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8 890 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images 891 instead of imagewidth to avoid crash 892 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions 893 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by 894 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB 895 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight 896 * tools/tiffdump.c: fix crash due to overflow of entry count. 897 8982014-12-15 Even Rouault <[email protected]> 899 900 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused 901 all tiles/strips to include quantization tables even when the jpegtablesmode 902 had the JPEGTABLESMODE_QUANT bit set. 903 Also add explicit removal of Huffman tables when jpegtablesmode has the 904 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the 905 first tile/strip (only useful in update scenarios. create-only was 906 fine) 907 9082014-12-09 Bob Friesenhahn <[email protected]> 909 910 * tools/tiff2pdf.c: Assure that memory size calculations for 911 _TIFFmalloc() do not overflow the range of tmsize_t. 912 9132014-12-07 Even Rouault <[email protected]> 914 915 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with 916 Valgrind and Address Sanitizer on test suite 917 9182014-12-07 Bob Friesenhahn <[email protected]> 919 920 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION 921 tag can return one channel, with the other two channels set to 922 NULL. The tiff2pdf code was expecting that other two channels 923 were duplicate pointers in the case where there is only one 924 channel. Detect this condition in order to avoid a crash, and 925 presumably perform correctly with just one channel. 926 9272014-12-06 Bob Friesenhahn <[email protected]> 928 929 * tools/tiffdump.c: Fix double-free bug. 930 9312014-11-27 Even Rouault <[email protected]> 932 933 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with 934 Visual Studio 2015 aka VC 14 aka MSVC 1900 935 9362014-11-20 Even Rouault <[email protected]> 937 938 * libtiff/tif_lzw.c: prevent potential null dereference of 939 sp->dec_codetab in LZWPreDecode (bug #2459) 940 941 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size 942 to TIFFmalloc() if passed user buffer size is 0 (bug #2459) 943 944 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459) 945 946 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make 947 Coverity happier (not a bug, #2459) 948 949 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier 950 (not a bug, #2459) 951 952 * tools/tiff2pdf.c: close PDF file (bug #2479) 953 954 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470) 955 956 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463) 957 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459) 958 959 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option 960 (bug #2459) and add missing va_end in dump_info (#2459) 961 962 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451) 963 9642014-11-20 Even Rouault <[email protected]> 965 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on 966 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471) 967 9682014-11-20 Even Rouault <[email protected]> 969 * automake: updated to 1.14.1 970 * libtool: updated to 2.4.3 971 * HOWTO-RELEASE: small update about autotools building order 972 9732014-10-20 Olivier Paquet <[email protected]> 974 * tools/tiff2pdf.c: Preserve input file directory order when pages 975 are tagged with the same page number. 976 9772014-08-31 Bob Friesenhahn <[email protected]> 978 979 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect 980 count for tag should be a warning rather than an error since 981 errors terminate processing. 982 9832014-06-07 Bob Friesenhahn <[email protected]> 984 985 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip 986 was wrongly described. Fix suggested by Miguel Medalha. 987 9882014-05-06 Bob Friesenhahn <[email protected]> 989 990 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for 991 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood. 992 Reviewed and forwarded by Lee Howard. 993 9942013-11-30 Frank Warmerdam <[email protected]> 995 996 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories() 997 9982013-10-21 Frank Warmerdam <[email protected]> 999 1000 * libtiff/tif_dir.c: generate error in case of directory count 1001 overflow. 1002 10032013-10-01 Frank Warmerdam <[email protected]> 1004 1005 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for 1006 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457) 1007 10082013-09-12 Bob Friesenhahn <[email protected]> 1009 1010 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to 1011 be defective, then set it to zero before returning error in order 1012 to terminate processing of truncated TIFF. Issue found and fix 1013 suggested by Richard Nolde. 1014 10152013-08-14 Frank Warmerdam <[email protected]> 1016 1017 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244) 1018 10192013-08-13 Frank Warmerdam <[email protected]> 1020 1021 * tools/gif2tiff.c: Be more careful about corrupt or 1022 hostile input files (#2450, CVE-2013-4231) 1023 1024 * tools/tiff2pdf.c: terminate after failure of allocating 1025 ycbcr buffer (bug #2449, CVE-2013-4232) 1026 10272013-07-09 Frank Warmerdam <[email protected]> 1028 1029 * tools/tiffinfo.c: Default various values fetched with 1030 TIFFGetField() to avoid being uninitialized. 1031 10322013-05-02 Tom Lane <[email protected]> 1033 1034 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in 1035 t2p_process_jpeg_strip to be at least marginally competent. The 1036 approach is still fundamentally flawed, but at least now it won't 1037 stomp all over memory when given bogus input. Fixes CVE-2013-1960. 1038 10392013-05-02 Tom Lane <[email protected]> 1040 1041 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c, 1042 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c, 1043 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c, 1044 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't 1045 large enough, and eliminate substantially all uses of sprintf(buf, 1046 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to 1047 protect against overflow of fixed-size buffers. This responds in 1048 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's 1049 t2p_write_pdf_page(), but in general it seems like a good idea to 1050 deprecate use of sprintf(). 1051 10522013-03-29 Bob Friesenhahn <[email protected]> 1053 1054 * configure.ac: Applied patch by Brad Smith to improve pkg-config 1055 static linking by adding -lm to Libs.private when needed. 1056 10572013-03-05 Tom Lane <[email protected]> 1058 1059 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html, 1060 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1, 1061 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c, 1062 tools/tiffdither.c: Sync tool usage printouts and man pages with 1063 reality (quite a few options had escaped being documented in one 1064 or both places). Per an old report from Miroslav Vadkerti. 1065 10662013-01-25 Bob Friesenhahn <[email protected]> 1067 1068 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a 1069 rotation angle was set by the auto rotate check, it was retained 1070 for all pages that followed instead ofa being retested for each 1071 page. Patch by Richard Nolde. 1072 10732013-01-18 Frank Warmerdam <[email protected]> 1074 1075 * libtiff/tif_write.c: tmsize_t related casting warning fixed for 1076 64bit linux. 1077 1078 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings. 1079 http://bugzilla.maptools.org/show_bug.cgi?id=2427 1080 10812012-12-20 Tom Lane <[email protected]> 1082 1083 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that 1084 it will pass with more versions of libjpeg. (There are at least 1085 three in active use now, and JPEG_LIB_VERSION doesn't tell us 1086 enough to uniquely identify expected results.) 1087 10882012-12-12 Tom Lane <[email protected]> 1089 1090 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of 1091 field_passcount fields: it had the TIFF_VARIABLE and 1092 TIFF_VARIABLE2 cases backwards. 1093 10942012-12-10 Tom Lane <[email protected]> 1095 1096 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564: 1097 check the linebytes calculation too, get the max() calculation 1098 straight, avoid redundant error messages, check for malloc 1099 failure. 1100 11012012-12-10 Tom Lane <[email protected]> 1102 1103 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447 1104 (to enlarge tbuf for possible partial stride at end) so that 1105 overflow in the integer addition is detected. Per gripe from 1106 Huzaifa Sidhpurwala. 1107 11082012-12-03 Bob Friesenhahn <[email protected]> 1109 1110 * tools/tiffset.c: tiffset now supports a -u option to unset a 1111 tag. Patch by Zach Baker. See 1112 http://bugzilla.maptools.org/show_bug.cgi?id=2419 1113 11142012-11-18 Bob Friesenhahn <[email protected]> 1115 1116 * automake: Update Automake to 1.12.5 release. 1117 1118 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not 1119 require malloc() to return NULL pointer if requested allocation 1120 size is zero. Assure that _TIFFmalloc does. 1121 11222012-11-01 Frank Warmerdam <[email protected]> 1123 1124 * tools/ppm2tiff.c: avoid zero size buffer vulnerability. 1125 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the 1126 Red Hat Security Response team for the fix. 1127 11282012-10-18 Frank Warmerdam <[email protected]> 1129 1130 * tif_zip.c: Avoid crash on NULL error messages. 1131 11322012-09-22 Bob Friesenhahn <[email protected]> 1133 1134 * libtiff 4.0.3 released. 1135 11362012-09-20 Bob Friesenhahn <[email protected]> 1137 1138 * Makefile.am: Update to Automake 1.12.4 1139 11402012-08-19 Bob Friesenhahn <[email protected]> 1141 1142 * Makefile.in: Update to Automake 1.12.3 1143 1144 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add 1145 some TIFF/FX support in libtiff. Add the tag definitions to 1146 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c, 1147 and also fixes an error in a comment. Adds the photometric values 1148 to tif_print.c, and fixes a bug. These changes are by Steve 1149 Underwood. 1150 11512012-08-13 Frank Warmerdam <[email protected]> 1152 1153 * libtiff/tif_write.c: Fix bug rewriting image tiles in a 1154 compressed file: http://trac.osgeo.org/gdal/ticket/4771 1155 11562012-08-02 Frank Warmerdam <[email protected]> 1157 1158 * libtiff/tif_dirread.c: report error in case of mismatch value 1159 counts for tags (ie. DotRange). 1160 11612012-07-26 Tom Lane <[email protected]> 1162 1163 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new 1164 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(), 1165 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount() 1166 as external accessors for the opaque type TIFFField. 1167 1168 * tools/tiffset.c: Make tiffset use the above functions instead of 1169 relying on library private headers. 1170 11712012-07-19 Tom Lane <[email protected]> 1172 1173 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set 1174 after a malloc failure. No crash risk AFAICS, but the program 1175 might not report exit code 1 as desired. h/t [email protected] 1176 11772012-07-18 Tom Lane <[email protected]> 1178 1179 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This 1180 prevents core dumps or perhaps even arbitrary code execution when 1181 processing a corrupt input file (CVE-2012-3401). 1182 11832012-07-06 Bob Friesenhahn <[email protected]> 1184 1185 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+. 1186 IJG JPEG 7+ uses a different upsampling algorithm which produces 1187 different numeric results. 1188 1189 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to 1190 work with IJG JPEG 7+. 1191 11922012-07-04 Bob Friesenhahn <[email protected]> 1193 1194 * test/raw_decode.c: Add changes so that test can run with build 1195 directory outside of source directory. 1196 11972012-07-02 Frank Warmerdam <[email protected]> 1198 1199 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed 1200 imagery (http://trac.osgeo.org/gdal/ticket/4732) 1201 12022012-06-20 Frank Warmerdam <[email protected]> 1203 1204 * libtiff/tif_fax3.c: fix memory initialization of runs, only 1205 partly done. 1206 1207 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one 1208 full "stride" past the end. 1209 12102012-06-19 Frank Warmerdam <[email protected]> 1211 1212 * libtiff/tif_packbits.c: fix read past end of data buffer. 1213 12142012-06-15 Frank Warmerdam <[email protected]> 1215 1216 * libtiff 4.0.2 released. 1217 1218 * tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable 1219 warnings with clang. 1220 12212012-06-15 Tom Lane <[email protected]> 1222 1223 * tools/tiff2pdf.c: Defend against integer overflows while 1224 calculating required buffer sizes (CVE-2012-2113). 1225 12262012-06-12 Frank Warmerdam <[email protected]> 1227 1228 * libtiff/tif_print.c: Be careful about printing corrupt inknames. 1229 1230 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros. 1231 12322012-06-07 Frank Warmerdam <[email protected]> 1233 1234 * libtiff/tif_print.c: avoid pretty printing other fields when 1235 we don't have the proper amount and type of data or if the field 1236 is actually autodefined. 1237 12382012-06-05 Frank Warmerdam <[email protected]> 1239 1240 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal 1241 ycbcrsubsampling values result in a runtime error, not just an 1242 assertion. 1243 1244 * tests/custom_dir.c: Add testing of EXIF and custom directory 1245 reading and writing. 1246 1247 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory() 1248 and TIFFCreateEXIFDirectory() functions. 1249 1250 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for 1251 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE 1252 differently. This is to avoid using special TIFFGetField/TIFFSetField 1253 rules for these fields in non-image directories (like EXIF). 1254 12552012-06-04 Frank Warmerdam <[email protected]> 1256 1257 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling 1258 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner 1259 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong. 1260 12612012-06-01 Frank Warmerdam <[email protected]> 1262 1263 * tools/tiffinfo.c: Do not try to read image data in EXIF directories. 1264 1265 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images. 1266 http://bugzilla.maptools.org/show_bug.cgi?id=2379 1267 1268 * libtiff/tif_unix.c: use strerror() to return a more specific error message 1269 on failed open. 1270 http://bugzilla.maptools.org/show_bug.cgi?id=2341 1271 1272 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs. 1273 http://bugzilla.maptools.org/show_bug.cgi?id=2386 1274 1275 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support 1276 for testing jpeg in tiff image decoding including the "raw" decode interface. 1277 12782012-05-31 Frank Warmerdam <[email protected]> 1279 1280 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in 1281 JPEGDecodeRaw() - mostly likely to occur when there is confusion about 1282 sampling values. 1283 1284 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed. 1285 1286 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval. 1287 http://bugzilla.maptools.org/show_bug.cgi?id=2398 1288 12892012-05-29 Frank Warmerdam <[email protected]> 1290 1291 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories, 1292 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting 1293 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations 1294 to get/set functions for different tags! 1295 1296 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata 1297 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag. 1298 12992012-05-24 Frank Warmerdam <[email protected]> 1300 1301 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward 1302 accumulate" and overwrite the end by one word in at least some cases. 1303 13042012-05-23 Frank Warmerdam <[email protected]> 1305 1306 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs. 1307 1308 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files. 1309 1310 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on 1311 the same image. 1312 1313 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without 1314 stripbytecounts or stripoffsets or where loading these fails. 1315 1316 * libtiff/tif_print.c: be careful about whether min/max values are singular 1317 or one per sample. 1318 1319 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields. 1320 May affect things like ISOSpeedRatings. 1321 1322 * libtiff/tif_dir.c: avoid one byte past end of ink names reading 1323 in some cases. 1324 13252012-05-19 Bob Friesenhahn <[email protected]> 1326 1327 * man/TIFFGetField.3tiff: Correct the 'count' field type in the 1328 example for how to retreive the value of unsupported tags. 1329 13302012-03-30 Frank Warmerdam <[email protected]> 1331 1332 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173) 1333 care of Tom Lane @ Red Hat. 1334 13352012-02-18 Bob Friesenhahn <[email protected]> 1336 1337 * libtiff 4.0.1 released. 1338 1339 * Update automake used to 1.11.3. 1340 1341 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf 1342 attribute specification to lessen the risk of accidental macro 1343 substitution. Patch from Vincent Torri. 1344 13452012-01-31 Frank Warmerdam <[email protected]> 1346 1347 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around 1348 assumption tag fetching is always successful. 1349 1350 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL. 1351 13522012-01-22 Bob Friesenhahn <[email protected]> 1353 1354 * configure.ac: Add support for using library symbol versioning on 1355 ELF systems with the GNU linker. Support is enabled via 1356 --enable-ld-version-script. Disabled by default for now until 1357 there is a decision for how to deploy a libtiff with versioned 1358 symbols after libtiff 4.0.0 was already released. 1359 13602011-12-22 Bob Friesenhahn <[email protected]> 1361 1362 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in 1363 1364 tif_win32.c. Patch by Edward Lam. 1365 1366 * configure.ac: Add libtiff private dependency on -llzma for 1367 pkg-config. Patch by Mark Brand. 1368 Updated Automake to 1.11.2. 1369 13702011-12-21 Bob Friesenhahn <[email protected]> 1371 1372 * libtiff 4.0.0 released. 1373 13742011-12-08 Frank Warmerdam <[email protected]> 1375 1376 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking 1377 of _TIFFFillStriles() results (#gdal 4372) 1378 13792011-12-07 Frank Warmerdam <[email protected]> 1380 1381 * libtiff/tif_dirread.c: fixes to deal with invalid files where 1382 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372) 1383 1384 * libtiff/tif_dirread.c: fix error reporting when there is no 1385 tag information struct and name (gdal #4373) 1386 13872011-10-22 Bob Friesenhahn <[email protected]> 1388 1389 * Update GNU libtool to 2.4.2. 1390 1391 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be 1392 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe 1393 Deroulers. 1394 13952011-06-21 Frank Warmerdam <[email protected]> 1396 1397 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo. 1398 13992011-05-31 Jim Meyering <[email protected]> 1400 1401 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also 1402 upon failure to allocate "resizeddata". 1403 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for 1404 allocation failure, not before. 1405 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path 1406 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc 1407 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark 1408 NULL-deref and possible overflow 1409 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written" 1410 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration 1411 and set of otherwise unused local, data_is_empty. 1412 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]: 1413 Diagnose out-of-memory failure and return 0 rather than 1414 dereferencing NULL. 1415 14162011-05-24 Frank Warmerdam <[email protected]> 1417 1418 * libtiff/tif_dirread.c: produce special error message for zero tag 1419 directories instead of error out on the malloc(0) failure. 1420 14212011-05-16 Frank Warmerdam <[email protected]> 1422 1423 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and 1424 related declarations as they are in active use by libraries 1425 such as libgeotiff, and work just fine. (#2315) 1426 14272011-04-20 Frank Warmerdam <[email protected]> 1428 1429 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete 1430 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API. 1431 http://bugzilla.maptools.org/show_bug.cgi?id=2315 1432 1433 * libtiff/libtiff.def: add some missing (64bit) APIs. 1434 http://bugzilla.maptools.org/show_bug.cgi?id=2316 1435 14362011-04-09 Bob Friesenhahn <[email protected]> 1437 1438 * libtiff 4.0.0beta7 released. 1439 14402011-04-09 Bob Friesenhahn <[email protected]> 1441 1442 * configure.ac: Should use AC_CANONICAL_HOST since host specifies 1443 the run-time target whereas target is used to specify the final 1444 output target if the package is a build tool (like a compiler), 1445 which libtiff is not. Resolves libtiff bug 2307 "Use 1446 AC_CANONICAL_HOST macro". 1447 14482011-04-02 Bob Friesenhahn <[email protected]> 1449 1450 * configure.ac: Support configuring TIFF_INT64_FORMAT and 1451 TIFF_UINT64_FORMAT appropriately for MinGW32. 1452 1453 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32 1454 printf conventions for 64-bit types because it uses the WIN32 CRT. 1455 1456 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c, 1457 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32 1458 printf conventions for 64-bit types because it uses the WIN32 CRT. 1459 1460 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not 1461 understood by WIN32 CRT. 1462 1463 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC. 1464 1465 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since 1466 it is much more portable. Tmpfile is included in ISO/IEC 1467 9899:1990 and the WIN32 CRT. 1468 14692011-03-26 Frank Warmerdam <[email protected]> 1470 1471 * tools/tiffset.c: add -d and -sd switches to allow operation on 1472 a particular directory, not just the first (jef). 1473 14742011-03-21 Frank Warmerdam <[email protected]> 1475 1476 * libtiff/tif_thunder.c: Correct potential buffer overflow with 1477 thunder encoded files with wrong bitspersample set. The libtiff 1478 development team would like to thank Marin Barbella and TippingPoint's 1479 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004, 1480 CVE-2011-1167). 1481 http://bugzilla.maptools.org/show_bug.cgi?id=2300 1482 14832011-03-10 Frank Warmerdam <[email protected]> 1484 1485 * libtiff/tif_fax3.h: Fix to last change allowing zero length 1486 runs at the start of a scanline - needed for legal cases. 1487 14882011-03-02 Frank Warmerdam <[email protected]> 1489 1490 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding 1491 a move left. Without this, a malicious input file can generate an 1492 indefinitely large series of runs without a0 ever reaching the right 1493 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192. 1494 This is a modified version of a patch proposed by Drew Yao of Apple 1495 Product Security. It adds an unexpected() report, and disallows the 1496 equality case, since emitting a run without increasing a0 still allows 1497 buffer overrun. 1498 14992011-02-23 Frank Warmerdam <[email protected]> 1500 1501 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296) 1502 1503 * tools/tiff2rgba.c: close source file on error to make leak 1504 detection easier. 1505 1506 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails. 1507 1508 http://bugzilla.maptools.org/show_bug.cgi?id=2295 1509 15102011-02-22 Frank Warmerdam <[email protected]> 1511 1512 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ 1513 _SUPPORT) 1514 15152011-02-18 Frank Warmerdam <[email protected]> 1516 1517 * configure.ac, configure: Added support for --enable-chunky-strip-read 1518 configure option to enable the experimental feature from a couple 1519 months ago for reading big strips in chunks. 1520 1521 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h, 1522 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c: 1523 Implement optional support for deferring the load of strip/tile 1524 offset and size tags for optimized scanning of directories. Enabled 1525 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD 1526 #define in tif_config.h). 1527 15282011-02-11 Frank Warmerdam <[email protected]> 1529 1530 * libtiff/tif_print.c: remove unused variable. 1531 15322011-02-09 Frank Warmerdam <[email protected]> 1533 1534 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem 1535 with non-console (popup message) builds on win32. 1536 1537 http://bugzilla.maptools.org/show_bug.cgi?id=2293 1538 15392011-01-24 Olivier Paquet <[email protected]> 1540 1541 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c, 1542 tif_print.c, tiff.h, tiffiop.h} : Added support for 1543 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different 1544 values for each sample. Presents the min/max of all samples by default for 1545 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags 1546 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag. 1547 http://www.asmail.be/msg0055458208.html 1548 15492011-01-06 Frank Warmerdam <[email protected]> 1550 1551 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not 1552 maintained. 1553 1554 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding 1555 for CHUNKY_STRIP_READ_SUPPORT. 1556 1557 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained 1558 during JPEGPreDecode and JPEGDecode calls. 1559 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT, 1560 as compression formats like JPEG keep 16 lines interleaved in a sense 1561 and might need to touch quite a bit of data. 1562 1563 http://trac.osgeo.org/gdal/ticket/3894 1564 15652011-01-03 Lee Howard <[email protected]> 1566 1567 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images 1568 caused by commit on 2010-12-14. Submitted by e-mail from 1569 Even Rouault <[email protected]> 1570 15712010-12-31 Olivier Paquet <[email protected]> 1572 1573 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE. 1574 http://bugzilla.maptools.org/show_bug.cgi?id=2266 1575 15762010-12-23 Andrey Kiselev <[email protected]> 1577 1578 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the 1579 compression level parameter (preset) for Deflate and LZMA encoders, 1580 e.g "-c lzma:p1" or "-c zip:p9". 1581 1582 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level 1583 (preset) in LZMAVSetField(). 1584 15852010-12-18 Bob Friesenhahn <[email protected]> 1586 1587 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to 1588 Makefile. 1589 15902010-12-14 Andrey Kiselev <[email protected]> 1591 1592 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h, 1593 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new 1594 TIFF compression scheme LZMA reserving a new value 34925 for 1595 Compression tag. As per 1596 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221 1597 15982010-12-14 Lee Howard <[email protected]> 1599 1600 * libtiff/tif_dirread.c: tolerate some cases where 1601 FIELD_COLORMAP is missing 1602 http://bugzilla.maptools.org/show_bug.cgi?id=2189 1603 16042010-12-14 Lee Howard <[email protected]> 1605 1606 * libtiff/tif_read.c: change read_ahead to tmsize_t 1607 http://bugzilla.maptools.org/show_bug.cgi?id=2222 1608 16092010-12-14 Lee Howard <[email protected]> 1610 1611 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on 1612 Windows except on Cygwin 1613 http://bugzilla.maptools.org/show_bug.cgi?id=2224 1614 16152010-12-14 Lee Howard <[email protected]> 1616 1617 * tools/gif2tiff.c: fix buffer overrun 1618 http://bugzilla.maptools.org/show_bug.cgi?id=2270 1619 16202010-12-14 Lee Howard <[email protected]> 1621 1622 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order 1623 to improve compatibility with various viewers 1624 submitted by e-mail from Dwight Kelly <[email protected]> 1625 16262010-12-13 Lee Howard <[email protected]> 1627 1628 * tools/fax2ps.c: be consistent with page-numbering 1629 http://bugzilla.maptools.org/show_bug.cgi?id=2225 1630 16312010-12-13 Lee Howard <[email protected]> 1632 1633 * libtiff/tif_color.c: prevent crash in handling bad TIFFs 1634 resolves CVE-2010-2595 1635 http://bugzilla.maptools.org/show_bug.cgi?id=2208 1636 16372010-12-13 Lee Howard <[email protected]> 1638 1639 * tools/tiffcrop.c: new release by Richard Nolde 1640 http://bugzilla.maptools.org/show_bug.cgi?id=2004 1641 16422010-12-12 Lee Howard <[email protected]> 1643 1644 * tools/tiff2pdf.c: fix colors for images with RGBA 1645 interleaved data 1646 http://bugzilla.maptools.org/show_bug.cgi?id=2250 1647 16482010-12-12 Lee Howard <[email protected]> 1649 1650 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files 1651 http://bugzilla.maptools.org/show_bug.cgi?id=2164 1652 16532010-12-11 Lee Howard <[email protected]> 1654 1655 * tools/tiff2pdf.c: remove invalid duplication for Lab 1656 http://bugzilla.maptools.org/show_bug.cgi?id=2162 1657 16582010-12-11 Lee Howard <[email protected]> 1659 1660 * libtiff/tif_jpeg.c: fix use of clumplines calculation 1661 http://bugzilla.maptools.org/show_bug.cgi?id=2149 1662 16632010-12-11 Lee Howard <[email protected]> 1664 1665 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp() 1666 http://bugzilla.maptools.org/show_bug.cgi?id=2118 1667 16682010-12-11 Lee Howard <[email protected]> 1669 1670 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c, 1671 libtiff/tif_zip.c: fix build errors for VC6 1672 http://bugzilla.maptools.org/show_bug.cgi?id=2105 1673 16742010-12-11 Lee Howard <[email protected]> 1675 1676 * libtiff/tif_stream.cxx: warnings cleanup 1677 http://bugzilla.maptools.org/show_bug.cgi?id=2091 1678 * libtiff/tif_dirread.c: warnings cleanup 1679 http://bugzilla.maptools.org/show_bug.cgi?id=2092 1680 16812010-12-11 Lee Howard <[email protected]> 1682 1683 * tools/tiff2pdf.c: add fill-page option 1684 http://bugzilla.maptools.org/show_bug.cgi?id=2051 1685 16862010-12-11 Lee Howard <[email protected]> 1687 1688 * libtiff/tif_dirread.c: modify warnings 1689 http://bugzilla.maptools.org/show_bug.cgi?id=2016 1690 16912010-12-11 Lee Howard <[email protected]> 1692 1693 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data 1694 http://bugzilla.maptools.org/show_bug.cgi?id=1999 1695 16962010-12-11 Lee Howard <[email protected]> 1697 1698 * tools/tiffinfoce.c: strip byte counts are uint64* now 1699 17002010-12-11 Lee Howard <[email protected]> 1701 1702 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero 1703 or missing byte-count tag 1704 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count 1705 per http://bugzilla.maptools.org/show_bug.cgi?id=1996 1706 17072010-12-08 Lee Howard <[email protected]> 1708 1709 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed 1710 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994 1711 17122010-12-06 Lee Howard <[email protected]> 1713 1714 * libtiff/tif_open.c: Fix mode check before opening a file. 1715 http://bugzilla.maptools.org/show_bug.cgi?id=1906 1716 17172010-11-27 Bob Friesenhahn <[email protected]> 1718 1719 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support. 1720 Patch by Vincent Torri. 1721 17222010-10-21 Frank Warmerdam <[email protected]> 1723 1724 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler. 1725 1726 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf. 1727 1728 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools. 1729 17302010-09-25 Lee Howard <[email protected]> 1731 1732 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde 1733 with additional command line options for Document Title, 1734 Document Creator, and Page Orientation 1735 17362010-07-13 Bob Friesenhahn <[email protected]> 1737 1738 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a 1739 potentially unterminated buffer due to using an exceptionally long 1740 file name. 1741 17422010-07-08 Andrey Kiselev <[email protected]> 1743 1744 * tools/tiff2pdf.c: Fixed ID buffer filling in 1745 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 1746 17472010-07-07 Andrey Kiselev <[email protected]> 1748 1749 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount() 1750 to expected value as the warning message suggests. As per bug 1751 http://bugzilla.maptools.org/show_bug.cgi?id=1963 1752 17532010-07-06 Andrey Kiselev <[email protected]> 1754 1755 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER, 1756 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE 1757 which should be set by value. 1758 1759 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag() 1760 and _TIFFFieldWithName() if the tag is not found in the tag table. 1761 This should be normal situation and returned NULL value should be 1762 properly handled by the caller. 1763 17642010-07-02 Andrey Kiselev <[email protected]> 1765 1766 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned 1767 integer type conversions. As per bug 1768 http://bugzilla.maptools.org/show_bug.cgi?id=2207 1769 1770 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for 1771 WhitePoint tag as per bug 1772 http://bugzilla.maptools.org/show_bug.cgi?id=2042 1773 1774 * libtiff/tif_getimage.c: Check the number of samples per pixel when 1775 working with YCbCr image in PickContigCase(). As per bug 1776 http://bugzilla.maptools.org/show_bug.cgi?id=2216 1777 1778 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing 1779 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when 1780 we don't need any post-processing. That helps to reset the hook if we 1781 previously set this field to some other value and the hook was 1782 initialized accordingly. As per bug 1783 http://bugzilla.maptools.org/show_bug.cgi?id=2035 1784 17852010-07-01 Andrey Kiselev <[email protected]> 1786 1787 * tools/tiffgt.c: Properly check the raster buffer allocations for 1788 integer overflows. As per bug 1789 http://bugzilla.maptools.org/show_bug.cgi?id=2108 1790 1791 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the 1792 upstream. 1793 1794 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move 1795 multiply_32() and multiply_64() functions into tif_aux.c file and 1796 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively. 1797 17982010-06-30 Andrey Kiselev <[email protected]> 1799 1800 * tools/tiff2pdf.c: Better generation of ID field in 1801 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings. 1802 1803 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when 1804 converting JPEG encoded tiles. 1805 1806 * tools/tiff2pdf.c: Better handling of string fields, use static 1807 string buffers instead of dynamically allocated, use strncpy() instead 1808 of strcpy(), control the string lengths. 1809 18102010-06-25 Andrey Kiselev <[email protected]> 1811 1812 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid 1813 referencing to uninitialized memory in some cases (e.g. when tile size 1814 set bigger than the image size). 1815 18162010-06-15 Bob Friesenhahn <[email protected]> 1817 1818 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr 1819 subsampled data since tiffcrop currently doesn't support it. Fix 1820 JPEG support. 1821 18222010-06-13 Frank Warmerdam <[email protected]> 1823 1824 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201) 1825 1826 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return" 1827 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely 1828 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual 1829 size is larger. Also, there are a bunch of places that try to 1830 memset() a malloc'd buffer before checking for malloc failure, which 1831 would result in core dump if there actually were a failure. (#2211) 1832 18332010-06-11 Bob Friesenhahn <[email protected]> 1834 1835 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to 1836 avoid compiler warnings if parameter types are not sign 1837 consistent. 1838 1839 * libtiff 4.0.0alpha6 released. 1840 1841 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected 1842 European page size dimensions. Added an option to allow the user 1843 to specify a custom page size on the command line. Fix the case 1844 where a page size specified with a fractional part was being 1845 coerced to an integer by retyping the variables that define the 1846 paper size. 1847 1848 * html/index.html: Update for the 3.9.3 release. 1849 1850 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject 1851 YCbCr subsampled data since tiffcp currently doesn't support it. 1852 http://bugzilla.maptools.org/show_bug.cgi?id=2097 1853 1854 * Update libtool to version 2.2.10. 1855 18562010-06-10 Bob Friesenhahn <[email protected]> 1857 1858 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if 1859 multiplier is zero. 1860 18612010-06-09 Bob Friesenhahn <[email protected]> 1862 1863 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for 1864 CVE-2010-1411 was not complete. 1865 1866 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely 1867 multiply two integers. Returns zero if there is an integer 1868 overflow. 1869 1870 * tools/tiffcp.c (main): tiffcp should not leak memory if an error 1871 is reported when reading the input file. 1872 18732010-06-08 Bob Friesenhahn <[email protected]> 1874 1875 * Update libtool to version 2.2.8. 1876 1877 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of 1878 buffer due to integer overflow in TIFFroundup() and several other 1879 potential overflows. In conjunction with the fix to TIFFhowmany(), 1880 fixes CVE-2010-1411. 1881 1882 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would 1883 result in an integer overflow. This causes TIFFroundup() to also 1884 return zero if there would be an integer overflow. 1885 1886 * contrib: Add an emacs formatting mode footer to all source files 1887 so that emacs can be effectively used. 1888 18892010-06-03 Oliver Chen Feng <[email protected]> 1890 1891 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff 1892 file PAGENUMBER value in sequence for users who care the page 1893 sequence, this will also prevent tiff2pdf from creating pdf file from 1894 the merged tiff file with wrong page sequence. 1895 18962010-05-08 Olivier Paquet <[email protected]> 1897 1898 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order 1899 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag. 1900 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1901 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2). 1902 http://bugzilla.maptools.org/show_bug.cgi?id=2192 1903 19042010-05-07 Frank Warmerdam <[email protected]> 1905 1906 * libtiff/tif_jpeg.c: Ensure that quality is always set in 1907 JPEGPreEncode(), not just when we want to output local tables. 1908 Otherwise the quality used during compression may not be right and 1909 might not match the tables in the tables tag. This bug only occurs 1910 when seeking between directories in the midst of writing blocks. 1911 http://trac.osgeo.org/gdal/ticket/3539 1912 19132010-05-06 Andrey Kiselev <[email protected]> 1914 1915 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html: 1916 Regenerated from the source. 1917 19182010-05-05 Olivier Paquet <[email protected]> 1919 1920 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which 1921 had stopped working. Also made it always print 6 floats instead of 1922 2*SamplesPerPixel. 1923 http://bugzilla.maptools.org/show_bug.cgi?id=2191 1924 http://bugzilla.maptools.org/show_bug.cgi?id=2186 1925 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the 1926 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats. 1927 19282010-05-05 Frank Warmerdam <[email protected]> 1929 1930 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking 1931 if the jpeg table was written. This is a fix for the last fix on 04-21. 1932 19332010-04-21 Frank Warmerdam <[email protected]> 1934 1935 * libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime 1936 JPEGSetupEncode() is called if the tables already seem to be 1937 established. This prevents spurious updates and rewriting of 1938 directories with jpegtables when doing updates to existing images. 1939 http://trac.osgeo.org/gdal/ticket/3539 1940 19412010-04-20 Olivier Paquet <[email protected]> 1942 1943 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1944 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH, 1945 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA. 1946 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2. 1947 http://bugzilla.maptools.org/show_bug.cgi?id=2139 1948 19492010-04-10 Bob Friesenhahn <[email protected]> 1950 1951 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for 1952 when the tag count value is zero. Error handling is still a 1953 regression since in 3.9.2, empty tags are skipped (with a warning) 1954 rather than returning a hard error and refusing to read the file. 1955 1956 * tools/ppm2tiff.c (main): While case for parsing comment line 1957 requires extra parenthesis to work as expected. Reported by 1958 Thomas Sinclair. 1959 19602010-04-02 Frank Warmerdam <[email protected]> 1961 1962 * libtiff/tif_read.c (primarily): Add support for 1963 CHUNKY_STRIP_READ_SUPPORT where large strips are 1964 read in chunks for applications using TIFFReadScanline(). 1965 This is intended to make it more practical work with very 1966 large compressed one-strip files. Feature is off by default. 1967 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro. 1968 http://trac.osgeo.org/gdal/ticket/3514 1969 19702010-03-31 Frank Warmerdam <[email protected]> 1971 1972 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing 1973 directories so previously placed directories will be migrated to 1974 the end of file if needed. 1975 19762010-03-30 Frank Warmerdam <[email protected]> 1977 1978 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64 1979 to support operating on strips/tiles of more than 256MB. 1980 http://trac.osgeo.org/gdal/ticket/3512 1981 19822010-03-10 Bob Friesenhahn <[email protected]> 1983 1984 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so 1985 that it is clearly a memory allocation error message, and also 1986 includes the size of the allocation request. 1987 19882010-02-22 Lee Howard <[email protected]> 1989 1990 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating 1991 the JPEG TIFF as is is not required in order to prevent it from 1992 being unused and filled with invalid data. (Leave it to be 1993 generated by later activity.) 1994 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1995 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip 1996 data rather than skipping them. This fixes the ability to view in 1997 Acrobat Reader, Evince, and Ghostscript. 1998 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1999 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR 2000 strips. 2001 http://bugzilla.maptools.org/show_bug.cgi?id=2029 2002 20032009-12-03 Frank Warmerdam <[email protected]> 2004 2005 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns. 2006 Made so that when working with downsampled images a stub function 2007 reporting an error is used for tif_decoderow. We cannot meaningfully 2008 support reading scanlines in this situation. (#1936) 2009 2010 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after 2011 resetting of the upsampling values (gdal:#3259). 2012 http://bugzilla.maptools.org/show_bug.cgi?id=1936 2013 20142009-11-30 Frank Warmerdam <[email protected]> 2015 2016 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c, 2017 tools/ras2tiff.c: Fix resource leaks on error. 2018 http://bugzilla.maptools.org/show_bug.cgi?id=2121 2019 2020 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling 2021 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead 2022 of as a custom(generic) field to avoid a potential reentrancy problem. 2023 http://bugzilla.maptools.org/show_bug.cgi?id=2125 2024 2025 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h, 2026 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit 2027 const, and display_sRGB static and const. 2028 http://bugzilla.maptools.org/show_bug.cgi?id=2124 2029 20302009-11-04 Bob Friesenhahn <[email protected]> 2031 2032 * libtiff 4.0.0alpha5 released. 2033 20342009-11-03 Bob Friesenhahn <[email protected]> 2035 2036 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This 2037 version has undergone substantial testing with arbitrary sample 2038 bit depths. Also eliminates GCC compilation warnings. 2039 20402009-11-02 Bob Friesenhahn <[email protected]> 2041 2042 * port/libport.h: Add extern declarations for getopt standard 2043 globals. 2044 20452009-10-31 Bob Friesenhahn <[email protected]> 2046 2047 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings 2048 noticed in 64-bit build of libtiff with Visual Studio 2005. 2049 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in 2050 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067 2051 2052 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important 2053 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 - 2054 Visual Studio 2005 64-bit warning in tif_pixarlog.c", 2055 http://bugzilla.maptools.org/show_bug.cgi?id=2068 2056 20572009-10-29 Bob Friesenhahn <[email protected]> 2058 2059 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned 2060 pointer" warnings. 2061 20622009-10-28 Bob Friesenhahn <[email protected]> 2063 2064 * html/tools.html: Add manual page links, and a summary 2065 description of tiffcrop. 2066 20672009-10-07 Bob Friesenhahn <[email protected]> 2068 2069 * configure.ac: x86_64 should use the same fill order as i386. 2070 20712009-09-24 Bob Friesenhahn <[email protected]> 2072 2073 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard 2074 Nolde. Major updates to add significant functionality for reading 2075 and writing tile based images with bit depths not a multiple of 8 2076 which cannot be handled by tiffcp. 2077 20782009-09-03 Bob Friesenhahn <[email protected]> 2079 2080 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs 2081 do_fancy_upsampling=FALSE in order to read raw data. Resolves 2082 "Bug 2090 - OJPEG crash with libjpeg v7". 2083 http://bugzilla.maptools.org/show_bug.cgi?id=2090 2084 20852009-09-03 Frank Warmerdam <[email protected]> 2086 2087 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA 2088 interface when stoponerror is set. 2089 http://bugzilla.maptools.org/show_bug.cgi?id=2071 2090 20912009-08-30 Bob Friesenhahn <[email protected]> 2092 2093 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to 2094 fix build with gcc when using the "-Wformat 2095 -Werror=format-security" flags. 2096 20972009-08-29 Bob Friesenhahn <[email protected]> 2098 2099 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2100 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional 2101 utilities tests. 2102 21032009-08-28 Bob Friesenhahn <[email protected]> 2104 2105 * tools/tiffinfo.c: tiffinfo should return error status to the 2106 caller. Register a private error callback to accomplish that. 2107 2108 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and 2109 PNM formats so that we will be able to test more of the tools. 2110 While adding these test images I notice that bmp2tiff and gif2tiff 2111 only support ancient versions of their respective formats. 2112 21132009-08-27 Bob Friesenhahn <[email protected]> 2114 2115 * libtiff 4.0.0alpha4 released. 2116 2117 * HOWTO-RELEASE: Improved release instructions. 2118 21192009-08-24 Bob Friesenhahn <[email protected]> 2120 2121 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied 2122 fixes for "Bug 2023 - nroff errors in manual pages". 2123 http://bugzilla.maptools.org/show_bug.cgi?id=2023 2124 2125 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 - 2126 CVE-2009-2347 libtiff: integer overflows in various inter-color 2127 space conversion tools". 2128 http://bugzilla.maptools.org/show_bug.cgi?id=2079 2129 2130 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay 2131 Berkenbilt for "Bug 2024 - possible null pointer dereference with 2132 one-line fix". 2133 http://bugzilla.maptools.org/show_bug.cgi?id=2024 2134 2135 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch 2136 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c: 2137 segfault after setting tdir_tag = IGNORE". 2138 http://bugzilla.maptools.org/show_bug.cgi?id=1895 2139 21402009-08-23 Bob Friesenhahn <[email protected]> 2141 2142 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing 2143 tiffcrop.sh into a collection of many specific tests. Re-wrote 2144 all of the existing tests to be based on some simple shell 2145 functions. Make distcheck works again. 2146 2147 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and 2148 added 'memcheck' and 'ptrcheck' targets to make it easy to run the 2149 tests under valgrind. 2150 21512009-08-21 Bob Friesenhahn <[email protected]> 2152 2153 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH 2154 build. 2155 2156 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not 2157 actually activated since it needed to be enabled in this 2158 Makefile.am. Also activated parallel-tests mode since it offers 2159 useful features such as per-test .log files and a summary test 2160 report .log file. 2161 21622009-08-20 Bob Friesenhahn <[email protected]> 2163 2164 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11, 2165 libtool 2.2.6. Enabled support for silent build rules 2166 (--enable-silent-rules or 'make V=0') and colorized tests. 2167 2168 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release. 2169 21702009-06-30 Frank Warmerdam <[email protected]> 2171 2172 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression. 2173 2174 * tools/tiffcp.c: add -c sgilog support. 2175 2176 * libtiff/tif_luv.c: correct return codes from encoderow to be 2177 1 on success instead of zero. 2178 http://bugzilla.maptools.org/show_bug.cgi?id=2069 2179 2180 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from 2181 #1085 for a better underflow fix that errors properly. 2182 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2183 http://bugzilla.maptools.org/show_bug.cgi?id=1985 2184 21852009-06-26 Frank Warmerdam <[email protected]> 2186 2187 * libtiff/tif_strip.c: Remove an inappropriate assertion that often 2188 fails on oddly sized 12bit jpeg compressed ycbcr images. 2189 21902009-06-22 Frank Warmerdam <[email protected]> 2191 2192 * libtiff/tif_lzw.c: Fix buffer underflow bug. 2193 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2194 21952009-06-21 Frank Warmerdam <[email protected]> 2196 2197 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support 2198 for dual mode 8/12 bit jpeg support. 2199 22002009-06-03 Frank Warmerdam <[email protected]> 2201 2202 * libtiff/tif_write.c: do not override the planar configuration to be 2203 contig for one sample files if planar configuration is already set. 2204 http://bugzilla.maptools.org/show_bug.cgi?id=2057 2205 22062009-06-02 Frank Warmerdam <[email protected]> 2207 2208 * libtiff/libtiff.def: Add TIFFUnsetField. 2209 22102009-05-03 Frank Warmerdam <[email protected]> 2211 2212 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various 2213 error reports to use "%s" as format string. 2214 http://trac.osgeo.org/gdal/ticket/2976 2215 22162009-03-12 Frank Warmerdam <[email protected]> 2217 2218 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining 2219 for some codecs (#2020). 2220 22212009-02-12 Frank Warmerdam <[email protected]> 2222 2223 * libtiff/tif_luv.c: Fix handling of tiled logluv images. 2224 http://bugzilla.maptools.org/show_bug.cgi?id=2005 2225 22262009-02-09 Frank Warmerdam <[email protected]> 2227 2228 * libtiff/tif_dirread.c: Improve allocation safety when allocated 2229 buffer for large tags. (#1998) Related to (#1993) 2230 22312009-02-06 Frank Warmerdam <[email protected]> 2232 2233 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the 2234 test suite should pass. 2235 22362009-02-05 Frank Warmerdam <[email protected]> 2237 2238 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size, 2239 but at the 2GB boundary to avoid overflow on 32bit systems. 2240 http://bugzilla.maptools.org/show_bug.cgi?id=1993 2241 2242 * libtiff/tif_dirread.c: Remove some assertions that blow due to 2243 corrupt files rather than in response to library internal 2244 inconsistencies. 2245 http://bugzilla.maptools.org/show_bug.cgi?id=1995 2246 http://bugzilla.maptools.org/show_bug.cgi?id=1991 2247 2248 * libtiff/tif_dirread.c: Fixed testing for failed result from 2249 TIFFReadDirectoryFindFieldInfo(). 2250 http://bugzilla.maptools.org/show_bug.cgi?id=1992 2251 22522009-01-23 Frank Warmerdam <[email protected]> 2253 2254 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors. 2255 http://bugzilla.maptools.org/show_bug.cgi?id=1911 2256 2257 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset. 2258 2259 http://bugzilla.maptools.org/show_bug.cgi?id=1924 2260 2261 * tools/tiffcrop.c: initialize xres/yres values. 2262 2263 * test/*.sh - default ${srcdir} to local directory. 2264 2265 * test/common.sh - start verbose mode after common settings. 2266 2267 * libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to 2268 avoid type mismatches on different platforms. 2269 http://bugzilla.maptools.org/show_bug.cgi?id=1889 2270 22712009-01-22 Frank Warmerdam <[email protected]> 2272 2273 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c, 2274 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues. 2275 2276 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT 2277 defined, primarily to reduce prototype warnings on windows. 2278 2279 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings 2280 about unused parameters, and uninitialized variables. 2281 22822009-01-21 Bob Friesenhahn <[email protected]> 2283 2284 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in 2285 order to trace full execution detail while executing the test suite. 2286 22872009-01-20 Frank Warmerdam <[email protected]> 2288 2289 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv. 2290 22912009-01-20 Bob Friesenhahn <[email protected]> 2292 2293 * test/Makefile.am (CLEANFILES): Make sure that test output files 2294 are removed by 'make clean' 2295 2296 * Update autotools for 4.0.0 beta3 2297 2298 * 4.0.0 beta3 produced. 2299 23002009-01-12 Bob Friesenhahn <[email protected]> 2301 2302 * test/tiffcrop.sh: New test script for tiffcrop from Richard 2303 Nolde. 2304 2305 * tools/tiff2ps.c: Remove spurious message to stderr. 2306 23072009-01-11 Bob Friesenhahn <[email protected]> 2308 2309 * tools/tiff2ps.c: Incorporated significant functionality update 2310 from Richard Nolde. In particular, support for rotating the image 2311 by 90, 180, 270, and 'auto' has been added. 2312 2313 * man/tiffcrop.1: Incorporated documentation updates from Richard 2314 Nolde. 2315 2316 * tools/tiffcrop.c: Incorporated significant functionality update 2317 from Richard Nolde. 2318 23192008-12-31 Bob Friesenhahn <[email protected]> 2320 2321 * libtiff/tiffio.h: GCC will now validate format specifications 2322 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and 2323 TIFFWarningExt() in order to reveal bugs. 2324 2325 * Many fixes throughout to work better as a 64-bit build. 2326 23272008-12-30 Bob Friesenhahn <[email protected]> 2328 2329 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length 2330 tags now require 64-bit parameter rather than 32-bit. 2331 2332 * libtiff/tif_dirread.c: Fixed issues with unaligned access to 2333 64-bit values. 2334 2335 * tools/thumbnail.c: Eliminate crash noticed while running test 2336 suite. 2337 23382008-12-29 Bob Friesenhahn <[email protected]> 2339 2340 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer): 2341 Initialize stack variables to avoid compiler warning. 2342 2343 * tools/tiffinfoce.c (main): Use toff_t for offset type when 2344 retrieving offset of EXIF IFD. 2345 2346 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the 2347 TIFFClientOpen() callback and other external function definitions. 2348 2349 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit 2350 type now. Fixes crash when dumping files containing an EXIF IFD. 2351 2352 * m4/libtool.m4: Update to libtool 2.2.6. 2353 23542008-12-21 Frank Warmerdam <[email protected]> 2355 2356 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function. 2357 2358 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full 2359 strip for the last partial strip in a jpeg compressed file. 2360 http://bugzilla.maptools.org/show_bug.cgi?id=1981 2361 23622008-10-29 Frank Warmerdam <[email protected]> 2363 2364 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when 2365 we take the shortcut to only update the strip/tile offsets in place. 2366 http://trac.osgeo.org/gdal/ticket/2621 2367 23682008-10-21 Andrey Kiselev <[email protected]> 2369 2370 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with 2371 the older versions retained). 2372 23732008-10-09 Frank Warmerdam <[email protected]> 2374 2375 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using 2376 IPP enabled version of libjpeg from Intel. 2377 http://bugzilla.maptools.org/show_bug.cgi?id=1951 2378 23792008-09-05 Andrey Kiselev <[email protected]> 2380 2381 * tools/tiffsplit.c: Use byte counts of proper size (uint64). 2382 Required for libtiff 4.0. 2383 2384 * tools/tiffsplit.c: Use dynamically allocated array instead of static 2385 when constructing output file names. 2386 23872008-09-03 Andrey Kiselev <[email protected]> 2388 2389 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when 2390 doing the filename/path construction. 2391 2392 * tools/tiff2pdf.c: More appropriate format string in 2393 t2p_write_pdf_string(); avoid signed/unsigned mismatch. 2394 2395 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug 2396 2397 http://bugzilla.maptools.org/show_bug.cgi?id=1929 2398 2399 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes 2400 CVE-2008-2327 security issue. 2401 24022008-09-01 Frank Warmerdam <[email protected]> 2403 2404 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function. 2405 2406 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD 2407 depending on whether the file is bigtiff or classic tiff. 2408 http://bugzilla.maptools.org/show_bug.cgi?id=1917 2409 24102008-08-12 Edward Lam <[email protected]> 2411 2412 * tools/tiffdump.c: When compiling for Microsoft Windows, apply 2413 consistent (__int64) casting when testing if _lseeki64 has 2414 successfully seeked as requested. This is necessary for large 2415 file support to work since off_t is only 32-bit. 2416 24172008-07-29 Frank Warmerdam <[email protected]> 2418 2419 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or 2420 the subsampling values not being 1, 2 or 4 (for jpeg compressed images) 2421 with control logic to return runtime errors (c/o Even Rouault) (#1927). 2422 24232008-06-17 Frank Warmerdam <[email protected]> 2424 2425 * tools/tiffcrop.c: Fix some portability problems. 2426 2427 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are 2428 used in tif_jpeg.c. 2429 2430 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags 2431 as TIFFOpen(). 2432 24332008-06-01 Frank Warmerdam <[email protected]> 2434 2435 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures 2436 like Sparc/Solaris. 2437 http://bugzilla.maptools.org/show_bug.cgi?id=1892 2438 24392008-05-27 Frank Warmerdam <[email protected]> 2440 2441 * libtiff.def: Add TIFFFindField 2442 http://bugzilla.maptools.org/show_bug.cgi?id=1891 2443 24442008-05-26 Frank Warmerdam <[email protected]> 2445 2446 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused. 2447 2448 * li2008-04-15 Andrey Kiselev <[email protected]> 2449 2450btiff/tif_win32.c: Replace custom Win32 memory api with generic 2451 POSIX one. No apparent value to use of GlobalAlloc() in the modern 2452 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885 2453 2454 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items 2455 in windows version (care of Edward Lam). 2456 24572008-05-24 Frank Warmerdam <[email protected]> 2458 2459 * tif_codec.c: Avoid NULL pointer dereferencing for exotic 2460 compression codec codes. 2461 2462 * tif_dirwrite.c: fix potential memory leak. 2463 2464 * tif_dirread.c: Fix unchecked malloc result. 2465 24662008-05-24 Bob Friesenhahn <[email protected]> 2467 2468 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh 2469 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh 2470 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh 2471 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh 2472 tiffdump.sh tiffinfo.sh}: Added more test scripts based on 2473 suggestions from Lee Howard posted to the tiff list on 13 Sep 2474 2007. 2475 24762008-05-23 Frank Warmerdam <[email protected]> 2477 2478 * libtiff/tif_fax3.c: Add an assert in an effort to detect a 2479 possible runtime problem reported by coverity. 2480 2481 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str. 2482 2483 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde. 2484 http://bugzilla.maptools.org/show_bug.cgi?id=1888 2485 2486 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak. 2487 2488 * tools/rgb2ycbcr.c: fix memory leak of raster buffer. 2489 2490 * tools/tiffcp.c: Simplify inknames code to avoid pointless test. 2491 Cleanup scanline allocation to avoid coverity warning. 2492 2493 * tools/thumbnail.c: Check for TIFFOpen() failure. 2494 24952008-05-18 Frank Warmerdam <[email protected]> 2496 2497 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT 2498 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear 2499 why this is needed. 2500 25012008-05-09 Bob Friesenhahn <[email protected]> 2502 2503 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like 2504 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4". 2505 25062008-04-15 Andrey Kiselev <[email protected]> 2507 2508 * test/: Test suite updated. Everything is passed now. 2509 2510 * libtiff/tif_dirinfo.c: Fixed description of the 2511 TIFFTAG_NUMBEROFINKS tag. 2512 25132008-04-14 Andrey Kiselev <[email protected]> 2514 2515 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}: 2516 Get rid of some of "dereferencing type-punned" warnings by converting 2517 tdir_offset field of TIFFDirEntry structure into union. 2518 25192008-04-10 Andrey Kiselev <[email protected]> 2520 2521 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}: 2522 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out 2523 from the public interface. Type of its 'count' parameter changed 2524 from uint32 to tmsize_t. 2525 2526 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields 2527 of the tiff structure have the size_t type instead of uint32. 2528 25292008-04-09 Andrey Kiselev <[email protected]> 2530 2531 * tools/tiffdump.c: Added support for MSVS 6.0. 2532 2533 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat() 2534 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating 2535 point values on MSVS 6.0 platform. 2536 25372008-03-14 Frank Warmerdam <[email protected]> 2538 2539 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in 2540 TIFFReadDirEntryArray() since they are interfering with seemingly 2541 legitimate files. http://trac.osgeo.org/gdal/ticket/2005 2542 25432008-02-09 Joris Van Damme <[email protected]> 2544 2545 * tif_dirread.c: Added handling for the case of number of values for 2546 PageNumber tag different from 2 (previously resulted in an assert 2547 indicating lack of handling and was forgotten about) 2548 25492008-02-01 Frank Warmerdam <[email protected]> 2550 2551 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on 2552 the actual jpeg data stream if the first strip/tile has zero size. 2553 This is the case when GDAL creates a new file with zero sizes, closes 2554 and reopens it. 2555 25562008-01-07 Frank Warmerdam <[email protected]> 2557 2558 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam). 2559 25602008-01-01 Frank Warmerdam <[email protected]> 2561 2562 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions. 2563 2564 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean 2565 targets. 2566 2567 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c 2568 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005 2569 (x64). 2570 2571 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag() 2572 and TIFFFieldWithName() now return TIFFField pointers instead of 2573 TIFFFieldInfo pointers. 2574 2575 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't 2576 exist. This makes it compile again on Windows 2577 2578 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c, 2579 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64. 2580 2581 * test/rewrite_tag.c: New test for TIFFRewriteField(). 2582 25832007-12-31 Frank Warmerdam <[email protected]> 2584 2585 * tif_dirwrite.c: Added TIFFRewriteField(). This new function 2586 rewrites one field "on disk" updating an existing directory 2587 entry. Lots of limitations still... 2588 2589 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of 2590 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that 2591 the strip offset/size values are dirty but nothing else about the 2592 directory is dirty. In flush handle "just stripmaps dirty" as a 2593 special case that just rewrites these values without otherwise 2594 modifying the directory on disk using TIFFRewriteField(). 2595 2596 We also modify logic so that in update mode the directory is not 2597 marked dirty on read, but only when something is changed. This 2598 means we need to keep track of updates to the stripmap stuff in 2599 TIFFAppendToStrip(). 2600 26012007-12-10 Frank Warmerdam <[email protected]> 2602 2603 * tif_jpeg.c: Improve ability to switch between encoding and decoding 2604 in the jpeg code (gdal bug #2033). 2605 26062007-11-23 Frank Warmerdam <[email protected]> 2607 2608 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c, 2609 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the 2610 rawcp/rawcc buffer are for writing and thus may require flushing. 2611 Necessary to distinguish whether they need to be written to disk when 2612 in mixed read/write mode and doing a mixture of writing followed by 2613 reading. http://trac.osgeo.org/gdal/ticket/1758 2614 26152007-11-23 Andrey Kiselev <[email protected]> 2616 2617 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches 2618 from Alexey Chupahin. 2619 26202007-11-02 Frank Warmerdam <[email protected]> 2621 2622 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for 2623 establishing if an existing tile can be rewritten to the same location 2624 by comparing the current size to all the other blocks in the same 2625 directory. This is dangerous in many situations and can easily 2626 corrupt a file. (observed in esoteric GDAL situation that's hard to 2627 document). This change involves leaving the stripbytecount[] values 2628 unaltered till TIFFAppendToStrip(). Now we only write a block back 2629 to the same location it used to be at if the new data is the same 2630 size or smaller - otherwise we move it to the end of file. 2631 2632 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile 2633 data when writing the directory just because we have BEENWRITING at 2634 some point in the past. This was causing odd junk to be written out 2635 in a tile of data when a single tile had an interleaving of reading 2636 and writing with reading last. (highlighted by gdal 2637 autotest/gcore/tif_write.py test 7. 2638 2639 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid 2640 modifying callers buffer. 2641 http://trac.osgeo.org/gdal/ticket/1965 2642 2643 * tif_predict.c/h: more fixes related to last item, keeping a 2644 distinct pfunc for encode and decode cases as these were getting 2645 mixed up sometimes. 2646 http://trac.osgeo.org/gdal/ticket/1948 2647 26482007-11-01 Frank Warmerdam <[email protected]> 2649 2650 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that 2651 predictor based encoding and decoding works in read-write update 2652 mode properly. 2653 http://trac.osgeo.org/gdal/ticket/1948 2654 26552007-10-24 Joris Van Damme <[email protected]> 2656 2657 * tif_dirread.c: Fixed problem with bogus file triggering 2658 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in 2659 ChopUpSingleUncompressedStrip 2660 26612007-10-22 Joris Van Damme <[email protected]> 2662 2663 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images 2664 at best, access violation at worst, when subsampled JPEG compressed imagery 2665 is decoded without the JPEG_COLORMODE feature 2666 26672007-10-11 Frank Warmerdam <[email protected]> 2668 2669 * html/index.html: Update "people responsible" section. 2670 26712007-10-05 Frank Warmerdam <[email protected]> 2672 2673 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases 2674 as reported on the mailing list. 2675 26762007-10-01 Joris Van Damme <[email protected]> 2677 2678 * changed some more incorrect %lud printf flags to %lu 2679 26802007-09-29 Joris Van Damme <[email protected]> 2681 2682 * tif_dirread.c: Strip chopping interfered badly with uncompressed 2683 subsampled images because it tried to divide subsampled rowblocks, 2684 leading to all sorts of errors throughout the library for these 2685 images. Fixed by making strip chopping divide in row counts that 2686 are a multiple of vertical subsampling value. 2687 26882007-09-28 Joris Van Damme <[email protected]> 2689 2690 * tif_dirread.c: Logical cast working around compiler warning 2691 2692 * tif_read.c: Correction of some error flags and parameter lists 2693 26942007-09-27 Joris Van Damme <[email protected]> 2695 2696 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust 2697 when dealing with large bitspersample values, shutting up purification 2698 tools that warn about truncation, though it remains incorrect and 2699 indicates a conceptual problem there. 2700 2701 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading 2702 of first IFD) to proper place because it badly interfered with memory 2703 mapping, resulting in mapping flag even with dummy mapping functions 2704 that returned 0 whilst at the same time the mapping tif_size wasn't 2705 set, thus resulting in continuous incorrect beyond-eof errors. 2706 27072007-09-24 Joris Van Damme <[email protected]> 2708 2709 * tif_dirinfo.c: Fixed (MSVC) compiler reports about 2710 inconsistent use of const in tiffFields and exifFields definition 2711 27122007-09-20 Frank Warmerdam <[email protected]> 2713 2714 * tif_dirwrite.c: Always write tile/strip offsets and sizes 2715 using LONG8 type when output format is BigTIFF. The 2716 TIFFWriteDirectoryTagLongLong8Array() function was restructured 2717 accordingly. 2718 2719 * tif_dirread.c: Improvements to error reporting text in 2720 TIFFFetchDirectory(). 2721 27222007-09-19 Bob Friesenhahn <[email protected]> 2723 2724 * test/images: Added a small collection of test images for use by 2725 test programs and scripts. 2726 * test/tiffinfo.sh: A trivial example test script. 2727 * test/common.sh: Added small script for setting the environment 2728 used by script-based tests. 2729 27302007-08-24 Frank Warmerdam <[email protected]> 2731 2732 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed 2733 zero when writing directory contents to preserve the ability to 2734 rewrite directories in place, even in the middle of a directory 2735 chain. 2736 2737 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field 2738 definitions that are missing. Existing definitions are silently 2739 ignored. 2740 2741 * tif_dirread.c: Add runtime error for fields for which no definition 2742 is found (in addition to an assert for developers) in 2743 TIFFFetchNormalTag(). Not sure if this is needed, but it seems 2744 prudent. 2745 27462007-08-10 Joris Van Damme <[email protected]> 2747 2748 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer 2749 from _TIFFRGBAImage structure to revert unwanted ABI change. 2750 27512007-08-10 Joris Van Damme <[email protected]> 2752 2753 * libtiff/tif_win32.c: use SetFilePointer instead of 2754 SetFilePointerEx, as per bug 2755 2756 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580 2757 27582007-07-19 Andrey Kiselev <[email protected]> 2759 2760 * libtiff/tif_stream.cxx: Put all callback functions declarations 2761 inside extern "C" block. 2762 2763 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c, 2764 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf() 2765 formatter instead of "%lld" with MSVC compiler. 2766 2767 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and 2768 _TIFFUInt64ToDouble() functions. 2769 27702007-07-18 Andrey Kiselev <[email protected]> 2771 2772 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit 2773 integer constants. 2774 2775 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h, 2776 remove tif_config.h/tiffconf.h during cleaning. As per bug 2777 2778 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573 2779 2780 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug 2781 2782 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577 2783 27842007-07-13 Andrey Kiselev <[email protected]> 2785 2786 * libtiff 4.0.0alpha released. 2787 27882007-07-12 Andrey Kiselev <[email protected]> 2789 2790 * tools/tiff2pdf.c: Added missed extern optind as per bug 2791 2792 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567 2793 2794 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c, 2795 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag 2796 extending scheme completed. 2797 27982007-07-11 Bob Friesenhahn <[email protected]> 2799 2800 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to 2801 use standard C++ library size types and attempt to detect overflow 2802 cases. 2803 28042007-07-08 Andrey Kiselev <[email protected]> 2805 2806 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h, 2807 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new 2808 tag extending scheme. Use the new scheme everywhere. 2809 2810 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c, 2811 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c, 2812 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}: 2813 TIFFFIeldInfo structure replaced with TIFFField structure. 2814 TIFFFieldInfo retained for the backward compatibility. 2815 28162007-07-05 Bob Friesenhahn <[email protected]> 2817 2818 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not 2819 defined. 2820 28212007-07-04 Andrey Kiselev <[email protected]> 2822 2823 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused 2824 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration 2825 removed. 2826 2827 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move 2828 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS, 2829 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory. 2830 These tags are not codec-specific and relate to image content, so 2831 process them as other normal tags. 2832 2833 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the 2834 public tiffio.h to private tif_dir.h. 2835 2836 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and 2837 outdated. 2838 28392007-07-03 Andrey Kiselev <[email protected]> 2840 2841 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c, 2842 tif_win3.c}: Obsoleted portability stuff removed. 2843 2844 * tools/tiff2ps.c: Added support 16-bit images as per bug 2845 2846 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566 2847 2848 Patch from William Bader. 2849 2850 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and 2851 significant upgrade of the whole utility as per bug 2852 2853 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560 2854 2855 Now we don't need tiffiop.h in tiff2pdf anymore and will open output 2856 PDF file using TIFFClientOpen() machinery as it is implemented 2857 by Leon Bottou. 2858 28592007-06-26 Bob Friesenhahn <[email protected]> 2860 2861 * configure.ac: Fix typo when substituting value for unsigned 8 bit type. 2862 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic. 2863 Added support for a TIFF_SSIZE_T in order to return memory sizes but still 2864 allow returning -1 for errors. 2865 * libtiff/tiffconf.vc.h: Add porting type defintions for WIN32. 2866 28672007-06-25 Bob Friesenhahn <[email protected]> 2868 2869 * port/strtoull.c: New porting function in case strtoull() is not 2870 available on the target system. 2871 * configure.ac: Add configure support for determining sized types 2872 in a portable way and performing necessary substitutions in 2873 tif_config.h and tiffconf.h. Updated tiff.h to use the new 2874 definitions. 2875 28762007-04-27 Andrey Kiselev <[email protected]> 2877 2878 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug 2879 2880 http://bugzilla.remotesensing.org/show_bug.cgi?id=154 2881 28822007-04-07 Andrey Kiselev <[email protected]> 2883 2884 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c, 2885 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c, 2886 tif_predict.c, tif_zip.c}: Finally fix bug 2887 2888 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274 2889 2890 by introducing _TIFFMergeFieldInfo() returning integer error status 2891 instead of void in case of problems with field merging (e.g., if the 2892 field with such a tag already registered). TIFFMergeFieldInfo() in 2893 public API remains void. Use _TIFFMergeFieldInfo() everywhere and 2894 check returned value. 2895 28962007-04-07 Frank Warmerdam <[email protected]> 2897 2898 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output 2899 blocks in TIFF_DownSample_Subsampled() (bug 1542). 2900 29012007-04-06 Frank Warmerdam <[email protected]> 2902 2903 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it 2904 will convert from decompressor to compressor or compress to decompress 2905 if required by the force arguments. This works around a problem in 2906 where the JPEGFixupTestSubsampling() may cause a decompressor to 2907 be setup on a directory when later a compressor is required with the 2908 force flag set. Occurs with the addtiffo program for instance. 2909 29102007-04-06 Andrey Kiselev <[email protected]> 2911 2912 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in 2913 functionality from Richard Nolde. As per bug 2914 2915 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525 2916 29172007-03-28 Frank Warmerdam <[email protected]> 2918 2919 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC. 2920 29212007-03-17 Joris Van Damme <[email protected]> 2922 2923 * start of BigTIFF upgrade - CVS HEAD unstable until further notice 2924 29252007-03-07 Joris Van Damme <[email protected]> 2926 2927 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading 2928 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling 2929 factor. This bug is mentioned in: 2930 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390 2931 http://www.asmail.be/msg0054766825.html 2932 29332007-03-07 Joris Van Damme <[email protected]> 2934 2935 * libtiff/tif_win32.c: made inclusion of windows.h unconditional 2936 2937 * libtiff/tif_win32.c: replaced preprocessor indication for consiously 2938 unused arguments by standard C indication for the same 2939 29402007-02-27 Andrey Kiselev <[email protected]> 2941 2942 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte 2943 counters in TIFFFetchData(). Should finally fix the issue 2944 2945 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2946 29472007-02-24 Andrey Kiselev <[email protected]> 2948 2949 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount. 2950 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350 2951 2952 * libtiff/tif_dirread.c: Added special function to handle 2953 SubjectDistance EXIF tag as per bug 2954 2955 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362 2956 2957 * tools/tiff2pdf.c: Do not assume inches when the resolution units 2958 do not specified. As per bug 2959 2960 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366 2961 2962 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if 2963 it was set as infinite. As per bug 2964 2965 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368 2966 2967 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed 2968 by Richard Nolde. As per bug 2969 2970 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383 2971 29722007-02-22 Andrey Kiselev <[email protected]> 2973 2974 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with 2975 ExtraSamples == 999 produced by Corel Draw. As per bug 2976 2977 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490 2978 2979 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters 2980 changed from tsize_t to uint32 to be able to work with data arrays 2981 larger than 2GB. Fixes bug 2982 2983 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2984 2985 Idea submitted by Matt Hancher. 2986 29872007-01-31 Andrey Kiselev <[email protected]> 2988 2989 * tools/tif2rgba.c: This utility does not work properly on big-endian 2990 architectures. It was fixed including the bug 2991 2992 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149 2993 29942007-01-15 Mateusz Loskot <[email protected]> 2995 2996 * Submitted libtiff port for Windows CE platform 2997 * libtiff/tif_config.wince.h: Added configuration header for WinCE. 2998 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE. 2999 * libtiff/tif_wince.c: Added WinCE-specific implementation of some 3000 functons from tif_win32.c. 3001 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c. 3002 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some 3003 standard header files for Windows CE build. 3004 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE. 3005 30062006-11-19 Frank Warmerdam <[email protected]> 3007 3008 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if 3009 we move a strip. 3010 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359 3011 30122006-10-13 Andrey Kiselev <[email protected]> 3013 3014 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported 3015 in Gentoo bug (): 3016 3017 http://bugs.gentoo.org/show_bug.cgi?id=142383 3018 3019 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable. 3020 Though it is still far from the state of being working and useful. 3021 30222006-10-12 Andrey Kiselev <[email protected]> 3023 3024 * libtiff/tif_fax3.c: Save the state of printdir codec dependent 3025 method. 3026 3027 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method 3028 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273 3029 3030 * libtiff/tif_win32.c: Fixed problem with offset value manipulation 3031 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322 3032 3033 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for 3034 vulnerabilities, reported in Gentoo bug (): 3035 3036 http://bugs.gentoo.org/show_bug.cgi?id=142383 3037 30382006-09-28 Andrey Kiselev <[email protected]> 3039 3040 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple 3041 vulnerabilities, as per Gentoo bug (): 3042 3043 http://bugs.gentoo.org/show_bug.cgi?id=142383 3044 30452006-09-27 Frank Warmerdam <[email protected]> 3046 3047 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing 3048 encoding and decoding on the same read-write TIFF handle. The LZW 3049 code can now maintain encode and decode state at the same time. The 3050 ZIP code will switch back and forth as needed. 3051 http://bugzilla.remotesensing.org/show_bug.cgi?id=757 3052 30532006-09-20 Frank Warmerdam <[email protected]> 3054 3055 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and 3056 tif_config.vc.h for easier identification by folks using an IDE. 3057 30582006-07-25 Frank Warmerdam <[email protected]> 3059 3060 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron 3061 30622006-07-19 Frank Warmerdam <[email protected]> 3063 3064 * tif_dirwrite.c: take care not to flush out buffer of strip/tile 3065 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates 3066 to bug report by Peng Gao with black strip at bottom of images. 3067 30682006-07-12 Frank Warmerdam <[email protected]> 3069 3070 * tif_dirwrite.c: make sure to use uint32 for wordcount in 3071 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields. 3072 It already seems to have been done for other field types. Needed 3073 for "tiffset" on files with geotiff ascii text. 3074 30752006-07-04 Bob Friesenhahn <[email protected]> 3076 3077 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c} 3078 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and 3079 its use does not appear to be required, so use it only when it is 3080 available. 3081 30822006-06-24 Andrey Kiselev <[email protected]> 3083 3084 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961). 3085 3086 * libtiff/tif_dirread.c: Move IFD fetching code in the separate 3087 function TIFFFetchDirectory() avoiding code duplication in 3088 TIFFReadDirectory() and TIFFReadCustomDirectory(). 3089 30902006-06-19 Frank Warmerdam <[email protected]> 3091 3092 * tools/tiff2pdf.c: Fix handling of -q values. 3093 http://bugzilla.remotesensing.org/show_bug.cgi?id=587 3094 30952006-06-17 Frank Warmerdam <[email protected]> 3096 3097 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled 3098 files. Modified TIFFReadDirectory() to not invoke 3099 EstimateStripByteCounts() for case where entry 0 and 1 are unequal 3100 but one of them is zero. 3101 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204 3102 31032006-06-08 Andrey Kiselev <[email protected]> 3104 3105 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping 3106 checking code in the separate function TIFFCheckDirOffset(). 3107 3108 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function. 3109 3110 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug 3111 3112 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191 3113 3114 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug 3115 3116 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194 3117 3118 * tools/tiff2pdf.c: Fixed buffer overflow condition in 3119 t2p_write_pdf_string() as per bug 3120 3121 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196 3122 31232006-06-07 Andrey Kiselev <[email protected]> 3124 3125 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added 3126 support for JBIG compression scheme (34661 code) contributed by Lee 3127 Howard. As per bug 3128 3129 http://bugzilla.remotesensing.org/show_bug.cgi?id=896 3130 3131 * configure, configure.ac: OJPEG support enabled by default. 3132 3133 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch. 3134 31352006-06-03 Bob Friesenhahn <[email protected]> 3136 3137 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in 3138 TIFFPrintDirectory(). Joris Van Damme authored the fix. 3139 31402006-04-21 Andrey Kiselev <[email protected]> 3141 3142 * tools/tiff2pdf.c: Unified line ending characters (always use '\n') 3143 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163 3144 3145 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am, 3146 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}: 3147 Added support for OpenVMS by Alexey Chupahin, [email protected]. 3148 31492006-04-20 Andrey Kiselev <[email protected]> 3150 3151 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}: 3152 Properly set the binary mode for stdin stream as per bug 3153 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141 3154 3155 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1, 3156 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1, 3157 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1, 3158 tiffset.1}: Improvements in page formatting as per bug 3159 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140 3160 3161 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed 3162 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139 3163 31642006-04-18 Frank Warmerdam <[email protected]> 3165 3166 * nmake.opt: use /EHsc for VS2005 compatibility. Also define 3167 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005. 3168 31692006-04-12 Joris Van Damme <[email protected]> 3170 3171 * libtiff/tif_getimage.c: Added support for planarconfig separate 3172 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1]) 3173 31742006-04-11 Joris Van Damme <[email protected]> 3175 3176 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines 3177 - Conversion of unassociated alpha to associated alpha now done with 3178 more performant LUT, and calculation more correct 3179 - Conversion of 16bit data to 8bit data now done with 3180 more performant LUT, and calculation more correct 3181 - Bugfix of handling of 16bit RGB with unassociated alpha 3182 31832006-04-11 Joris Van Damme <[email protected]> 3184 3185 * libtiff/tif_getimage.c: 3186 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated 3187 buffer for alpha strile and filled it, only to never read it back. 3188 Removed allocation and fill. 3189 - Minor rename of vars in gtTileSeparate and gtStripSeparate 3190 anticipating planned functionality extension 3191 31922006-04-08 Joris Van Damme <[email protected]> 3193 3194 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase 3195 and pickTileSeparateCase to PickSeparateCase as both work on strips as 3196 well 3197 3198 * libtiff/tif_getimage.c: moved img->get selection from 3199 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create 3200 logical hook for planned functionality extension 3201 32022006-04-08 Joris Van Damme <[email protected]> 3203 3204 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence 3205 of inappropriate use of jpeg_abort instead of jpeg_destroy 3206 32072006-04-07 Joris Van Damme <[email protected]> 3208 3209 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in 3210 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour 3211 on subsampled images - this ought to get sorted when we feel brave 3212 enough to replace TIFFScanlineSize alltogether 3213 3214 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip 3215 32162006-04-04 Joris Van Damme <[email protected]> 3217 3218 * libtiff/tiffio.h: added new type tstrile_t 3219 3220 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips 3221 to new tstrile_t, types of td_stripoffset and td_stripbytecount to 3222 toff_t* 3223 3224 * libtiff/tif_ojpeg.c: totally new implementation 3225 3226 * libtiff/tif_dirread.c: added several hacks to suit new support of 3227 OJPEG 3228 3229 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling 3230 of OJPEG images in favor of tif_getimage.c native handling of 3231 YCbCr and desubsampling 3232 32332006-03-29 Frank Warmerdam <[email protected]> 3234 3235 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric 3236 interpretation causes the "upsampled" flag to be recomputed. Fixes 3237 peculiar bug where photometric flag had to be set before jpegcolormode 3238 flag. 3239 32402006-03-25 Joris Van Damme <[email protected]> 3241 3242 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw 3243 3244 * libtiff/tif_strip.c: temporarilly added two new versions of 3245 TIFFScanlineSize 3246 - TIFFNewScanlineSize: proposed new version, after all related 3247 issues and side-effects are sorted out 3248 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change 3249 This needs further sorting out. 3250 32512006-03-25 Joris Van Damme <[email protected]> 3252 3253 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size 3254 of last truncated strip data to TIFFWriteEncodedStrip 3255 32562006-03-25 Joris Van Damme <[email protected]> 3257 3258 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw 3259 32602006-03-25 Joris Van Damme <[email protected]> 3261 3262 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile 3263 3264 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile 3265 3266 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to 3267 prepare the path for new tif_ojpeg.c 3268 32692006-03-23 Andrey Kiselev <[email protected]> 3270 3271 * libtiff 3.8.2 released. 3272 3273 * tools/Makefile.am: Use runtime paths linker flags when rpath 3274 option enabled. 3275 32762006-03-21 Andrey Kiselev <[email protected]> 3277 3278 * libtiff/libtiff.def: Added missed exports as per bug 3279 http://bugzilla.remotesensing.org/attachment.cgi?id=337 3280 3281 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc, 3282 tools/Makefile.vc: Makefiles improvements as per bug 3283 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128 3284 3285 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h}, 3286 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions 3287 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127 3288 3289 * libtiff/tif_strip.c: Take subsampling in account when calculating 3290 TIFFScanlineSize(). 3291 3292 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length. 3293 32942006-03-17 Andrey Kiselev <[email protected]> 3295 3296 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug 3297 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125 3298 3299 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug 3300 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124 3301 33022006-03-16 Andrey Kiselev <[email protected]> 3303 3304 * libtiff/tiffiop.h: Added decalration for 3305 _TIFFSetDefaultCompressionState(). 3306 3307 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c, 3308 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all 3309 codec cleanup methods. As per bug 3310 3311 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120 3312 33132006-03-15 Andrey Kiselev <[email protected]> 3314 3315 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As 3316 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119 3317 3318 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength. 3319 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110 3320 3321 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro 3322 removed; move here the STRIP_SIZE_DEFAULT macro definition. 3323 3324 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT 3325 macro definition. 3326 3327 * libtiff/tif_dir.c: Use double type instead of dblparam_t. 3328 33292006-03-14 Andrey Kiselev <[email protected]> 3330 3331 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence 3332 in TIFFReadDirectory, because it is always set at the start of 3333 function and we allow TIFFs without that tag set. 3334 33352005-03-13 Andrey Kiselev <[email protected]> 3336 3337 * libtiff 3.8.1 released. 3338 33392006-03-07 Andrey Kiselev <[email protected]> 3340 3341 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray() 3342 function as per bug 3343 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3344 3345 * libtiff/tif_dirread.c: More wise check for integer overflow 3346 condition as per bug 3347 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3348 3349 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}: 3350 Properly restore setfield/getfield methods in cleanup functions. As 3351 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3352 33532006-03-03 Andrey Kiselev <[email protected]> 3354 3355 * libtiff/{tif_predict.c, tif_predict.h}: Added new function 3356 TIFFPredictorCleanup() to restore parent decode/encode/field methods. 3357 3358 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use 3359 TIFFPredictorCleanup() in codec cleanup methods. As per bug 3360 3361 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3362 3363 * libtiff/tif_dirread.c: Fixed integer overflow condition in 3364 TIFFFetchData() function. As per bug 3365 3366 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3367 33682006-03-01 Andrey Kiselev <[email protected]> 3369 3370 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the 3371 TIFFSetField() method, not directly. As per bug 3372 3373 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043 3374 3375 * tools/ppm2tiff.c: Added support for PBM files as per bug 3376 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044 3377 33782006-02-27 Andrey Kiselev <[email protected]> 3379 3380 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline() 3381 to avoid crash as per bug 3382 3383 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081. 3384 33852006-02-26 Andrey Kiselev <[email protected]> 3386 3387 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and 3388 t2p_sample_rgba_to_rgb() was used in place of each other, that was 3389 resulted in problems with RGBA images with associated alpha. 3390 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097 3391 33922006-02-23 Andrey Kiselev <[email protected]> 3393 3394 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per 3395 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3396 3397 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER, 3398 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE 3399 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3400 3401 * tools/tiff2ps.c: Properly scale all the pages when converting 3402 multipage TIFF with /width/height/center options set. As per bug 3403 3404 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080 3405 34062006-02-15 Andrey Kiselev <[email protected]> 3407 3408 * tools/tiff2pdf.c: Do not create output file until all option checks 3409 will be done. As per bug 3410 3411 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072 3412 3413 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the 3414 list of input files as per bug: 3415 3416 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077 3417 34182006-02-09 Andrey Kiselev <[email protected]> 3419 3420 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per 3421 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063. 3422 3423 * tools/tiffgt.c: Avoid crashing in case of image unsupported by 3424 TIFFRGBAImage interface. 3425 3426 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per 3427 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065. 3428 34292006-02-07 Frank Warmerdam <[email protected]> 3430 3431 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG 3432 compressed TIFF files, per submission from Dan Cobra. 3433 34342006-02-07 Andrey Kiselev <[email protected]> 3435 3436 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly 3437 cast values to avoid warnings. As per bug 3438 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3439 3440 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when 3441 appropriate. As per bug 3442 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3443 3444 * libtiff/tif_aux.c: Fixed type of temporary variable in 3445 _TIFFCheckMalloc() as per bug 3446 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3447 34482006-02-06 Andrey Kiselev <[email protected]> 3449 3450 * libtiff/tif_aux.c: Return static array when fetching default 3451 YCbCrCoefficients (another problem, reported a the 3452 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry). 3453 34542006-02-03 Andrey Kiselev <[email protected]> 3455 3456 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints, 3457 YCbCrSubsampling and DotRange tags as per bugs 3458 3459 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 3460 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034 3461 3462 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of 3463 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug 3464 3465 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026. 3466 34672006-01-23 Andrey Kiselev <[email protected]> 3468 3469 * libtool related stuff updated from the 2.1a branch. 3470 34712006-01-11 Frank Warmerdam <[email protected]> 3472 3473 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff, 3474 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works 3475 properly as per bug: 3476 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025 3477 34782006-01-09 Bob Friesenhahn <[email protected]> 3479 3480 * configure.ac: Fix with_default_strip_size comparison as reported 3481 by Norihiko Murase. 3482 34832006-01-08 Bob Friesenhahn <[email protected]> 3484 3485 * test/Makefile.am (LIBTIFF): Due to linking against libtiff 3486 incorrectly, tests were not actually testing the uninstalled 3487 libtiff. Now they are. 3488 34892006-01-04 Andrey Kiselev <[email protected]> 3490 3491 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE, 3492 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount 3493 should be uint32 value. 3494 34952006-01-02 Bob Friesenhahn <[email protected]> 3496 3497 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can 3498 be used if build directory is not the same as source directory. 3499 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented 3500 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET, 3501 and re-sorted tag names in alphabetical order. 3502 35032005-12-29 Andrey Kiselev <[email protected]> 3504 3505 * libtiff 3.8.0 released. 3506 35072005-12-28 Bob Friesenhahn <[email protected]> 3508 3509 * tools/bmp2tiff.c (main): Fixed warning regarding returning 3510 inconsistent types from a condition. 3511 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf 3512 format. 3513 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs. 3514 35152005-12-28 Joris Van Damme <[email protected]> 3516 3517 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML 3518 35192005-12-27 Andrey Kiselev <[email protected]> 3520 3521 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including 3522 windows.h, to reduce the compile time. 3523 35242005-12-26 Bob Friesenhahn <[email protected]> 3525 3526 * libtiff/tif_jpeg.c: Improve compilation under MinGW. 3527 35282005-12-26 Andrey Kiselev <[email protected]> 3529 3530 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}: 3531 tiffFieldInfo and exifFieldInfo arrays definitions moved back to 3532 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo() 3533 private functions to retrieve FieldInfo arrays. 3534 35352005-12-24 Bob Friesenhahn <[email protected]> 3536 3537 * html/build.html: Added some additional instructions for when 3538 building using MSVC under Windows. Also fixed two HTML syntax 3539 errors and used HTML Tidy to tidy up the HTML syntax and 3540 formatting. 3541 35422005-12-24 Andrey Kiselev <[email protected]> 3543 3544 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c, 3545 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and 3546 StoNits tags custom. 3547 35482005-12-23 Andrey Kiselev <[email protected]> 3549 3550 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make 3551 WhitePoint tag custom. 3552 3553 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added. 3554 35552005-12-23 Joris Van Damme <[email protected]> 3556 3557 * libtiff/tiffio.h: fixed typo that potentially resulted in 3558 redefininition of USE_WIN32_FILEIO 3559 3560 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning 3561 calls in core LibTiff. 3562 35632005-12-21 Andrey Kiselev <[email protected]> 3564 3565 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC, 3566 Photoshop and ICCProfile tags custom. 3567 35682005-12-21 Joris Van Damme <[email protected]> 3569 3570 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling 3571 newer code to get context indicator in error handler and still 3572 remain compatible with older code: Done TIFFError calls everywhere 3573 except in tools 3574 35752005-12-20 Andrey Kiselev <[email protected]> 3576 3577 * tools/tiffcp.c: Added many error reporting messages; fixed integer 3578 overflow as per bug 3579 3580 http://bugzilla.remotesensing.org/show_bug.cgi?id=789 3581 35822005-12-16 Frank Warmerdam <[email protected]> 3583 3584 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled 3585 YCbCr images in jpeg compressed TIFF files. 3586 35872005-12-14 Andrey Kiselev <[email protected]> 3588 3589 * tools/tiffcp.c: Return non-zero status when reading fails (again). 3590 35912005-12-13 Andrey Kiselev <[email protected]> 3592 3593 * tools/tiffcp.c: Return non-zero status when reading fails. 3594 35952005-12-12 Andrey Kiselev <[email protected]> 3596 3597 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags. 3598 35992005-12-09 Andrey Kiselev <[email protected]> 3600 3601 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag 3602 custom. 3603 3604 * tools/tiffinfo.c: Print EXIF directory contents if exist. 3605 3606 * libtiff/tiff.h: Few EXIF tag numbers added. 3607 3608 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c, 3609 tiffio.h}: Preliminary support to read custom directories. New 3610 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory(). 3611 36122005-12-07 Andrey Kiselev <[email protected]> 3613 3614 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}: 3615 More work to implement custom directory read support. 3616 3617 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h, 3618 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite 3619 tags custom. 3620 36212005-12-05 Andrey Kiselev <[email protected]> 3622 3623 * libtiff/tif_dirread.c: One more workaround for broken 3624 StripByteCounts tag. Handle the case when StripByteCounts array filled 3625 with completely wrong values. 3626 36272005-11-30 Andrey Kiselev <[email protected]> 3628 3629 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure 3630 in the TIFFOpenW() function as per bug 3631 3632 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003 3633 3634 * libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind() 3635 functions as per bug 3636 3637 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008 3638 36392005-11-20 Frank Warmerdam <[email protected]> 3640 3641 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support 3642 for MS MDI format. 3643 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002 3644 3645 * .cvsignore: many files added, and a few update according 3646 to suggestion of Brad HArds on tiff mailing list. 3647 36482005-11-03 Frank Warmerdam <[email protected]> 3649 3650 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory 3651 public. 3652 36532005-10-31 Andrey Kiselev <[email protected]> 3654 3655 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays 3656 as per bug 3657 3658 http://bugzilla.remotesensing.org/show_bug.cgi?id=943 3659 3660 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter 3661 as per bug 3662 3663 http://bugzilla.remotesensing.org/show_bug.cgi?id=944 3664 3665 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization 3666 problem as per bug 3667 3668 http://bugzilla.remotesensing.org/show_bug.cgi?id=946 3669 3670 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug 3671 3672 http://bugzilla.remotesensing.org/show_bug.cgi?id=965 3673 3674 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and 3675 ResolutionUnit tags modifiable during write process. As per bug 3676 3677 http://bugzilla.remotesensing.org/show_bug.cgi?id=977 3678 3679 * tools/tiffsplit.c: Copy fax related fields over splitted parts 3680 as per bug 3681 3682 http://bugzilla.remotesensing.org/show_bug.cgi?id=983 3683 36842005-10-21 Frank Warmerdam <[email protected]> 3685 3686 * tif_dirread.c: Don't try and split single strips into "0" strips 3687 in ChopUpSingleUncompressedStrip. This happens in some degenerate 3688 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff) 3689 36902005-10-20 Joris Van Damme <[email protected]> 3691 3692 * tif_fax3.c: changed 'at scanline ...' style warning/errors 3693 with incorrect use of tif_row, to 'at line ... of 3694 strip/tile ...' style 3695 36962005-10-15 Frank Warmerdam <[email protected]> 3697 3698 * tif_write.c: fixed setting of planarconfig as per bug report 3699 on the mailing list from Joris. 3700 37012005-10-07 Andrey Kiselev <[email protected]> 3702 3703 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h, 3704 tif_dirread.c}: Make the default strip size configurable via the 3705 --with-default-strip-size and STRIP_SIZE_DEFAULT options. 3706 37072005-09-30 Bob Friesenhahn <[email protected]> 3708 3709 * html/support.html: Fixed link to documentation on Greg Ward's 3710 LogLuv TIFF format. 3711 37122005-09-28 Andrey Kiselev <[email protected]> 3713 3714 * tools/tiffdump.c: Fixed crash when reading malformed tags. 3715 37162005-09-20 Andrey Kiselev <[email protected]> 3717 3718 * tools/tiff2pdf.c: Added missed 'break' statement as per bug 3719 http://bugzilla.remotesensing.org/show_bug.cgi?id=932 3720 37212005-09-12 Andrey Kiselev <[email protected]> 3722 3723 * libtiff 3.7.4 released. 3724 3725 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch 3726 from Patrick Welche (all scripts moved in the 'config' and 'm4' 3727 directories). 3728 37292005-09-12 Frank Warmerdam <[email protected]> 3730 3731 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris. 3732 37332005-09-05 Frank Warmerdam <[email protected]> 3734 3735 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV 3736 also set it to NULL to avoid double free when re-setting custom 3737 string fields as per: 3738 3739 http://bugzilla.remotesensing.org/show_bug.cgi?id=922 3740 37412005-08-12 Frank Warmerdam <[email protected]> 3742 3743 * libtiff/tif_print.c: avoid signed/unsigned warning. 3744 3745 * libtiff/tif_dirread.c: removed unused variable. 3746 37472005-07-30 Frank Warmerdam <[email protected]> 3748 3749 * libtiff/tif_dir.c: Fixed up support for swapping "double complex" 3750 values (128 bits as 2 64 bits doubles). GDAL gcore tests now 3751 pass on bigendian (macosx) system. 3752 37532005-07-28 Andrey Kiselev <[email protected]> 3754 3755 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename 3756 CheckMalloc() function to _TIFFCheckMalloc() and make it available 3757 globally as an internal helper routine. 3758 37592005-07-27 Andrey Kiselev <[email protected]> 3760 3761 * libtiff/tif_dir.c: More improvements in the "pass by value" part of 3762 the custom tags handling code. 3763 37642005-07-26 Andrey Kiselev <[email protected]> 3765 3766 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to 3767 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples() 3768 function, use TIFFFetchNormalTag() instead as per bug 3769 3770 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3771 3772 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag() 3773 instead. 3774 3775 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug 3776 3777 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3778 37792005-07-25 Andrey Kiselev <[email protected]> 3780 3781 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays. 3782 3783 * tools/tiffdump.c: Added support for TIFF_IFD datatype. 3784 37852005-07-21 Andrey Kiselev <[email protected]> 3786 3787 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in 3788 the TIFFWriteCheck() function in case of single band images (as per 3789 TIFF spec). 3790 37912005-07-12 Andrey Kiselev <[email protected]> 3792 3793 * SConstruct, libtiff/SConstruct: Added the first very preliminary 3794 support for SCons software building tool (http://www.scons.org/). 3795 This is experimental infrastructure and it will exist along with the 3796 autotools mechanics. 3797 37982005-07-07 Andrey Kiselev <[email protected]> 3799 3800 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from 3801 the NetBSD source tree (the old 4-clause BSD license changed to 3802 the new 3-clause one). 3803 3804 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind() 3805 replacement module. 3806 3807 * port/dummy.c: Make the dummy function static. 3808 38092005-07-06 Andrey Kiselev <[email protected]> 3810 3811 * tools/tiffcp.c: Fixed WhitePoint tag copying. 3812 3813 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}: 3814 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera, 3815 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom. 3816 38172005-07-04 Andrey Kiselev <[email protected]> 3818 3819 * libtiff 3.7.3 released. 3820 3821 * configure, configure.ac: Do not use empty -R option when linking 3822 with --enable-rpath. 3823 38242005-07-01 Andrey Kiselev <[email protected]> 3825 3826 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid 3827 reading the first IFD when needed. As per bug 3828 3829 http://bugzilla.remotesensing.org/show_bug.cgi?id=875 3830 3831 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side 3832 effects. 3833 38342005-06-23 Andrey Kiselev <[email protected]> 3835 3836 * tools/tiff2pdf.c: Print two characters per loop in the 3837 t2p_write_pdf_trailer(). As per bug 3838 3839 http://bugzilla.remotesensing.org/show_bug.cgi?id=594 3840 3841 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As 3842 per bug 3843 3844 http://bugzilla.remotesensing.org/show_bug.cgi?id=844 3845 3846 * acinclude.m4: Updated to latest OpenGL test macros versions. 3847 3848 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler 3849 platform. As per bug 3850 3851 http://bugzilla.remotesensing.org/show_bug.cgi?id=855 3852 38532005-06-14 Andrey Kiselev <[email protected]> 3854 3855 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits 3856 and YClipPathUnits tags. 3857 38582005-06-07 Andrey Kiselev <[email protected]> 3859 3860 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size; 3861 use pixel sized shift in contigous case. 3862 38632005-06-06 Andrey Kiselev <[email protected]> 3864 3865 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}: 3866 Make overviews working for contiguos images. 3867 38682005-06-03 Andrey Kiselev <[email protected]> 3869 3870 * libtiff/tif_open.c: Replace runtime endianess check with the compile 3871 time one. 3872 3873 * libtiff/tif_predict.c: Floating point predictor now works on 3874 big-endian hosts. 3875 38762005-06-01 Andrey Kiselev <[email protected]> 3877 3878 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom 3879 ASCII values. 3880 3881 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make 3882 DocumentName, Artist, HostComputer, ImageDescription, Make, Model, 3883 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and 3884 TargetPrinter tags custom. 3885 3886 * libtiff/tif_jpeg.c: Cleanup the codec state depending on 3887 TIFF_CODERSETUP flag (to fix memry leaks). 3888 3889 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after 3890 allocating. 3891 38922005-05-26 Andrey Kiselev <[email protected]> 3893 3894 * configure.ac, libtiff/Makefile.am: Added workaround for 3895 OpenBSD/MirOS soname problem as per bug 3896 3897 http://bugzilla.remotesensing.org/show_bug.cgi?id=838 3898 3899 * libtiff/tif_dirwrite.c: Use tdir_count when calling 3900 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as 3901 per bug 3902 3903 http://bugzilla.remotesensing.org/show_bug.cgi?id=845 3904 39052005-05-25 Andrey Kiselev <[email protected]> 3906 3907 * tools/ppm2tiff.c: Fixed format string when read PPM file header with 3908 the fscanf() function. As per bug 3909 3910 http://bugzilla.remotesensing.org/show_bug.cgi?id=861 3911 3912 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns 3913 uint16 array when fetching the BYTE and SBYTE filds, so we should 3914 consider result as pointer to uint16 array and not as array of chars. 3915 As per bug 3916 3917 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3918 3919 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug 3920 3921 http://bugzilla.remotesensing.org/show_bug.cgi?id=830 3922 3923 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share 3924 mode in CreateFile() call as per bug 3925 3926 http://bugzilla.remotesensing.org/show_bug.cgi?id=829 3927 3928 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and 3929 libtiffxx libraries as per bug 3930 3931 http://bugzilla.remotesensing.org/show_bug.cgi?id=826 3932 3933 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with 3934 GDAL. 3935 39362005-05-23 Frank Warmerdam <[email protected]> 3937 3938 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with 3939 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables 3940 in directory. 3941 39422005-05-22 Frank Warmerdam <[email protected]> 3943 3944 * libtiff/tif_dirread.c: Changed the code that computes 3945 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is 3946 zero. This is a common case with GDAL indicating a "null" tile/strip. 3947 39482005-05-17 Andrey Kiselev <[email protected]> 3949 3950 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying. 3951 39522005-05-06 Frank Warmerdam <[email protected]> 3953 3954 * libtiff/tif_dirread.c: Applied similar change to 3955 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys. 3956 3957 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3958 3959 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw(). 3960 39612005-05-06 Andrey Kiselev <[email protected]> 3962 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly; 3963 added new option '-b' to use interpolation in output PDF files (Bruno 3964 Ledoux). 3965 39662005-05-05 Frank Warmerdam <[email protected]> 3967 3968 * libtiff/tif_dirread.c: Ensure that broken files with too many 3969 values in PerSampleShorts work ok instead of crashing. 3970 3971 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3972 39732005-04-27 Andrey Kiselev <[email protected]> 3974 3975 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the 3976 input file. 3977 39782005-04-15 Andrey Kiselev <[email protected]> 3979 3980 * libtiff/tif_predict.c: Added ability to encode floating point 3981 predictor, as per TIFF Technical Note 3. 3982 39832005-04-14 Andrey Kiselev <[email protected]> 3984 3985 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode 3986 floating point predictor, as per TIFF Technical Note 3. 3987 39882005-04-13 Andrey Kiselev <[email protected]> 3989 3990 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}: 3991 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to 3992 swap 24-bit floating point values. 3993 3994 * libtiff/tiff.h: Added predictor constants. 3995 39962005-04-08 Andrey Kiselev <[email protected]> 3997 3998 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate 3999 values in _TIFFVSetField() function. Inspired by the bug 4000 4001 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 4002 4003 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag 4004 as per bug 4005 4006 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 4007 40082005-03-30 Andrey Kiselev <[email protected]> 4009 4010 * libtiff/tif_open.c: Do not read header in case the output file 4011 should be truncated (Ron). 4012 4013 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead 4014 of bsearch() in _TIFFFindFieldInfoByName() function (Ron). 4015 4016 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron). 4017 40182005-03-22 Andrey Kiselev <[email protected]> 4019 4020 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass 4021 rpath option. 4022 40232005-03-21 Andrey Kiselev <[email protected]> 4024 4025 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom 4026 tags. 4027 40282005-03-18 Andrey Kiselev <[email protected]> 4029 4030 * libtiff/dirinfo.c: Added DNG tags. 4031 4032 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag 4033 handling code. 4034 4035 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo); 4036 added DNG 1.1.0.0 tags. 4037 4038 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per 4039 bug 4040 4041 http://bugzilla.remotesensing.org/show_bug.cgi?id=794 4042 4043 * man/TIFFGetField.3tiff: Add a note about autoregistered tags. 4044 40452005-03-17 Andrey Kiselev <[email protected]> 4046 4047 * nmake.opt: Build with Win32 CRT library by default. 4048 4049 * tools/tiff2ps.c: Fixed typo in page size handling code. 4050 4051 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed 4052 by value. 4053 4054 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags. 4055 40562005-03-15 Andrey Kiselev <[email protected]> 4057 4058 * libtiff 3.7.2 released. 4059 40602005-03-09 Andrey Kiselev <[email protected]> 4061 4062 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and 4063 floating point data; complain on unsupported bit depths. 4064 40652005-03-05 Andrey Kiselev <[email protected]> 4066 4067 * tif_stream.cxx: Use ios namespace instead of ios_base to support 4068 GCC 2.95. 4069 4070 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from 4071 Lee Howard for HylaFax DCS tag 4072 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771) 4073 40742005-03-04 Andrey Kiselev <[email protected]> 4075 4076 * configure, configure.ac: Use -rpath option instead of -R as per bug 4077 4078 http://bugzilla.remotesensing.org/show_bug.cgi?id=732 4079 4080 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee 4081 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax 4082 software. As per bug 4083 4084 http://bugzilla.remotesensing.org/show_bug.cgi?id=771 4085 4086 * nmake.opt, html/build.html: Add more comments, change the config 4087 file organization a bit as per bug 4088 4089 http://bugzilla.remotesensing.org/show_bug.cgi?id=764 4090 4091 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison 4092 as per bug 4093 4094 http://bugzilla.remotesensing.org/show_bug.cgi?id=785 4095 40962005-03-03 Andrey Kiselev <[email protected]> 4097 4098 * libtiff/tif_dirread.c: More logic to guess missed strip size as per 4099 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4100 4101 * tools/fax2ps.c: Replace insecure mktemp() function with the 4102 tmpfile() as per bug 4103 4104 http://bugzilla.remotesensing.org/show_bug.cgi?id=786 4105 41062005-02-04 Andrey Kiselev <[email protected]> 4107 4108 * libtiff/tiff.h: Changed the int8 definition to be always signed char 4109 as per bug 4110 4111 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4112 4113 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{} 4114 block as per bug 4115 4116 http://bugzilla.remotesensing.org/show_bug.cgi?id=763 4117 41182005-02-03 Bob Friesenhahn <[email protected]> 4119 4120 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images 4121 display more correctly. Images display brighter than they should 4122 on a Sun workstation. 4123 41242005-02-03 Andrey Kiselev <[email protected]> 4125 4126 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or 4127 suspicious values in the tags. As per bugs 4128 4129 http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4130 4131 and 4132 4133 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 4134 4135 * tools/tiff2ps.c: Fixed problem with page sizes as per bug 4136 4137 http://bugzilla.remotesensing.org/show_bug.cgi?id=742 4138 41392005-01-31 Bob Friesenhahn <[email protected]> 4140 4141 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description. 4142 (TIFFTAG_TILELENGTH): Corrected description. 4143 41442005-01-30 Andrey Kiselev <[email protected]> 4145 4146 * configure.ac: Fixes for --with-docdir option as per bug 4147 4148 http://bugzilla.remotesensing.org/show_bug.cgi?id=759 4149 4150 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per 4151 bug 4152 4153 http://bugzilla.remotesensing.org/show_bug.cgi?id=756 4154 4155 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from 4156 Michael Rinne and Edward Lam. 4157 41582005-01-15 Andrey Kiselev <[email protected]> 4159 4160 * configure.ac: Make the documentation directory location configurable 4161 via the --with-docdir option (as suggested by Jeremy C. Reed). 4162 4163 * libtiff/tif_color.c: Use double as the second argument of pow() 4164 function in TIFFCIELabToRGBInit(). As per bug 4165 4166 http://bugzilla.remotesensing.org/show_bug.cgi?id=741 4167 4168 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to 4169 integer as per bug 4170 4171 http://bugzilla.remotesensing.org/show_bug.cgi?id=740 4172 4173 * libtiff/tif_getimage.c: Always fill the error message buffer in 4174 TIFFRGBAImageBegin() as per bug 4175 4176 http://bugzilla.remotesensing.org/show_bug.cgi?id=739 4177 41782005-01-12 Andrey Kiselev <[email protected]> 4179 4180 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific 4181 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME 4182 tags as per bug 4183 4184 http://bugzilla.remotesensing.org/show_bug.cgi?id=736 4185 4186 * libtiff/tif_win32.c: Fixed message formatting in functions 4187 Win32WarningHandler() and Win32ErrorHandler() as per bug 4188 4189 http://bugzilla.remotesensing.org/show_bug.cgi?id=735 4190 4191 * tools/tiff2ps.c: Interpret the -w and -h options independently. As 4192 per bug 4193 4194 http://bugzilla.remotesensing.org/show_bug.cgi?id=689 4195 41962005-01-11 Andrey Kiselev <[email protected]> 4197 4198 * libtiff/tiffio.h: Move the color conversion routines in the 'extern 4199 "C"' section as per bug 4200 4201 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4202 4203 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C 4204 compiler to avoid double definition of BSD types as per bug 4205 4206 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4207 4208 * libtiff/Makefile.am: Place the C++ stream API in the separate 4209 library called libtiffxx to avoid unneeded dependencies. Probably 4210 there will be more C++ API in the future. As per bugs 4211 4212 http://bugzilla.remotesensing.org/show_bug.cgi?id=733 4213 4214 and 4215 4216 http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4217 42182005-01-05 Andrey Kiselev <[email protected]> 4219 4220 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the 4221 wrong tag counts (Dmitry V. Levin, Martin Pitt). 4222 4223 * configure.ac: Replace --disable-c++ with the --disable-cxx option as 4224 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4225 42262004-12-25 Andrey Kiselev <[email protected]> 4227 4228 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled 4229 RGB-images as per bug 4230 4231 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4232 4233 4234 * tools/tiffset.c: Convert character option to integer value as per 4235 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725 4236 42372004-12-20 Andrey Kiselev <[email protected]> 4238 4239 * libtiff 3.7.1 released. 4240 4241 * html/tiffset.1.html: Add missed manual page as per bug 4242 4243 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4244 4245 * libtiff/tiff.h: Revert back libtiff data type definitions as per 4246 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687 4247 42482004-12-19 Andrey Kiselev <[email protected]> 4249 4250 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when 4251 checking for tag count in TIFFReadDirectory() function. As per bug 4252 4253 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4254 4255 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in 4256 CheckMallock() function. 4257 4258 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled 4259 RGB-images as per bug 4260 4261 http://bugzilla.remotesensing.org/show_bug.cgi?id=718 4262 42632004-12-15 Frank Warmerdam <[email protected]> 4264 4265 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on 4266 SunPro compiler. 4267 42682004-12-11 Bob Friesenhahn <[email protected]> 4269 4270 * autogen.sh: aclocal and autoheader should be executed after 4271 libtoolize. Also add '-I .' to aclocal invocation to check 4272 current directory for macros. 4273 42742004-12-10 Andrey Kiselev <[email protected]> 4275 4276 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type 4277 as per bugs 4278 4279 http://bugzilla.remotesensing.org/show_bug.cgi?id=703 4280 4281 and 4282 4283 http://bugzilla.remotesensing.org/show_bug.cgi?id=704 4284 42852004-12-04 Andrey Kiselev <[email protected]> 4286 4287 * nmake.opt: Link with the user32.lib in windowed mode. As per bug 4288 4289 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4290 4291 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed 4292 mode as per bug 4293 4294 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4295 4296 * libtiff/tif_config.in.vc: Removed unneded definitions for 4297 read/open/close/lseek functions to fix the 4298 4299 http://bugzilla.remotesensing.org/show_bug.cgi?id=680 4300 43012004-12-03 Andrey Kiselev <[email protected]> 4302 4303 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore() 4304 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore 4305 must be removed in the future, as it was never used properly. As per 4306 bug 4307 4308 http://bugzilla.remotesensing.org/show_bug.cgi?id=692 4309 43102004-11-30 Bob Friesenhahn <[email protected]> 4311 4312 * libtiff/tif_jpeg.c: Added a work-around in order to allow 4313 compilation with the heavily modified version of libjpeg delivered 4314 with Cygwin. 4315 43162004-11-29 Andrey Kiselev <[email protected]> 4317 4318 * libtiff/tif_dir.c: Properly handle tags, which have the uint32 4319 counts. As per bug 4320 4321 http://bugzilla.remotesensing.org/show_bug.cgi?id=693 4322 4323 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug 4324 4325 http://bugzilla.remotesensing.org/show_bug.cgi?id=690 4326 43272004-11-28 Andrey Kiselev <[email protected]> 4328 4329 * libtiff/tif_unix.c: Make UNIX module compilable (and usable) 4330 on Windows. 4331 4332 * nmake.opt: Add missed DLLNAME variable. 4333 43342004-11-26 Frank Warmerdam <[email protected]> 4335 4336 * libtiff/makefile.vc: make it easier to rename the libtiff DLL. 4337 43382004-11-24 Andrey Kiselev <[email protected]> 4339 4340 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as 4341 per bug 4342 4343 http://bugzilla.remotesensing.org/show_bug.cgi?id=545 4344 4345 * man/tiffset.1: Added manual page for tiffset tool written by Jay 4346 Berkenbilt. As per bug 4347 4348 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4349 43502004-11-23 Frank Warmerdam <[email protected]> 4351 4352 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError. 4353 43542004-11-21 Frank Warmerdam <[email protected]> 4355 4356 * html/document.html: Updated Adobe web links as per email from Joris. 4357 43582004-11-21 Andrey Kiselev <[email protected]> 4359 4360 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new 4361 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to 4362 use C++ streams should #include <tiffio.hxx>. 4363 43642004-11-13 Andrey Kiselev <[email protected]> 4365 4366 * libtiff/tiff.h: Added Adobe DNG tags. 4367 4368 * libtiff/tif_win32.c: Typo fixed. 4369 4370 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to 4371 be compliant with the latest standard. Appropriate additions in 4372 makefiles now completed. 4373 43742004-11-11 Andrey Kiselev <[email protected]> 4375 4376 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the 4377 different tag types. As per bug 4378 4379 http://bugzilla.remotesensing.org/show_bug.cgi?id=600 4380 43812004-11-10 Andrey Kiselev <[email protected]> 4382 4383 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for 4384 YCbCr image which lacks that tag (noted by Hans Petter Selasky). 4385 43862004-11-09 Andrey Kiselev <[email protected]> 4387 4388 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky). 4389 43902004-11-07 Andrey Kiselev <[email protected]> 4391 4392 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface 4393 contributed by Edward Lam (see 4394 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details). 4395 Though no changes in any makefiles yet. 4396 43972004-11-05 Frank Warmerdam <[email protected]> 4398 4399 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file 4400 is bad. This is the callers responsibility. 4401 http://bugzilla.remotesensing.org/show_bug.cgi?id=651 4402 44032004-11-05 Andrey Kiselev <[email protected]> 4404 4405 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW() 4406 function to work with the double byte strings (used to represent 4407 filenames in some locales). As per bug 4408 4409 http://bugzilla.remotesensing.org/show_bug.cgi?id=625 4410 4411 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and 4412 Compression tags of type LONG from broken TIFFS as per bug 4413 4414 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4415 4416 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC, 4417 the writecount should have uint32 type. As per bug 4418 4419 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4420 4421 * libtiff/tif_write.c: Fixed wrong if() statement in 4422 TIFFAppendToStrip() function as per bug 4423 4424 http://bugzilla.remotesensing.org/show_bug.cgi?id=660 4425 44262004-11-04 Andrey Kiselev <[email protected]> 4427 4428 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES 4429 field. The caller should supply a count when setting this field. As 4430 per bug 4431 4432 http://bugzilla.remotesensing.org/show_bug.cgi?id=648 4433 4434 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have 4435 uint32 count. Use this type everywhere. 4436 44372004-11-03 Frank Warmerdam <[email protected]> 4438 4439 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653. 4440 44412004-11-02 Frank Warmerdam <[email protected]> 4442 4443 * tools/tiff2rgba.c: removed extra newlines in usage message. 4444 44452004-10-30 Andrey Kiselev <[email protected]> 4446 4447 * libtiff/tif_dirwrite.c: Improvements in tag writing code. 4448 4449 * tools/tiff2ps.c: Fixed wrong variable data type when read Position 4450 tags (Tristan Hill). 4451 44522004-10-30 Frank Warmerdam <[email protected]> 4453 4454 * libtiff/tiffiop.h: added fallback definition of assert() if we 4455 don't have assert.h. 4456 44572004-10-29 Andrey Kiselev <[email protected]> 4458 4459 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines 4460 choosing when the incorrect Group4Options tag set. As per bug 4461 4462 http://bugzilla.remotesensing.org/show_bug.cgi?id=323 4463 4464 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of 4465 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in 4466 TIFFWriteNormalTag(). 4467 44682004-10-28 Andrey Kiselev <[email protected]> 4469 4470 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution 4471 tags (Peter Fales). 4472 4473 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions. 4474 44752004-10-28 Frank Warmerdam <[email protected]> 4476 4477 * tools/tiff2pdf.c: added casts to avoid warnings. 4478 4479 * libtiff/libtiff.def: Added several more entry points required 4480 to link fax2tiff.c against the DLL on windows. 4481 44822004-10-27 Andrey Kiselev <[email protected]> 4483 4484 * configure, configure.ac: Added --enable-rpath option to embed linker 4485 paths into library binary. 4486 44872004-10-26 Andrey Kiselev <[email protected]> 4488 4489 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin). 4490 4491 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed 4492 (Vladimir Nadvornik, Dmitry V. Levin). 4493 44942004-10-16 Andrey Kiselev <[email protected]> 4495 4496 * libtiff 3.7.0 released. 4497 44982004-10-15 Bob Friesenhahn <[email protected]> 4499 4500 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h 4501 in this file so its inclusion is removed. Including stdio.h 4502 sometimes incurs an INT32 typedef conflict between MinGW's 4503 basetsd.h and libjpeg's jmorecfg.h. 4504 45052004-10-15 Andrey Kiselev <[email protected]> 4506 4507 * man/bmp2tiff.1: Added manual page for bmp2tiff utility. 4508 45092004-10-13 Bob Friesenhahn <[email protected]> 4510 4511 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid 4512 conflict noticed under MinGW. 4513 * ltmain.sh: Fix for MinGW compilation. 4514 45152004-10-13 Frank Warmerdam <[email protected]> 4516 4517 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz. 4518 http://bugzilla.remotesensing.org/show_bug.cgi?id=635 4519 45202004-10-12 Andrey Kiselev <[email protected]> 4521 4522 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c, 4523 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes 4524 properly (Dmitry V. Levin, Marcus Meissner). 4525 45262004-10-11 Andrey Kiselev <[email protected]> 4527 4528 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed 4529 to TIFF_IFD. 4530 45312004-10-10 Andrey Kiselev <[email protected]> 4532 4533 * tools/bmp2tif.c: Check the space allocation results. 4534 45352004-10-09 Andrey Kiselev <[email protected]> 4536 4537 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields 4538 of the TIFFDirectory structure with the 0 instead of -1 to avoid 4539 confusing integer overflows in TIFFTileRowSize() for striped images. 4540 4541 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported 4542 by Ross A. Finlayson. 4543 4544 * libtiff/tif_dir.c: Fixed custom tags handling as per bug 4545 4546 http://bugzilla.remotesensing.org/show_bug.cgi?id=629 4547 45482004-10-08 Frank Warmerdam <[email protected]> 4549 4550 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation 4551 of tif_fieldinfo. 4552 4553 http://bugzilla.remotesensing.org/show_bug.cgi?id=630 4554 45552004-10-04 Bob Friesenhahn <[email protected]> 4556 4557 * contrib/iptcutil/README: Added the missing README which goes 4558 along with iptcutil. 4559 45602004-10-03 Andrey Kiselev <[email protected]> 4561 4562 * libtiff/tif_compress.c: Improved error reporting in 4563 TIFFGetConfiguredCODECs() (Dmitry V. Levin). 4564 45652004-10-02 Andrey Kiselev <[email protected]> 4566 4567 * libtiff 3.7.0beta2 released. 4568 4569 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c, 4570 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c, 4571 tif_pixarlog.c, tif_write.c}: Added checks for failed memory 4572 allocations and integer overflows (Dmitry V. Levin). 4573 4574 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added. 4575 45762004-10-01 Frank Warmerdam <[email protected]> 4577 4578 * libtiff/tif_open.c: added a more informative message if a BigTIFF 4579 file is opened. 4580 45812004-09-30 Frank Warmerdam <[email protected]> 4582 4583 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to 4584 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info 4585 in the Adobe XMP Specification. 4586 45872004-09-29 Andrey Kiselev <[email protected]> 4588 4589 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of 4590 memset(). 4591 4592 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches 4593 from Dmitry V. Levin to fix possible integer overflow problems. 4594 45952004-09-28 Andrey Kiselev <[email protected]> 4596 4597 * libtiff/tif_getimage.c: Check for allocated buffers before clearing 4598 (Dmitry V. Levin). 4599 46002004-09-26 Andrey Kiselev <[email protected]> 4601 4602 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}: 4603 Optimize checking for the strip bounds. 4604 4605 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and 4606 TIFFRasterScanlineSize() functions report zero in the case of integer 4607 overflow now. Properly handle this case in TIFFReadDirectory() 4608 (patches from Dmitry V. Levin). 4609 46102004-09-25 Andrey Kiselev <[email protected]> 4611 4612 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8() 4613 macro where appropriate. 4614 4615 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as 4616 noted by Gennady Khokhorin. 4617 4618 * libtiff/tif_dirread.c: Always check the return values, returned 4619 by the _TIFFmalloc() (Dmitry V. Levin). 4620 4621 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array() 4622 functions (Dmitry V. Levin). 4623 4624 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}: 4625 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(), 4626 TIFFGrowStrips() (found by Dmitry V. Levin). 4627 46282004-09-24 Andrey Kiselev <[email protected]> 4629 4630 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs() 4631 to get the list of configured codecs. 4632 4633 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from 4634 Dmitry V. Levin. 4635 46362004-09-23 Andrey Kiselev <[email protected]> 4637 4638 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix 4639 possible integer overflow in CheckMalloc() function. 4640 46412004-09-22 Andrey Kiselev <[email protected]> 4642 4643 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead 4644 of plain TIFFhowmany() where appropriate. 4645 46462004-09-21 Andrey Kiselev <[email protected]> 4647 4648 * libtiff/tif_getimage.c: Initialize arrays after space allocation. 4649 46502004-09-19 Andrey Kiselev <[email protected]> 4651 4652 * libtiff 3.7.0beta released. 4653 4654 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer 4655 overruns fixed, as noted by Chris Evans. 4656 46572004-09-14 Bob Friesenhahn <[email protected]> 4658 4659 * commit: Added a script to make it more convenient to commit 4660 updates. The CVS commit message is extracted from this ChangeLog 4661 file. 4662 46632004-09-14 Andrey Kiselev <[email protected]> 4664 4665 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c, 4666 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c, 4667 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c, 4668 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c, 4669 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h, 4670 tif_config.h.in, tiffiop.h}: 4671 Get rid of BSD data types (u_char, u_short, u_int, u_long). 4672 46732004-09-13 Bob Friesenhahn <[email protected]> 4674 4675 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP 4676 specification. Reference libtiff bug tracking system to submit 4677 private tag additions. 4678 46792004-09-12 Bob Friesenhahn <[email protected]> 4680 4681 * tools/tiffgt.c: Include "tif_config.h". 4682 4683 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build 4684 tiffgt. This results in the 'compile' script being added to the 4685 project. 4686 4687 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options 4688 required to find OpenGL headers necessary to build tiffgt. Also 4689 ensure that the libtiff that we built is used rather than some other 4690 libtiff installed on the system. 4691 46922004-09-12 Andrey Kiselev <[email protected]> 4693 4694 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT 4695 libraries. 4696 46972004-09-11 Bob Friesenhahn <[email protected]> 4698 4699 * configure.ac: Pass library configuration defines via 4700 tif_config.h rather than extending CPPFLAGS. Configure a 4701 libtiff/tiffconf.h in order to satisfy application requirements 4702 (not used by library build). Do not define _POSIX_C_SOURCE=2 since 4703 this causes failure to build on systems which properly respect 4704 this request. 4705 4706 * libtiff/tiffconf.h.in: New file to act as the template for the 4707 configured tiffconf.h 4708 4709 * libtiff/files.lst (HDRS): Install the configured tiffconf.h. 4710 47112004-09-10 Frank Warmerdam <[email protected]> 4712 4713 * html/internals.html: Split off a discussion of adding new tags 4714 into addingtags.html. 4715 47162004-09-10 Andrey Kiselev <[email protected]> 4717 4718 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added. 4719 4720 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug 4721 4722 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4723 4724 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting. 4725 4726 * libtiff/tif_dirread.c: Don't reject to read tags of the 4727 SamplesPerPixel size when the tag count is greater than number of 4728 samples as per bug 4729 4730 http://bugzilla.remotesensing.org/show_bug.cgi?id=576 4731 4732 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off 4733 defining int8/uint8/... etc. types. As per bug 4734 4735 http://bugzilla.remotesensing.org/show_bug.cgi?id=607 4736 47372004-09-09 Frank Warmerdam <[email protected]> 4738 4739 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files 4740 to avoid compile warnings about getopt() and a few other things. 4741 47422004-09-02 Andrey Kiselev <[email protected]> 4743 4744 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer 4745 assigning magic in TIFFFetchFloat(). 4746 47472004-09-01 Andrey Kiselev <[email protected]> 4748 4749 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme 4750 to avoid requirement for tiffiop.h inclusion in some applications. See 4751 here 4752 4753 http://www.asmail.be/msg0054799560.html 4754 4755 for details. 4756 4757 * tools/fax2tiff.c: Use the new functions in the code. 4758 47592004-08-25 Andrey Kiselev <[email protected]> 4760 4761 * tools/tiff2pdf.c: Initialize arrays properly. 4762 4763 * tools/tiff2ps.c: Avoid zero division in setupPageState() function; 4764 properly initialize array in PSDataBW(). 4765 47662004-08-24 Andrey Kiselev <[email protected]> 4767 4768 * tools/tiff2pdf.c: More fixes for bug 4769 4770 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4771 4772 from Ross Finlayson. 4773 47742004-08-23 Andrey Kiselev <[email protected]> 4775 4776 * tools/tiff2ps.c: Fixed problem with uninitialized values. 4777 4778 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the 4779 TIFFDefaultDirectory() (in addition to 2004-08-19 fix). 4780 4781 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug 4782 4783 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4784 47852004-08-20 Andrey Kiselev <[email protected]> 4786 4787 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks 4788 that the input file has compression, photometric interpretation, 4789 etcetra, tags or if not than a more descriptive error is returned. 4790 4791 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the 4792 code, responsible for tag data type checking. 4793 47942004-08-19 Andrey Kiselev <[email protected]> 4795 4796 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static 4797 variable as per bug 4798 4799 http://bugzilla.remotesensing.org/show_bug.cgi?id=593 4800 48012004-08-16 Andrey Kiselev <[email protected]> 4802 4803 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per 4804 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586 4805 48062004-08-01 Andrey Kiselev <[email protected]> 4807 4808 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and 4809 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc. 4810 48112004-07-24 Andrey Kiselev <[email protected]> 4812 4813 * libtiff/tif_lzw.c: LZW compression code is merged back from the 4814 separate package. All libtiff tools are updated to not advertise an 4815 abcence of LZW support. 4816 48172004-07-12 Andrey Kiselev <[email protected]> 4818 4819 * libtiff/tiffio.h: Revert thandle_t back to void* type. 4820 48212004-07-11 Andrey Kiselev <[email protected]> 4822 4823 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error 4824 messages, as suggested by Bernd Herd. 4825 48262004-07-03 Andrey Kiselev <[email protected]> 4827 4828 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings 4829 when setting custom tags by value. Reported by Eric Fieleke. 4830 48312004-06-14 Andrey Kiselev <[email protected]> 4832 4833 * tools/bmp2tiff.c: Add missed RawsPerStrip setting. 4834 48352004-06-08 Andrey Kiselev <[email protected]> 4836 4837 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files 4838 into TIFFs. 4839 48402004-06-07 Andrey Kiselev <[email protected]> 4841 4842 * libtiff 3.7.0alpha released. 4843 48442004-06-06 Andrey Kiselev <[email protected]> 4845 4846 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid 4847 of ugly 64-bit hacks, replace them with the clever (autoconf based ) 4848 ones :-). 4849 4850 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause 4851 problems in 64-bit environment). 4852 48532004-06-05 Andrey Kiselev <[email protected]> 4854 4855 * tools/tiffset.c: tiffset now can set any libtiff supported tags. 4856 Tags can be supplied by the mnemonic name or number. 4857 4858 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new 4859 functions TIFFFindFieldInfoByName() and TIFFFieldWithName(). 4860 48612004-05-27 Andrey Kiselev <[email protected]> 4862 4863 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF 4864 markers as per bug 4865 4866 http://bugzilla.remotesensing.org/show_bug.cgi?id=581 4867 48682004-05-24 Andrey Kiselev <[email protected]> 4869 4870 * tools/tiffsplit.c: Don't forget to copy Photometric 4871 Interpretation tag. 4872 48732004-05-20 Andrey Kiselev <[email protected]> 4874 4875 * libtiff/{tif_open.c, tiffio.h}: New function added: 4876 TIFFIsBigEndian(). Function returns nonzero if given was file written 4877 in big-endian order. 4878 4879 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte 4880 files. Now output files will be written using the same byte order 4881 flag as in the input image. See 4882 4883 http://bugzilla.remotesensing.org/show_bug.cgi?id=574 4884 4885 for details. 4886 48872004-05-19 Frank Warmerdam <[email protected]> 4888 4889 * libtiff/tif_print.c: added (untested) support for printing 4890 SSHORT, SLONG and SRATIONAL fields. 4891 4892 * tools/tiffcp.c: close output file on normal exit. 4893 48942004-05-17 Andrey Kiselev <[email protected]> 4895 4896 * libtiff/tif_fax3.c: Avoid reading CCITT compression options 4897 if compression type mismatches. See 4898 4899 http://bugzilla.remotesensing.org/show_bug.cgi?id=565 4900 49012004-04-30 Andrey Kiselev <[email protected]> 4902 4903 * libtiff/tif_strip.c: Never return 0 from the 4904 TIFFNumberOfStrips(). 4905 49062004-04-29 Andrey Kiselev <[email protected]> 4907 4908 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which 4909 store single SampleFormat value for multisampled images. See 4910 4911 http://bugzilla.remotesensing.org/show_bug.cgi?id=562 4912 49132004-04-25 Andrey Kiselev <[email protected]> 4914 4915 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8, 4916 int16 and int32 types to avoid complains on some compilers. Details at 4917 4918 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4919 49202004-04-20 Andrey Kiselev <[email protected]> 4921 4922 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug 4923 4924 http://bugzilla.remotesensing.org/show_bug.cgi?id=555 4925 49262004-04-14 Andrey Kiselev <[email protected]> 4927 4928 * libtiff/tif_write.c: Allow in-place updating of the compressed 4929 images (don't work properly with all codecs). For details see GDAL bug 4930 4931 http://bugzilla.remotesensing.org/show_bug.cgi?id=534 4932 49332004-04-06 Andrey Kiselev <[email protected]> 4934 4935 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used 4936 in the Intergarph JPEG compressed TIFF images as per bug: 4937 4938 http://bugzilla.remotesensing.org/show_bug.cgi?id=532 4939 49402004-04-04 Frank Warmerdam <[email protected]> 4941 4942 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails 4943 via bad2. 4944 49452004-03-26 Andrey Kiselev <[email protected]> 4946 4947 * tools/tiffcp.c: Properly set Photometric Interpretation in case of 4948 JPEG compression of grayscale images. 4949 4950 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not 4951 present in the input image. 4952 49532004-03-19 Andrey Kiselev <[email protected]> 4954 4955 * {many}: The first attempt to switch to autotools. 4956 49572004-03-03 Andrey Kiselev <[email protected]> 4958 4959 * libtiff/tif_open.c: Use dummy mmap/munmap functions in 4960 TIFFClientOpen() when the appropriate client functions was not 4961 supplied by user. 4962 49632004-03-02 Frank Warmerdam <[email protected]> 4964 4965 * tools/ycbcr.c: fixed main() declaration as per: 4966 http://bugzilla.remotesensing.org/show_bug.cgi?id=513 4967 49682004-02-26 Andrey Kiselev <[email protected]> 4969 4970 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed 4971 images. Reported by Artem Mirolubov. 4972 4973 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED 4974 tag type in TIFFFetchNormalTag() as per bug 4975 4976 http://bugzilla.remotesensing.org/show_bug.cgi?id=508 4977 49782004-02-17 Frank Warmerdam <[email protected]> 4979 4980 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per: 4981 http://bugzilla.remotesensing.org/show_bug.cgi?id=494 4982 49832004-02-05 Andrey Kiselev <[email protected]> 4984 4985 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per 4986 bug 4987 4988 http://bugzilla.remotesensing.org/show_bug.cgi?id=483 4989 4990 But we need more work on fax codec to support update mode. 4991 49922004-01-30 Frank Warmerdam <[email protected]> 4993 4994 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck, 4995 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by 4996 Scott Reynolds. 4997 49982004-01-29 Andrey Kiselev <[email protected]> 4999 5000 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS 5001 and TIFFTAG_INDEXED as per bug 5002 5003 http://bugzilla.remotesensing.org/show_bug.cgi?id=475 5004 5005 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is 5006 NULL before proceeding further as per bug 5007 5008 http://bugzilla.remotesensing.org/show_bug.cgi?id=474 5009 5010 Check results, returned by the TIFFFdOpen() before returning and close 5011 file if TIFFFdOpen() failed as per bug 5012 5013 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5014 5015 * libtiff/tif_open.c: More fixes for 5016 5017 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5018 50192004-01-28 Andrey Kiselev <[email protected]> 5020 5021 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate 5022 TIFFCleanup() from the TIFFClose() in order to fix the bug 5023 5024 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5025 5026 * tools/tiffcp.c: Fixed problem with wrong interpretation of the 5027 InkNames tag as per bug 5028 5029 http://bugzilla.remotesensing.org/show_bug.cgi?id=466 5030 5031 Memory leak fixed. 5032 50332004-01-21 Frank Warmerdam <[email protected]> 5034 5035 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that 5036 are field_passcount=TRUE properly. Arguably anonymous custom tags 5037 should be declared as passcount=FALSE, but I don't want to change 5038 that without a careful review. 5039 50402004-01-20 Andrey Kiselev <[email protected]> 5041 5042 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of 5043 stripped image in TIFFWriteBufferSetup(). As per bug 5044 5045 http://bugzilla.remotesensing.org/show_bug.cgi?id=460 5046 50472004-01-11 Andrey Kiselev <[email protected]> 5048 5049 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(), 5050 patch from Gerben Koopmans. 5051 5052 * libtiff/tif_dirread.c: Check field_passcount value before setting 5053 the value of undefined type, patch from Gerben Koopmans. 5054 50552004-01-02 Andrey Kiselev <[email protected]> 5056 5057 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for 5058 non-RGB images. 5059 50602003-12-31 Andrey Kiselev <[email protected]> 5061 5062 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL 5063 pointer passed. Patch supplied by Larry Grill. 5064 5065 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as 5066 suggested by Jeremy C. Reed. 5067 50682003-12-26 Andrey Kiselev <[email protected]> 5069 5070 * libtiff 3.6.1 released. 5071 50722003-12-24 Andrey Kiselev <[email protected]> 5073 5074 * config.guess, config.sub: Updated from the recent upstream. 5075 50762003-12-22 Andrey Kiselev <[email protected]> 5077 5078 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t: 5079 More cleanups in color conversion interface, added appropriate manual 5080 page. 5081 50822003-12-19 Andrey Kiselev <[email protected]> 5083 5084 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as 5085 per bug 5086 5087 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5088 5089 * tools/tiff2ps.c: Added support for alpha channel. Fixes 5090 5091 http://bugzilla.remotesensing.org/show_bug.cgi?id=428 5092 5093 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}: 5094 Interface for Lab->RGB color conversion is finally cleaned up. 5095 Added support for ReferenceBlackWhite tag handling when converted from 5096 YCbCr color space. The latter closes 5097 5098 http://bugzilla.remotesensing.org/show_bug.cgi?id=120 5099 51002003-12-07 Andrey Kiselev <[email protected]> 5101 5102 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings. 5103 5104 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG 5105 library. 5106 51072003-12-06 Andrey Kiselev <[email protected]> 5108 5109 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the 5110 file and properly use it for CIE Lab->RGB transform. 5111 51122003-12-04 Andrey Kiselev <[email protected]> 5113 5114 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB 5115 conversion routines now in the tif_color.c module. New function 5116 TIFFYCbCrtoRGB() available in TIFF API. 5117 5118 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly. 5119 51202003-12-03 Andrey Kiselev <[email protected]> 5121 5122 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in 5123 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c 5124 module. 5125 5126 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t, 5127 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}: 5128 Finally resolved problems with orientation handling. TIFFRGBAImage 5129 interface now properly supports all possible orientations, i.e. images 5130 will be flipped both in horizontal and vertical directions if 5131 required. 'Known bugs' section now removed from the appropriate manual 5132 pages. Closed bug entry: 5133 5134 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5135 51362003-12-02 Andrey Kiselev <[email protected]> 5137 5138 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError() 5139 function calls as per bug 5140 5141 http://bugzilla.remotesensing.org/show_bug.cgi?id=440 5142 51432003-11-28 Ross Finlayson <[email protected]> 5144 5145 * tools/tiff2pdf.c: Some bugs fixed. 5146 51472003-11-27 Andrey Kiselev <[email protected]> 5148 5149 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine, 5150 reported by Antonio Scuri. 5151 5152 * man/tiff2pdf.1: Few improvements in page layout. 5153 5154 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html: 5155 Added support fpr tiff2pdf manual page. 5156 51572003-11-26 Ross Finlayson <[email protected]> 5158 5159 * /man/tiff2pdf.1: File added to repository. 5160 51612003-11-26 Andrey Kiselev <[email protected]> 5162 5163 * Makefile.in, /tools/{Makefile.in, makefile.vc}: 5164 Added support fpr tiff2pdf utility. 5165 51662003-11-25 Ross Finlayson <[email protected]> 5167 5168 * /tools/tiff2pdf.c: File added to repository. 5169 51702003-11-22 Andrey Kiselev <[email protected]> 5171 5172 * /tools/raw2tiff.c: sqrtf() replaced with sqrt(). 5173 51742003-11-21 Andrey Kiselev <[email protected]> 5175 5176 * /tools/raw2tiff.c: #include <getopt.h> removed. 5177 5178 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent 5179 sgigt utility removed and replaced with the completely rewritten 5180 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision, 5181 there is a lot of things to improve. 5182 5183 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly 5184 extract the fields from the OJPEG files. Patch supplied by Ross 5185 Finlayson. 5186 5187 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}: 5188 Added new function TIFFIsCODECConfigured(), suggested by Ross 5189 Finlayson. 5190 51912003-11-18 Andrey Kiselev <[email protected]> 5192 5193 * libtiff/tif_dirinfo.c: Implemented binary search in 5194 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson. 5195 5196 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced 5197 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson. 5198 51992003-11-17 Frank Warmerdam <[email protected]> 5200 5201 * tif_dirread.c: do not mark all anonymously defined tags to be 5202 IGNOREd. 5203 52042003-11-17 Andrey Kiselev <[email protected]> 5205 5206 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use 5207 TIFFDataWidth() function insted of tiffDataWidth array. 5208 52092003-11-16 Andrey Kiselev <[email protected]> 5210 5211 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13) 5212 datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes". 5213 52142003-11-15 Frank Warmerdam <[email protected]> 5215 5216 * Makefile.in: fixed missing backslash for tif_color.c in list. 5217 52182003-11-13 Andrey Kiselev <[email protected]> 5219 5220 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}: 5221 New color space conversion code: CIE L*a*b* 1976 images now supported 5222 by the TIFFRGBAImage interface. All introduced routines go to new 5223 module tif_color.c. Eventually all color conversion functions should 5224 be moved there. 5225 52262003-11-12 Andrey Kiselev <[email protected]> 5227 5228 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles 5229 with the reverse byte order (it is reported by the magic header 5230 field). Problem reported by Andreas Wiesmann. 5231 5232 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation 5233 calculation function. Guessing mechanics now documented in manual page. 5234 52352003-11-11 Andrey Kiselev <[email protected]> 5236 5237 * tools/raw2tiff.c: Implemented image size guessing using 5238 correlation coefficient calculation between two neighbour lines. 5239 52402003-11-09 Frank Warmerdam <[email protected]> 5241 5242 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the 5243 planarconfig_contig case in TIFFComputeTile(). 5244 5245 http://bugzilla.remotesensing.org/show_bug.cgi?id=387 5246 52472003-11-09 Andrey Kiselev <[email protected]> 5248 5249 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint. 5250 52512003-11-07 Andrey Kiselev <[email protected]> 5252 5253 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}: 5254 Added TIFFRawStripSize() function as suggested by Chris Hanson. 5255 52562003-11-03 Andrey Kiselev <[email protected]> 5257 5258 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as 5259 per bug 5260 5261 http://bugzilla.remotesensing.org/show_bug.cgi?id=424 5262 52632003-10-29 Andrey Kiselev <[email protected]> 5264 5265 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented. 5266 5267 * html/build.html: Added note about GNU make requirement. 5268 52692003-10-25 Andrey Kiselev <[email protected]> 5270 5271 * Makefile.in: Fixes in using MAKEFLAGS as per bug 5272 5273 http://bugzilla.remotesensing.org/show_bug.cgi?id=418 5274 5275 * port/install.sh.in: Option -p added to the mkdir command to create 5276 all directory tree structure before installing. 5277 52782003-10-18 Andrey Kiselev <[email protected]> 5279 5280 * /tools/tiff2ps.c: #include <strings.h> replaced with the 5281 #include <string.h>. 5282 52832003-10-16 Andrey Kiselev <[email protected]> 5284 5285 * Makefile.in: Add an absolute path to the test_pics.sh call. 5286 52872003-10-12 Andrey Kiselev <[email protected]> 5288 5289 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD 5290 typedefs. 5291 52922003-10-09 Andrey Kiselev <[email protected]> 5293 5294 * configure, libtiff/{Makefile.in, mkversion.c}: 5295 Relative buildings fixed. 5296 5297 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building 5298 rule. 5299 53002003-10-07 Andrey Kiselev <[email protected]> 5301 5302 * Makefile.in: Added missed v3.6.0.html. 5303 5304 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with 5305 ORIENTATION_BOTLEFT. 5306 53072003-10-04 Andrey Kiselev <[email protected]> 5308 5309 * 3.6.0 final release. 5310 53112003-10-03 Andrey Kiselev <[email protected]> 5312 5313 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New 5314 function TIFFReadRGBAImageOriented() implemented to retrieve raster 5315 array with user-specified origin position as suggested by Jason Frank. 5316 See 5317 5318 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5319 5320 for details. 5321 5322 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented() 5323 instead of TIFFReadRGBAImage(). 5324 5325 * tools/tiff2ps.c: Fixed possible endless loop as per bug 5326 5327 http://bugzilla.remotesensing.org/show_bug.cgi?id=404 5328 53292003-09-30 Andrey Kiselev <[email protected]> 5330 5331 * libtiff/tif_dirread.c: Check field counter against number of fields 5332 in order to fix 5333 5334 http://bugzilla.remotesensing.org/show_bug.cgi?id=366 5335 5336 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug 5337 5338 http://bugzilla.remotesensing.org/show_bug.cgi?id=342 5339 53402003-09-25 Andrey Kiselev <[email protected]> 5341 5342 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c, 5343 tif_close.c}: Store a list of opened IFD to prevent looping as per bug 5344 5345 http://bugzilla.remotesensing.org/show_bug.cgi?id=383 5346 53472003-09-23 Andrey Kiselev <[email protected]> 5348 5349 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See 5350 5351 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5352 53532003-08-21 Andrey Kiselev <[email protected]> 5354 5355 * tools/tiffmedian.c: int declaration replaced with the uint32 to 5356 support large images as per bug 5357 5358 http://bugzilla.remotesensing.org/show_bug.cgi?id=382 5359 53602003-08-12 Andrey Kiselev <[email protected]> 5361 5362 * libtiff/Makefile.in: Fixed problem with building in different 5363 directory. 5364 5365 * tools/tiff2ps.c: Added missing #include <strings.h>. 5366 5367 * libtiff/tif_dirwrite.c: More fixes for custom tags code 5368 from Ashley Dreier. 5369 53702003-08-07 Andrey Kiselev <[email protected]> 5371 5372 * tools/tiff2ps.c: Added page size setting when creating PS Level 2. 5373 Patch submitted by Balatoni Denes (with corrections from Tom 5374 Kacvinsky). 5375 5376 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is 5377 being used. Reported by Tom Kacvinsky. 5378 5379 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing, 5380 reported by Ashley Dreier. 5381 5382 * libtiff/tif_print.c: Fixed problem with float tags reading, support 5383 for printing RATIONAL and BYTE tags added. 5384 53852003-08-05 Andrey Kiselev <[email protected]> 5386 5387 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to 5388 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause 5389 problems with predictor initialization. Remove O_RDONLY check during 5390 state block allocation to be able open LZW compressed files in update 5391 mode. 5392 5393 Problem exist for libtiff version of the tif_lzw.c module. One from 5394 lzw-compression-kit hasn't such troubles. 5395 53962003-08-04 Frank Warmerdam <[email protected]> 5397 5398 * libtiff/tif_write.c: modified tif_write.c so that the various 5399 encoded write functions use tif_postdecode() to apply byte order 5400 swapping (swab) to the application passed data buffer if the same 5401 would be done when reading. This allows us to write pixel data with 5402 more than 8 bits per sample to existing files of a non-native byte 5403 order. One side effect of this change is the applications buffer 5404 itself is altered in this case by the act of writing. 5405 5406 http://bugzilla.remotesensing.org/show_bug.cgi?id=171 5407 54082003-07-25 Frank Warmerdam <[email protected]> 5409 5410 * libtiff/tif_open.c: avoid signed/unsigned casting warning 5411 initializing typemask as per patch from J.A. Strother. 5412 5413 * tools/tiffcp.c: fixed signed/unsigned casting warning. 5414 5415 * libtiff/tif_print.c: dos2unix conversion. 5416 5417 * tools/tiffsplit.c: increased the maximum number of pages that 5418 can be split. Patch provided by Andrew J. Montalenti. 5419 54202003-07-11 Andrey Kiselev <[email protected]> 5421 5422 * tools/raw2tiff.c: Added option `-p' to explicitly select color 5423 space of input image data. Closes 5424 5425 http://bugzilla.remotesensing.org/show_bug.cgi?id=364 5426 54272003-07-08 Frank Warmerdam <[email protected]> 5428 5429 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c, 5430 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c, 5431 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c: 5432 avoid casting warning at /W4. 5433 54342003-07-03 Andrey Kiselev <[email protected]> 5435 5436 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel. 5437 54382003-06-30 Andrey Kiselev <[email protected]> 5439 5440 * libtiff/tif_pixarlog.c: Unused variables removed. 5441 5442 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with 5443 EstimateStripByteCounts() as per bug 5444 5445 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5446 5447 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on 5448 64-bit architectures as per bug 5449 5450 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5451 5452 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of 5453 unknown data type. 5454 54552003-06-19 Frank Warmerdam <[email protected]> 5456 5457 * libtiff/tif_print.c: fixed some serious bugs when printing 5458 custom tags ... almost certain to crash. 5459 5460 * libtiff/tif_dirread.c: Don't ignore custom fields that are 5461 autodefined. Not sure how this got to be like this. 5462 54632003-06-18 Andrey Kiselev <[email protected]> 5464 5465 * 3.6.0 Beta2 released. 5466 5467 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data 5468 comparing as per bug 5469 5470 http://bugzilla.remotesensing.org/show_bug.cgi?id=349 5471 5472 `-z' option now can be used to set the number of reported different 5473 bytes. 5474 54752003-06-09 Andrey Kiselev <[email protected]> 5476 5477 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1 5478 to -r option to get the entire image as one strip. See 5479 5480 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5481 5482 for details. 5483 54842003-06-04 Andrey Kiselev <[email protected]> 5485 5486 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber 5487 values as per bug 5488 5489 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5490 54912003-05-27 Frank Warmerdam <[email protected]> 5492 5493 * libtiff/tif_jpeg.c: modified segment_height calculation to always 5494 be a full height tile for tiled images. Also changed error to just 5495 be a warning. 5496 54972003-05-25 Andrey Kiselev <[email protected]> 5498 5499 * tools/fax2tiff.c: Page numbering fixed, as per bug 5500 5501 http://bugzilla.remotesensing.org/show_bug.cgi?id=341 5502 55032003-05-20 Andrey Kiselev <[email protected]> 5504 5505 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5506 configure, Makefile.in: Switched back to the old behaviour. Likely 5507 better solution should be found for OJPEG support. 5508 55092003-05-11 Andrey Kiselev <[email protected]> 5510 5511 * libtiff/mkversion.c: Fixed problem with wrong string size when 5512 reading RELEASE-DATE file. 5513 55142003-05-07 Andrey Kiselev <[email protected]> 5515 5516 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array 5517 index was out of range. 5518 55192003-05-06 Andrey Kiselev <[email protected]> 5520 5521 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5522 configure, Makefile.in: Improved libtiff compilation with OJPEG 5523 support. Now no need for patching IJG JPEG library, hack requred by 5524 libtiff will be compiled and used in-place. Implemented with 5525 suggestion and help from Bill Allombert, Debian's libjpeg maintainer. 5526 5527 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in 5528 TIFFVGetFieldDefaulted() function. 5529 55302003-05-05 Andrey Kiselev <[email protected]> 5531 5532 * tools/ppm2tiff.c: PPM header parser improved: now able to skip 5533 comments. 5534 5535 * tools/tiffdither.c: Fixed problem with bit fill order tag setting: 5536 was not copied from source image. 5537 5538 * libtiff/getimage.c: Workaround for some images without correct 5539 info about alpha channel as per bug 5540 5541 http://bugzilla.remotesensing.org/show_bug.cgi?id=331 5542 55432003-04-29 Andrey Kiselev <[email protected]> 5544 5545 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3. 5546 It basically allows one to use the /flateDecode filter for ZIP 5547 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes 5548 5549 http://bugzilla.remotesensing.org/show_bug.cgi?id=328 5550 5551 * tools/tiff2ps.c: Force deadzone printing when EPS output specified 5552 as per bug 5553 5554 http://bugzilla.remotesensing.org/show_bug.cgi?id=325 5555 55562003-04-17 Andrey Kiselev <[email protected]> 5557 5558 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts 5559 due to problems with multidirectory images. Quality of error messages 5560 improved. 5561 55622003-04-16 Andrey Kiselev <[email protected]> 5563 5564 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG 5565 encoded images. See bug entries 5566 5567 http://bugzilla.remotesensing.org/show_bug.cgi?id=275 5568 5569 and 5570 5571 http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5572 5573 * libtiff/tif_dirread.c: Additional check for StripByteCounts 5574 correctness. Fixes 5575 5576 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 5577 55782003-03-12 Andrey Kiselev <[email protected]> 5579 5580 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c, 5581 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c, 5582 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c, 5583 tiffmedian.c}: Added library version reporting facility to all tools. 5584 55852003-03-06 Frank Warmerdam <[email protected]> 5586 5587 * port/install.sh.in: Fixed problems with install producing paths 5588 like ///usr/local/lib on cygwin. 5589 55902003-02-27 Andrey Kiselev <[email protected]> 5591 5592 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of 5593 raw input page. Patch supplied by Julien Gaulmin. See 5594 5595 http://bugzilla.remotesensing.org/show_bug.cgi?id=293 5596 5597 for details. 5598 55992003-02-26 Frank Warmerdam <[email protected]> 5600 5601 * libtiff/tif_dir.c: fixed up the tif_postdecode settings 5602 responsible for byte swapping complex image data. 5603 5604 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till 5605 LZWSetupDecode(). Needed to read LZW files in "r+" mode. 5606 56072003-02-07 Andrey Kiselev <[email protected]> 5608 5609 * tools/ppm2tiff.c: Fixed problem with too many arguments. 5610 56112003-02-04 Andrey Kiselev <[email protected]> 5612 5613 * tools/raw2tiff.c: Memory leak fixed. 5614 56152003-02-03 Andrey Kiselev <[email protected]> 5616 5617 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin 5618 (thanks, Julien!). More switches for fax2tiff tool for better control 5619 of input and output. Details at 5620 5621 http://bugzilla.remotesensing.org/show_bug.cgi?id=272 5622 56232003-02-03 Frank Warmerdam <[email protected]> 5624 5625 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg 5626 library so that we can check if there is already any tile/strip data 5627 before deciding between creating a compressor or a decompressor. 5628 56292003-01-31 Frank Warmerdam <[email protected]> 5630 5631 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is 5632 a pre-existing compressed image. That is, image writing to 5633 pre-existing compressed images is not allowed. 5634 5635 * libtiff/tif_open.c: Removed error if opening a compressed file 5636 in update mode. 5637 5638 http://bugzilla.remotesensing.org/show_bug.cgi?id=198 5639 56402003-01-31 Andrey Kiselev <[email protected]> 5641 5642 * config.guess, config.sub: Updated to recent upstream versions. 5643 56442003-01-15 Frank Warmerdam <[email protected]> 5645 5646 * cut 3.6.0 Beta release. 5647 56482002-12-20 Andrey Kiselev <[email protected]> 5649 5650 * tools/fax2ps.c, man/fax2ps.1: Page size was determined 5651 in wrong way as per bug 5652 5653 http://bugzilla.remotesensing.org/show_bug.cgi?id=239 5654 56552002-12-17 Frank Warmerdam <[email protected]> 5656 5657 * libtiff/tif_dirread.c: Allow wrong sized arrays in 5658 TIFFFetchStripThing(). 5659 5660 http://bugzilla.remotesensing.org/show_bug.cgi?id=49 5661 56622002-12-02 Frank Warmerdam <[email protected]> 5663 5664 * libtiff/tif_dir.c: fix problem with test on td_customValueCount. 5665 Was using realloc even first time. Fix by Igor Venevtsev. 5666 56672002-11-30 Frank Warmerdam <[email protected]> 5668 5669 * libtiff/tif_dir.c: fixed bug with resetting an existing custom 5670 field value. 5671 5672 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom" 5673 tags in TIFFVGetField() ... added missing break. 5674 56752002-10-14 Frank Warmerdam <[email protected]> 5676 5677 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make 5678 the scanline buffer long enough when writing rgb triplets. 5679 The scanline needs to be 3 X the number of dots or else it will 5680 contain an incomplete triplet and programs that try to separate 5681 the eps by redefining the colorimage operator will get messed up. 5682 Patch supplied by William Bader. 5683 5684 * Makefile.in: added tif_extension.c to file list as per 5685 http://bugzilla.remotesensing.org/show_bug.cgi?id=218. 5686 56872002-10-11 Andrey Kiselev <[email protected]> 5688 5689 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for 5690 large files (>2GiB) supporting. New option in the config.site: 5691 LARGEFILE="yes". Should be enough for I/O of the large files. 5692 56932002-10-10 Frank Warmerdam <[email protected]> 5694 5695 * libtiff/html/v3.6.0.html: new release notes. 5696 5697 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email 5698 link for Andrey. Pointer to v3.6.0.html. 5699 5700 * libtiff/Makefile.in: added direct rule for tiffvers.h for release. 5701 57022002-10-07 Andrey Kiselev <[email protected]> 5703 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken 5704 (thanks, Sebastian!). New switches: 5705 -b # for a bottom margin of # inches 5706 -c center image 5707 -l # for a left margin of # inches 5708 -r rotate the image by 180 degrees 5709 New features merged with code for shrinking/overlapping. 5710 Previously added -c and -n switches (for overriding PS units) renamed 5711 in -x and -y respectively. 5712 5713 http://bugzilla.remotesensing.org/show_bug.cgi?id=200 5714 5715 * html/man/*.html: Updated from actual manual pages. 5716 57172002-10-06 Frank Warmerdam <[email protected]> 5718 5719 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong 5720 size on windows. Use #define boolean hack. 5721 5722 http://bugzilla.remotesensing.org/show_bug.cgi?id=188 5723 5724 * libtiff/tiff.h: Don't do special type handling in tiff.h unless 5725 USING_VISUALAGE is defined. 5726 5727 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5728 57292002-10-03 Frank Warmerdam <[email protected]> 5730 5731 * libtiff/tiff.h: added COMPRESSION_JP2000. 5732 57332002-10-02 Andrey Kiselev <[email protected]> 5734 5735 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays 5736 by the TIFFFetchByteArray() function. Should finally resolve 5737 5738 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5739 5740 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT 5741 5742 * html/Makefile.in: New targets added: html and groffhtml for 5743 producing HTML representations of the manual pages automatically. 5744 html target uses man2html tool, groffhtml uses groff tool. 5745 57462002-09-29 Frank Warmerdam <[email protected]> 5747 5748 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support 5749 from John H. DuBois III. 5750 57512002-09-15 Andrey Kiselev <[email protected]> 5752 5753 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added 5754 manual page for raw2tiff(1) tool. 5755 57562002-09-12 Andrey Kiselev <[email protected]> 5757 5758 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to 5759 the tiffio.h header file. 5760 5761 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added 5762 manual page for TIFFDataWidth() function 5763 57642002-09-08 Frank Warmerdam <[email protected]> 5765 5766 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair() 5767 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196. 5768 5769 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments 5770 since we are unable to properly include the amount to skip. 5771 5772 http://bugzilla.remotesensing.org/show_bug.cgi?id=80 5773 57742002-09-02 Andrey Kiselev <[email protected]> 5775 5776 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching 5777 in TIFFFetchByteArray(). Problem described at 5778 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5779 57802002-08-22 Andrey Kiselev <[email protected]> 5781 5782 * /libtiff/tif_dirinfo.c: Further additions to free custom fields 5783 in _TIFFSetupFieldInfo() function. 5784 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details. 5785 5786 * /libtiff/tif_lzw.c: Additional consistency checking added in 5787 LZWDecode() and LZWDecodeCompat(). 5788 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190 5789 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5790 5791 * /libtiff/tif_lzw.c: 5792 Added check for valid code lengths in LZWDecode() and 5793 LZWDecodeCompat(). Fixes 5794 http://bugzilla.remotesensing.org/show_bug.cgi?id=115 5795 57962002-08-16 Andrey Kiselev <[email protected]> 5797 5798 * /libtiff/{Makefile.vc, libtiff.def}: 5799 Missed declarations added. 5800 58012002-08-15 Frank Warmerdam <[email protected]> 5802 5803 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the 5804 return code from the underlying pick function. 5805 5806 http://bugzilla.remotesensing.org/show_bug.cgi?id=177 5807 5808 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap 5809 with FIELD_CUSTOM as mentioned in bug 169. 5810 5811 * tif_close.c: added logic to free dynamically created anonymous 5812 field definitions to correct a small memory leak. 5813 5814 http://bugzilla.remotesensing.org/show_bug.cgi?id=169 5815 58162002-08-10 Andrey Kiselev <[email protected]> 5817 5818 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}: 5819 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet. 5820 58212002-07-31 Frank Warmerdam <[email protected]> 5822 5823 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in 5824 JPEGDecode() as per bugzilla bug (issue 1): 5825 5826 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5827 5828 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to 5829 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't 5830 present in the tiff tags. 5831 5832 http://bugzilla.remotesensing.org/show_bug.cgi?id=168 5833 5834 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and 5835 TIFFWriteScanline() now set tif_row explicitly in case the codec has 5836 fooled with the value. 5837 5838 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5839 58402002-06-22 Andrey Kiselev <[email protected]> 5841 5842 * /tools/tiff2ps.c: Added workaround for some software that may crash 5843 when last strip of image contains fewer number of scanlines than 5844 specified by the `/Height' variable. See 5845 http://bugzilla.remotesensing.org/show_bug.cgi?id=164 5846 for explanation. 5847 58482002-06-21 Andrey Kiselev <[email protected]> 5849 5850 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility: 5851 splitting long images in several pages. See 5852 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation. 5853 Patch granted by John Williams <[email protected]>. 5854 58552002-06-11 Frank Warmerdam <[email protected]> 5856 5857 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new 5858 Tiffile.cpp example of converting TIFF files into a DIB on Win32. 5859 This one is described in: 5860 5861 http://bugzilla.remotesensing.org/show_bug.cgi?id=143 5862 5863 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at: 5864 5865 http://bugzilla.remotesensing.org/show_bug.cgi?id=156 5866 58672002-05-10 Andrey Kiselev <[email protected]> 5868 5869 * tools/tiff2ps: New commandline switches to override resolution 5870 units obtained from the input file. Closes 5871 http://bugzilla.remotesensing.org/show_bug.cgi?id=131 5872 58732002-04-26 Andrey Kiselev <[email protected]> 5874 5875 * libtiff/libtiff.def: Added missed declaration. 5876 58772002-04-22 Andrey Kiselev <[email protected]> 5878 5879 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff. 5880 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125 5881 58822002-04-20 Andrey Kiselev <[email protected]> 5883 5884 * libtiff/tif_open.c: Pointers to custom procedures 5885 in TIFFClientOpen() are checked to be not NULL-pointers. 5886 58872002-04-18 Andrey Kiselev <[email protected]> 5888 5889 * libtiff/libtiff.def: Added missed declarations. 5890 5891 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure. 5892 58932002-04-16 Andrey Kiselev <[email protected]> 5894 5895 * libtiff/tif_lzw.c: Additional checks for data integrity introduced. 5896 Should finally close 5897 http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5898 58992002-04-10 Andrey Kiselev <[email protected]> 5900 5901 * tools/tiff2ps: Division by zero fixed. 5902 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88 5903 59042002-04-09 Andrey Kiselev <[email protected]> 5905 5906 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h: 5907 TIFFCheckpointDirectory() routine added. 5908 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124 5909 5910 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description 5911 for the new function. 5912 59132002-04-08 Andrey Kiselev <[email protected]> 5914 5915 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced 5916 additional members tif->tif_decodestatus and tif->tif_encodestatus 5917 for correct handling of unconfigured codecs (we should not try to read 5918 data or to define data size without correct codecs). 5919 5920 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK 5921 changed. Now it has used tif->tif_decodestatus and 5922 tif->tif_encodestatus. 5923 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in 5924 case of __cvs_8.tif test image). 5925 5926 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in 5927 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced. 5928 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case 5929 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif. 5930 59312002-04-04 Andrey Kiselev <[email protected]> 5932 5933 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat 5934 replaced by warnings. Now libtiff should read corrupted LZW-compressed 5935 files by skipping bad strips. 5936 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5937 59382002-04-03 Frank Warmerdam <[email protected]> 5939 5940 * libtiff/tif_dirwrite.c: Removed some dead code. 5941 5942 * libtiff/*: Cleanup some warnings. 5943 5944 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField() 5945 for variable length FIELD_CUSTOM values. Was int * but should be 5946 u_short *. 5947 59482002-04-01 Andrey Kiselev <[email protected]> 5949 5950 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp 5951 utility (at cpStripToTile routine). 5952 59532002-03-27 Frank Warmerdam <[email protected]> 5954 5955 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func. 5956 5957 http://bugzilla.remotesensing.org/show_bug.cgi?id=111 5958 5959 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with 5960 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE). 5961 5962 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so 5963 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example. 5964 59652002-03-26 Dwight Kelly <[email protected]> 5966 5967 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5968 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined 5969 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec 5970 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes: 5971 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and 5972 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9). 5973 59742002-03-26 Andrey Kiselev <[email protected]> 5975 5976 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile 5977 now also uses TIFFRGBAImageOK before reading. This is additional fix 5978 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5979 59802002-03-25 Andrey Kiselev <[email protected]> 5981 5982 * libtiff/: tif_getimage.c: Additional check for supported 5983 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses 5984 TIFFRGBAImageOK before reading. 5985 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5986 59872002-03-15 Andrey Kiselev <[email protected]> 5988 5989 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5990 tif_dirwrite.c: Added routine TIFFDataWidth for detrmining 5991 TIFFDataType sizes instead of working with tiffDataWidth array 5992 directly. Should prevent out-of-borders bugs in case of unknown or 5993 broken data types. EstimateStripByteCounts routine modified, so it 5994 won't work when tags with uknown sizes founded. 5995 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109 5996 59972002-03-13 Andrey Kiselev <[email protected]> 5998 5999 * libtiff/tif_getimage.c: Added support for correct handling 6000 `Orientation' tag in gtTileContig. Should be added in other gt* 6001 functions as well, but I have not images for testing yet. Partially 6002 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23 6003 60042002-03-10 Andrey Kiselev <[email protected]> 6005 6006 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to 6007 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION, 6008 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes 6009 http://bugzilla.remotesensing.org/show_bug.cgi?id=99 6010 60112002-03-08 Andrey Kiselev <[email protected]> 6012 6013 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not 6014 be stripped when installing, utility binaries will do. Closes 6015 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 6016 60172002-02-28 Frank Warmerdam <[email protected]> 6018 6019 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT. 6020 6021 * man/libtiff.3t: added copyright tag info. 6022 60232002-02-11 Frank Warmerdam <[email protected]> 6024 6025 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__. 6026 6027 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 6028 6029 * man/Makefile.in: Patch DESTDIR handling 6030 6031 http://bugzilla.remotesensing.org/show_bug.cgi?id=95 6032 6033 * configure: OpenBSD changes for Sparc64 and DSO version. 6034 6035 http://bugzilla.remotesensing.org/show_bug.cgi?id=96 6036 60372002-02-05 Frank Warmerdam <[email protected]> 6038 6039 * config.site/configure: added support for OJPEG=yes option to enable 6040 OJPEG support from config.site. 6041 60422002-01-27 Frank Warmerdam <[email protected]> 6043 6044 * html/document.html: fixed links for TIFf 6 docs. 6045 60462002-01-18 Frank Warmerdam <[email protected]> 6047 6048 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config. 6049 6050 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the 6051 decodestrip function returns anything not greater than zero as per 6052 http://bugzilla.remotesensing.org/show_bug.cgi?id=97 6053 6054 * configure: Modify CheckForBigEndian so it can work in a cross 6055 compiled situation. 6056 60572002-01-16 Frank Warmerdam <[email protected]> 6058 6059 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list. 6060 6061 * tools/tiffset.c: fix bug in error reporting. 6062 6063 * tools/tiffcp.c: fix several warnings that show up with -Wall. 6064 60652002-01-04 Frank Warmerdam <[email protected]> 6066 6067 * libtiff/tif_jpeg.c: fixed computation of segment_width for 6068 tiles files to avoid error about it not matching the 6069 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile 6070 size.") for ITIFF files. Apparently the problem was incorporated since 6071 3.5.5, presumably during the OJPEG/JPEG work recently. 6072 60732001-12-15 Frank Warmerdam <[email protected]> 6074 6075 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1. 6076 6077 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 6078 6079 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1 6080 (defined in tiffconf.h - 1 by default) then the RGBA interface 6081 will assume that a fourth extra sample is ASSOCALPHA if the 6082 EXTRASAMPLE value isn't set for it. This changes the behaviour of 6083 the library, but makes it work better with RGBA files produced by 6084 lots of applications that don't mark the alpha values properly. 6085 6086 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 6087 http://bugzilla.remotesensing.org/show_bug.cgi?id=65 6088 60892001-12-12 Frank Warmerdam <[email protected]> 6090 6091 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to 6092 override those from tiff directory. This makes this work with 6093 ImageGear generated files. 6094 60952001-12-07 Frank Warmerdam <[email protected]> 6096 6097 * html/Makefile.in: added missing images per bug 92. 6098 6099 * port/Makefile.in: fixed clean target per bug 92. 6100 61012001-11-28 Frank Warmerdam <[email protected]> 6102 6103 * Reissue 3.5.7 release. 6104 6105 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be 6106 YYYYMMDD so that it is increasing over time. 6107 6108 * Makefile.in: Ensure that tiffvers.h is regenerated in the 6109 make release target. 6110 6111 * Makefile.in: added libtiff/tiffvers.h to the release file list. 6112 61132001-11-23 Frank Warmerdam <[email protected]> 6114 6115 * added html/v3.5.7.html, updated html/index.html. 6116 6117 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}. 6118 61192001-11-15 Frank Warmerdam <[email protected]> 6120 6121 * configure: fixed test for -lm. 6122 61232001-11-02 Frank Warmerdam <[email protected]> 6124 6125 * Added PHOTOMETRIC_ITULAB as per bug 90. 6126 6127 http://bugzilla.remotesensing.org/show_bug.cgi?id=90 6128 61292001-10-10 Frank Warmerdam <[email protected]> 6130 6131 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4, 6132 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases 6133 in keeping with TIFF 6.0 standard in tiff.h 6134 6135 http://bugzilla.remotesensing.org/show_bug.cgi?id=83 6136 61372001-09-26 Frank Warmerdam <[email protected]> 6138 6139 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function. 6140 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory. 6141 61422001-09-24 Frank Warmerdam <[email protected]> 6143 6144 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug. 6145 6146 http://bugzilla.remotesensing.org/show_bug.cgi?id=78 6147 6148 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an 6149 error about LZW not being available. 6150 6151 * libtiff/tif_dir.c: propagate failure to initialize compression 6152 back from TIFFSetField() as an error status, so applications can 6153 detect failure. 6154 6155 * libtiff/tif_dir.c: removed the auto replacement of 6156 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField(). 6157 6158 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile 6159 from CVS as they are all supposed to be auto-generated by configure. 6160 61612001-09-22 Frank Warmerdam <[email protected]> 6162 6163 * libtiff/tif_ojpeg.c: new update from Scott. 6164 61652001-09-09 Frank Warmerdam <[email protected]> 6166 6167 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to 6168 always use the "safe" version, even if there is a very slight 6169 cost in performance. 6170 6171 http://bugzilla.remotesensing.org/show_bug.cgi?id=54 6172 6173 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@ 6174 in two places. 6175 6176 * libtiff/tif_getimage.c: Fixed problem with reading strips or 6177 tiles that don't start on a tile boundary. Fix contributed by 6178 Josep Vallverdu (from HP), and further described in bug 47. 6179 6180 http://bugzilla.remotesensing.org/show_bug.cgi?id=47 6181 6182 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support. 6183 6184 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott. 6185 61862001-09-06 Frank Warmerdam <[email protected]> 6187 6188 * libtiff/tif_packbits.c: fixed memory overrun error. 6189 6190 http://bugzilla.remotesensing.org/show_bug.cgi?id=77 6191 61922001-08-31 Frank Warmerdam <[email protected]> 6193 6194 * libtiff/tif_getimage.c: relax handling of contig case where 6195 there are extra samples that are supposed to be ignored. This 6196 should now work for 8bit greyscale or palletted images. 6197 6198 http://bugzilla.remotesensing.org/show_bug.cgi?id=75 6199 62002001-08-28 Frank Warmerdam <[email protected]> 6201 6202 * libtiff/tif_getimage.c: Don't complain for CMYK (separated) 6203 images with more than four samples per pixel. See: 6204 6205 http://bugzilla.remotesensing.org/show_bug.cgi?id=73 6206 62072001-08-10 Frank Warmerdam <[email protected]> 6208 6209 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy() 6210 in TIFFReadRGBATile() to avoid issues in cases of overlapping 6211 buffers. See Bug 69 in Bugzilla. 6212 6213 http://bugzilla.remotesensing.org/show_bug.cgi?id=69 6214 6215 * tools/tiff2rgba.c: fixed getopt() call so that -b works again. 6216 62172001-08-09 Frank Warmerdam <[email protected]> 6218 6219 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__ 6220 when checking for 64 bit architectures as per bugzilla bug 67. 6221 62222001-07-27 Frank Warmerdam <[email protected]> 6223 6224 * man/Makefile.in: add TIFFClientOpen link as per debian submitted 6225 bug 66. 6226 62272001-07-20 Frank Warmerdam <[email protected]> 6228 6229 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H 6230 has been included. 6231 62322001-07-19 Frank Warmerdam <[email protected]> 6233 6234 * libtiff/tif_open.c: Seek back to zero after failed read, 6235 before writing header. 6236 62372001-07-18 Frank Warmerdam <[email protected]> 6238 6239 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors 6240 much better. Now depends on having patched libjpeg as per 6241 patch in contrib/ojpeg/*. 6242 62432001-07-17 Frank Warmerdam <[email protected]> 6244 6245 * */Makefile.in: added DESTDIR support. 6246 6247 http://bugzilla.remotesensing.org/show_bug.cgi?id=60 6248 62492001-07-16 Frank Warmerdam <[email protected]> 6250 6251 * configure, libtiff/Makefile.in: applied OpenBSD patches 6252 as per: 6253 6254 http://bugzilla.remotesensing.org/show_bug.cgi?id=61 6255 62562001-06-28 Frank Warmerdam <[email protected]> 6257 6258 * libtiff/tif_getimage.c: Fixed so that failure is properly 6259 reported by gtTileContig, gtStripContig, gtTileSeparate and 6260 gtStripSeparate. 6261 6262 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51 6263 6264 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare. 6265 Updated bug section of tiffcmp.1 to note tiled file issues. 6266 6267 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53 6268 62692001-06-22 Frank Warmerdam <[email protected]> 6270 6271 * configure: Changes for DSO generation on AIX provided by 6272 John Marquart <[email protected]>. 6273 6274 * configure, libtiff/Makeifle.in: Modified to build DSOs properly 6275 on Darwin thanks to Robert Krajewski ([email protected]) and 6276 Keisuke Fujii ([email protected]). 6277 62782001-06-13 Frank Warmerdam <[email protected]> 6279 6280 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component. 6281 6282 * man/tiff2rgba.1: new 6283 62842001-05-22 Frank Warmerdam <[email protected]> 6285 6286 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in. 6287 62882001-05-13 Frank Warmerdam <[email protected]> 6289 6290 * libtiff/tools/thumbnail.c: changed default output compression 6291 to packbits from LZW since LZW isn't generally available. 6292 62932001-05-12 Frank Warmerdam <[email protected]> 6294 6295 * libtiff/tif_ojpeg.c: New. 6296 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related 6297 to OJPEG support. 6298 6299 Scott Marovich <[email protected]> supplied OJPEG support. 6300 63012001-05-11 Frank Warmerdam <[email protected]> 6302 6303 * tiff.h: removed, it duplicates libtiff/tiff.h. 6304 63052001-05-08 Frank Warmerdam <[email protected]> 6306 6307 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to 6308 ensure everything is in order. 6309 6310 * libtiff/libtiff.def: added TIFFCreateDirectory and 6311 TIFFDefaultStripSize as per: 6312 6313 http://bugzilla.remotesensing.org/show_bug.cgi?id=46 6314 63152001-05-02 Frank Warmerdam <[email protected]> 6316 6317 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for 6318 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to 6319 force use of uint32 counts instead of short counts. 6320 6321 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the 6322 case of writing TIFF_BYTE/TIFF_SBYTE fields. 6323 6324 http://bugzilla.remotesensing.org/show_bug.cgi?id=43 6325 63262001-05-01 Frank Warmerdam <[email protected]> 6327 6328 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per 6329 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44 6330 63312001-04-05 Frank Warmerdam <[email protected]> 6332 6333 * tiffio.h: removed C++ style comment. 6334 6335 * configure: fixed up SCRIPT_SH/SHELL handling. 6336 6337 * Makefile.in: Fixed SCRIPT_SH/SHELL handling. 6338 6339 * config.guess: documented more variables as per bug 40. 6340 63412001-04-03 Frank Warmerdam <[email protected]> 6342 6343 * configure, *Makefile.in: Various changes to improve configuration 6344 for HP/UX specifically, and also in general. They include: 6345 - Try to handle /usr/bin/sh instead of /bin/sh where necessary. 6346 - Upgrade to HP/UX 10.x+ compiler, linker and dso options. 6347 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP 6348 - Use -${MAKEFLAGS} in sub makes from makefiles. 6349 6350 http://bugzilla.remotesensing.org/show_bug.cgi?id=40 6351 63522001-04-02 Frank Warmerdam <[email protected]> 6353 6354 * libtiff/tiff.h: Applied hac to try and resolve the problem 6355 with the inttypes.h include file on AIX. 6356 6357 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6358 6359 * VERSION: update to 3.5.7 beta in preparation for release. 6360 6361 * configure/config.site: modified to check if -lm is needed for 6362 MACHDEPLIBS if not supplied by config.site. Needed for Darwin. 6363 6364 * config.guess: updated wholesale to an FSF version apparently 6365 from 1998 (as opposed to 1994). This is mainly inspired by 6366 providing for MacOS X support. 6367 63682001-03-29 Frank Warmerdam <[email protected]> 6369 6370 * configure, Makefile.in, etc: added support for OPTIMIZER being 6371 set from config.site. 6372 63732001-03-28 Frank Warmerdam <[email protected]> 6374 6375 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix: 6376 6377 Here's a fix for fax2ps that corrects behaviour for non-Letter paper 6378 sizes. It fixes two problems: 6379 6380 Without scaling (-S) the fax is now centered on the page size specified 6381 with -H and/or -W. Before, fax2ps was using an obscure and practially 6382 useless algorithm to allocate the image relative to Letter sized paper 6383 which sometime sled to useless whitespace on the paper, while at the 6384 same time cutting of the faxes printable area at the opposite border. 6385 6386 Second, scaling now preserves aspect ratio, which makes unusual faxes 6387 (in particular short ones) print properly. 6388 6389 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35 6390 6391 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by 6392 Bruce A. Mallett. See check message for detailed information 6393 on all the changes, including a faster encoder, fixes for level 6394 2 PostScript, and support for the imagemask operator. 6395 63962001-03-27 Frank Warmerdam <[email protected]> 6397 6398 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to 6399 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX. 6400 6401 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6402 64032001-03-16 Frank Warmerdam <[email protected]> 6404 6405 * tif_dirinfo.c: moved definition of copyright tag in field list. 6406 Apparently they have to be in sorted order by tag id. 6407 64082001-03-13 Frank Warmerdam <[email protected]> 6409 6410 * tif_getimage.c: Added support for 16bit minisblack/miniswhite 6411 images in RGBA interface. 6412 64132001-03-02 Frank Warmerdam <[email protected]> 6414 6415 * Added TIFFTAG_COPYRIGHT support. 6416 64172001-02-19 Frank Warmerdam <[email protected]> 6418 6419 * Brent Roman contributed updated tiffcp utility (and tiffcp.1) 6420 with support for extracting subimages with the ,n syntax, and also 6421 adding the -b bias removal flag. 6422 64232001-02-16 Frank Warmerdam <[email protected]> 6424 6425 * libtiff/libtiff.def: Brent Roman submitted new version adding 6426 serveral missing entry points. 6427 6428 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS. 6429 Some sort of weird VMS thing. 6430 6431 http://bugzilla.remotesensing.org/show_bug.cgi?id=31 6432 6433 * tif_luv.c/tiff.h/tiffio.h: 6434 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward 6435 ([email protected]). He writes: 6436 6437 1) I improved the gamut-mapping function in tif_luv.c for imaginary 6438 colors, because some images were being super-saturated on the input 6439 side and this resulted in some strange color shifts in the output. 6440 6441 2) I added a psuedotag in tiff.h to control random dithering during 6442 LogLuv encoding. This is turned off by default for 32-bit LogLuv and 6443 on for 24-bit LogLuv output. Dithering improves the average color 6444 accuracy over the image. 6445 6446 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in 6447 tiffio.h, to expose internal routines for converting between LogLuv and 6448 XYZ coordinates. This is helpful for writing more efficient, 6449 specialized conversion routines, especially for reading LogLuv files. 6450 6451 Changes applied with minor edits. 6452 64532001-01-23 Frank Warmerdam <[email protected]> 6454 6455 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember 6456 whether we are encoding or decoding. This is to ensure graceful 6457 recovery if TIFFClientOpen() discovers an attempt to open a compressed 6458 file for "r+" access, and subsequently close it, as it resets the 6459 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the 6460 compressor's concept of whether it is in encode or decode mode. 6461 64622001-01-08 Mike Welles <[email protected]> 6463 6464 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip 6465 64662001-01-07 Frank Warmerdam <[email protected]> 6467 6468 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet() 6469 as per bug report by Patrick Connor. 6470 64712000-12-28 Frank Warmerdam <[email protected]> 6472 6473 * Added RELEASE-DATE file to release file list. 6474 6475 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h. 6476 64772000-12-22 Mike Welles <[email protected]> 6478 * added link to CVS mirror from index.html 6479 6480 * updated html/internals.html to note that LZW compression is 6481 not supported by default. 6482 64832000-12-22 Frank Warmerdam <[email protected]> 6484 6485 * updated html/libtiff.html to not point at Niles' old JPL web site 6486 for the man pages, point at www.libtiff.org. 6487 64882000-12-21 Frank Warmerdam <[email protected]> 6489 6490 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by 6491 Leonard Rosenthol <[email protected]>. May interfere 6492 with correct building on older systems. If so, please let me know. 6493 64942000-12-19 Mike Welles <[email protected]> 6495 6496 * Took out LZW Encoding from tif_lzw.c 6497 6498 * Created HOWTO-RELEASE 6499 6500 * Created html/v3.5.6.html 6501 6502 * updated index.html 6503 65042000-12-01 Frank Warmerdam <[email protected]> 6505 6506 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h. 6507 Patches supplied by Frank Cringle <[email protected]> 6508 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif 6509 65102000-11-24 Frank Warmerdam <[email protected]> 6511 6512 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private 6513 target so that the private headers required by libgeotiff can be 6514 installed with the others. They are not installed by default. 6515 6516 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso 6517 targets so libtiff.so will be built with an explicit dependency 6518 on libm.so. 6519 6520 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to 6521 libtiff.so.3.5.5. 6522 6523 * libtiff/Makefile.in & configure: Remove all references to the ALPHA 6524 file, or ALPHA version logic. Added stuff about DIST_POINT in 6525 place of DIST_TYPE and the alpha release number stuff. 6526 65272000-11-22 Frank Warmerdam <[email protected]> 6528 6529 * I have applied a patch from Steffen Moeller <[email protected]> to 6530 the configure script so that it now accepts the --prefix, and 6531 --exec-prefix directives. 6532 65332000-11-13 Frank Warmerdam <warmerda@cs46980-c> 6534 6535 * I have made a variety of modifications in an effort to ensure the 6536 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE 6537 file which seems to be updated regularly. 6538 6539 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in 6540 version include file. 6541 o renamed version.h to tiffvers.h because we now have to install it 6542 with the public libtiff include files. 6543 o include tiffvers.h in tiffio.h. 6544 o updated tif_version.c to use tiffvers.h. 6545 o Updated Makefile.in accordingly. 6546 6547 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25 6548 I have updated the win32 detection rules in tiffcomp.h. 6549 65502000-10-20 Frank Warmerdam <warmerda@cs46980-c> 6551 6552 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which 6553 the strip/tile width and height aren't multiples of the sampling size. 6554 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20 6555 Some patches from Rick LaMont of Dot C Software. 6556 6557 * Modified tif_packbits.c encoder to avoid compressing more 6558 data than provided if rowsize doesn't factor into provided data 6559 (such as occurs for YCbCr). 6560 65612000-10-19 Frank Warmerdam <warmerda@cs46980-c> 6562 6563 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical 6564 roundup if rows_per_strip not a multiple of vertical sample size. 6565 65662000-10-16 Frank Warmerdam <warmerda@cs46980-c> 6567 6568 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory 6569 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6570 from [email protected]. 6571 6572 * Modified tif_packbits.c decoding to avoid overrunning the 6573 output buffer, and to issue a warning if data needs to be 6574 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6575 65762000-10-12 Frank Warmerdam <warmerda@cs46980-c> 6577 6578 * Modified tiff2bw to ensure portions add to 100%, and that 6579 white is properly recovered. 6580 6581 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15 6582 Patch c/o Stanislav Brabec <[email protected]> 6583 65842000-09-30 Frank Warmerdam <warmerda@cs46980-c> 6585 6586 * Modified TIFFClientOpen() to emit an error on an attempt to 6587 open a comperessed file for update (O_RDWR/r+) access. This is 6588 because the compressor/decompressor code gets very confused when 6589 the mode is O_RDWR, assuming this means writing only. See 6590 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13 6591 65922000-09-27 Frank Warmerdam <warmerda@cs46980-c> 6593 6594 * Added GNULDdso target an`d switched linux and freebsd to use it. 6595 65962000-09-26 Frank Warmerdam <warmerda@cs46980-c> 6597 6598 * Applied patch for 0x0000 sequences in tif_fax3.h's definition 6599 of EXPAND1D() as per bug 11 (from Roman). 6600 66012000-09-25 Frank Warmerdam <warmerda@cs46980-c> 6602 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve 6603 cygwin compatibility. 6604 6605 * Applied patch from Roman Shpount to tif_fax3.c. This seems to 6606 be a proper fix to the buffer sizing problem. See 6607 http://bugzilla.remotesensing.org/show_bug.cgi?id=11 6608 6609 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without 6610 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10 6611 Thanks to Nick Lamb <[email protected]> for reporting the 6612 bug and proving the patch. 6613 66142000-09-18 Frank Warmerdam <warmerda@cs46980-c> 6615 6616 * Fixed tif_jpeg.c so avoid destroying the decompressor before 6617 we are done access data thanks to bug report from: 6618 Michael Eckstein <[email protected]>. 6619 6620 * Reverted tif_flush change. 6621 66222000-09-14 Frank Warmerdam <warmerda@cs46980-c> 6623 6624 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an 6625 error when TIFF_BEENWRITING is not set. This ensures that the 6626 directory contents can still be flushed by TIFFFlush(). 6627 66282000-08-14 Frank Warmerdam <[email protected]> 6629 6630 * tif_open.c: Don't set MMAP for O_RDWR files. 6631 6632 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY 6633 so that files opened for update can be strip chopped too. 6634 6635 * tif_read.c: fixed up bug with files missing rowsperstrip and 6636 the strips per separation fix done a few weeks ago. 6637 66382000-07-17 Frank Warmerdam <warmerda@cs46980-c> 6639 6640 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and 6641 SAMPLEFORMAT_COMPLEXINT. 6642 66432000-07-13 Mike Welles <[email protected]> 6644 6645 * index.html, bugs.html: added bugzilla info. 6646 66472000-07-12 Frank Warmerdam <[email protected]> 6648 6649 * tif_read.c: fix subtle bug with determining the number of 6650 rows for strips that are the last strip in a separation but 6651 not the last strip of all in TIFFReadEncodedStrip(). 6652 6653 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by 6654 Peter Skarpetis <[email protected]> 6655 66562000-06-15 Frank Warmerdam <[email protected]> 6657 6658 * Modified tiffio.h logic with regard to including windows.h. It 6659 won't include it when building with __CYGWIN__. 6660 66612000-05-11 Frank Warmerdam <warmerda@cs46980-c> 6662 6663 * README: update to mention www.libtiff.org, don't list Sam's old 6664 email address. 6665 6666 * configure: Fixed DSO test for Linux as per patch from 6667 Jan Van Buggenhout <[email protected]>. 6668 66692000-04-21 Frank Warmerdam <[email protected]> 6670 6671 * libtiff/tif_dirread.c: Don't use estimate strip byte count for 6672 one tile/strip images with an offset, and byte count of zero. These 6673 could be "unpopulated" images. 6674 66752000-04-18 Frank Warmerdam <[email protected]> 6676 6677 * contrib/addtiffo: Added "averaging" resampling option. 6678 6679 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT. 6680 6681Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]> 6682 6683 * tools/Makefile.in: Modified to install properly on SGI. 6684 66852000-04-12 Mike Welles <[email protected]> 6686 * configure: Fixed stupid mistake in libc6 test on Linux 6687 66882000-04-04 Mike Welles <[email protected]> 6689 * tif_win32.c: Applied patch to fix overreads and ovverwrites 6690 caught by BoundsChecker. From Arvan Pritchard 6691 <[email protected]> (untested). 6692 6693 * tif_getimage.c: Applied patch to silence VC6 warnings. From 6694 Arvan Pritchard <[email protected]> 6695 6696 * tif_lzw.c: Applied patch to silence VC6 warnings. From 6697 Arvan Pritchard <[email protected]> 6698 66992000-03-28 Frank Warmerdam <warmerda@cs46980-c> 6700 6701 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss. 6702 67032000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release *** 6704 6705 * fax2ps: Fixed mixup of width and height in bounding box statement 6706 as per submission by Nalin Dahyabhai <[email protected]>. 6707 67082000-03-27 Mike Welles <[email protected]> 6709 6710 * fax2ps: Modified printruns to take uint32 instead of uint16. 6711 Patch courtesy of Bernt Herd <[email protected]> 6712 67132000-03-20 Mike Welles <[email protected]> 6714 6715 * configure: added test for libc6 for linux targets. Bug reported by 6716 Stanislav Brabec <[email protected]> 6717 6718 * Added 3.5 docs to html/Makefile.in. 6719 Thanks to Stanislav Brabec <[email protected]> 6720 6721 * configure: fixed bugs in sed scripts 6722 (applied sed script s:/@:s;@:;s:/s;;:;: to configure). 6723 fix submitted to Stanislav Brabec <[email protected]> 6724 6725 * tools/iptcutil was not in files list, and wasn't being 6726 added to tar archive. Updated Makefile.in. 6727 67282000-03-17 Frank Warmerdam <warmerda@cs46980-c> 6729 6730 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32 6731 conversion for the run arrays. 6732 67332000-03-03 Frank Warmerdam <[email protected]> 6734 6735 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of 6736 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c. 6737 67382000-03-02 Frank Warmerdam <[email protected]> 6739 6740 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c. 6741 6742 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger 6743 to avoid overruns encountered with frle_bug.tif. 6744 6745Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]> 6746 6747 * Fixed tools/tiffcmp so that stopondiff testing works. 6748 Patch care of Joseph Orost <[email protected]>. 6749 67502000-01-28 <warmerda@CS46980-B> 6751 6752 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is 6753 set to 1, and added default (off) setting in tiffconf.h. This 6754 should eventually be set by the configure script somehow. 6755 6756 The original work on all these 2-4GB changes was done by 6757 Peter Smith ([email protected]). 6758 6759 * Modified tif_win32.c to support 2-4GB seeks. 6760 6761 * tentatively changed toff_t to be unsigned instead of signed to 6762 facilitate support for 2-4GB files. 6763 6764 * Updated a variety of files to use toff_t. Fixed some mixups 6765 between toff_t and tsize_t. 6766 6767Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]> 6768 6769 * Largely reimplemented contrib/addtiffo to avoid temp files, 6770 updating the TIFF file in place. Fixed a few other bugs to. 6771 6772 * Set tif_rawdatasize to zero when freeing raw data buffer in 6773 TIFFWriteDirectory(). 6774 6775 * Enabled "REWRITE_HACK" in tif_write.c by default. 6776 6777 * Fix bug in tif_write.c when switching between reading one directory 6778 and writing to another. 6779 6780 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory() 6781 6782Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]> 6783 6784 * Added TIFFmemory(3t) functions to libtiff.def. 6785 6786Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]> 6787 6788 * Added libtiff/libtiff.def to TIFFILES distribution list. 6789 6790Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]> 6791 6792 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit). 6793 6794 * Altered descriptions in tools to reflect "by default" lzw not supported 6795 6796 * Updated index.html to note lzw compression kit. 6797 6798Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]> 6799 6800 * Added fax3sm_winnt.c to distribution list in Makefile.in. 6801 6802Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release *** 6803 6804 * Aadded Pixar tag support. Contributed by Phil Beffery <[email protected]> 6805 6806 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice 6807 when LZW compression invoked. 6808 6809 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions 6810 in tools to reflect removal of LZW compression 6811 6812Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]> 6813 6814 * Fixed bug that caused LZW (non) compression to segfault. Added 6815 warning about LZW compression removed being removed, and why. 6816 6817 * Added nostrip to install in tools/Makefile.in so that debugging 6818 symbols are kept. 6819 6820Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]> 6821 6822 * Added patch from Ivo Penzar <[email protected]>, 6823 supporting Adobe ZIP deflate. Untested. 6824 6825Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]> 6826 6827 * Made Packbits the default compression in tools/tiff2rgba.c instead 6828 of LZW. 6829 6830Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release *** 6831 6832 * Added tif_luv to contrib/djgpp/Makefile.lib. 6833 6834Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]> 6835 6836 * Added zip creation to relase makefile target 6837 6838 * Added html for TIFFWriteTile.3t man page. 6839 6840Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]> 6841 6842 * Added some changes to tif_write.c to support rewriting existing 6843 fixed sized tiles and strips. Code mods disabled by default, only 6844 enabled if REWRITE_HACK is defined for now. 6845 6846Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]> 6847 6848 * Added TIFFWriteTile.3t man page. 6849 6850Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]> 6851 6852 * Added notes on use of makefile.vc in build.html, and fixed 6853 email subscription address. 6854 6855199-11-28 Mike Welles <[email protected]> 6856 6857 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c 6858 6859 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c, 6860 from Bruce Carmeron <[email protected]> -- modifications of 6861 changes made by Frank (sun cc still complained on cast). 6862 6863 * Added tiffconf.h to install target per request from Bill 6864 Radcliffe <[email protected]>: "We need a way for ImageMagick to 6865 know features have been compiled into the TIFF library in order to 6866 handle things properly". 6867 6868Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]> 6869 6870 * fixed various VC++ warnings as suggested by Gilles Vollant 6871 <[email protected]>. 6872 6873Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]> 6874 6875 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to 6876 not imply applications are responsible for image data swapping. 6877 68781999-11-22 Mike Welles <[email protected]> 6879 * HTML-ized the man pages, added to html/man 6880 6881 * Removed LZW Compression to comply with Unisys patent extortion. 6882 68831999-09-29 Mike Welles <[email protected]> 6884 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c, 6885 From Ivo Penzar <[email protected]. 6886 6887 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle 6888 memory mapped files. <[email protected]> 6889 68901999-09-26 Mike Welles <[email protected]> *** 3.5.2 release *** 6891 * Corrected alpha versioning. 6892 6893 * Removed distinction between alpha and release targets in Makefile.in. 6894 6895 * added release.stamp target, which tags cvs tree, and updates 6896 "RELEASE-DATE" 6897 6898 * added releasediff target, which diffs tree with source as of 6899 date in "RELEASE-DATE" 6900 6901 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving 6902 away from alpha/non-alpha distinctions). 6903 6904 * updated html to reflect release 6905 69061999-09-23 <warmerda@CS46980-B> 6907 6908 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance. 6909 6910 * Added CYGWIN case in configure. 6911 6912Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]> 6913 6914 * Applied Francois Dagand's patch to handle fax decompression bug. 6915 (sizes >= 65536 were failing) 6916 6917Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]> 6918 6919 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested 6920 by Christopher Lawton <[email protected]> 6921 6922Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]> 6923 6924 * Added IRIX/gcc, and OSF/1 4.x support on behalf of 6925 Albert Chin-A-Young <[email protected]> 6926 6927 * Added TIFFReassignTagToIgnore() API on behalf of 6928 Bruce Cameron <[email protected]>. Man page still pending. 6929 6930Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]> 6931 6932 * Added test target in Makefile, test_pics.sh script and pics/*.rpt 6933 files to provide for a rudimentary testsuite. 6934 6935 * Added contrib/tags back from old distribution ... fixed up a bit. 6936 69371999-08-16 <warmerda@CS46980-B> 6938 6939 * Added simple makefile.vc makefiles for building with MS VC++ 6940 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give 6941 better solutions for some users. 6942 6943Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]> 6944 6945 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't 6946 put it in tools since part of it is in C++. 6947 69481999-08-16 Michael L. Welles <[email protected]> 6949 6950 * Updated html/index.html with anon CVS instructions. 6951 6952Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]> 6953 6954 * pre-remove so link before softlink in LINUXdso action in 6955 libtiff/Makefile.in to avoid failure on LINUXdso builds other than 6956 the first. 6957 6958 * Fixed problem with cvtcmap() in tif_getimage.c modifying the 6959 colormaps owned by the TIFF handle itself when trying to fixup wrong 6960 (eight bit) colormaps. Corrected by maintaining a private copy of 6961 the colormap. 6962 6963 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in 6964 tif_getimage.c. 6965 6966 * CVS Repository placed at remotesensing.org. ChangeLog added. 6967