12015-08-15 Bob Friesenhahn <[email protected]> 2 3 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that 4 client_data is initialized to a known value, and to report an 5 error on two memory allocation failures. 6 72015-08-13 Bob Friesenhahn <[email protected]> 8 9 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx 10 symbol versioning. Patch was mailed to libtiff list on Thu, 13 11 Aug 2015. 12 132015-07-04 Bob Friesenhahn <[email protected]> 14 15 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3 16 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 17 +0100. 18 19 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh 20 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 21 22 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by 23 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 24 252015-06-24 Bob Friesenhahn <[email protected]> 26 27 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 28 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several 29 corrections to ensure that the autotools build still works were 30 added by me. I have not yet tested the build using 'cmake' or 31 MSVC with 'nmake'. 32 332015-06-21 Bob Friesenhahn <[email protected]> 34 35 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG 36 library so only execute if JPEG is available. 37 38 * libtiff 4.0.4 released. 39 40 * configure.ac: Add a HAVE_FOO Automake conditional for each 41 add-on library. 42 43 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode 44 requires JPEG support to compile. Use Automake conditional to 45 only include it when JPEG support is available. 46 47 * html/build.html: Try to improve the nmake-based VC++ build 48 description. 49 50 * libtiff/tiffconf.vc.h: Build fixes based on testing. 51 52 * libtiff/tif_config.vc.h: Build fixes based on testing. 53 54 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove 55 export for it. 56 572015-06-20 Bob Friesenhahn <[email protected]> 58 59 * libtiff/tif_config.vc.h: Make adjustments to match the new 60 definitions that configure produces, including for WIN64. Still 61 needs to be tested. 62 63 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting 64 specifier. 64-bit MinGW supports 'long long' but support for 65 'lld' is not assured by the run-time DLLs and so GCC warns. 66 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition 67 and printf format specifier to deal with printing values of 68 'size_t' type. In particular, this was necessary for WIN64. 69 Added a configure test for if the system headers provide 'optarg' 70 (normal case) and block out the many explicit 'extern' statements 71 in the utilities. This was found to be necessary under Windows 72 when getopt is in a DLL and the symbols are already imported with 73 dllimport via standard header files. 74 75 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32 76 and boolean in MinGW build due to including jpeglib.h. 77 78 * test/rewrite_tag.c (main): Fix problem with location of variable 79 declaration. 80 81 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs, 82 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme, 83 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc, 84 TIFFRasterScanline, TIFFSetErrorHandlerExt, 85 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories, 86 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory, 87 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by 88 Roger Leigh and justified by use in libtiff tests, documentation, 89 and changelog notes. Also sorted symbol list and removed 90 duplicate entries. 91 922015-06-16 Bob Friesenhahn <[email protected]> 93 94 * libtiff/tif_getimage.c: Fix four Coverity issues related to 95 unintended sign extension. 96 972015-06-16 Even Rouault <even.rouault at spatialys.com> 98 99 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna) 100 1012015-06-14 Lee Howard <[email protected]> 102 103 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on 104 Bugzilla Bug #2510 fixes several harmless but still annoying 105 warnings 106 107 * configure: contribution from Ludolf Holzheid on Bugzilla 108 Bug #2498. Adds an option to select the file I/O style on 109 Windows hosts. 110 111 * libtiff/tif_getimage.c: contribution from Gary Cramblitt 112 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs. 113 114 * configure, configure.ac: contribution from Marcos H. Woehrmann 115 on Bugzilla Bug #2405. Correct shell equality operator. 116 117 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt 118 on Bugzilla Bug #2401. Appropriately call glFlush(). 119 120 * tools/tiff2pdf.c: change ColorTransform from "0" to "1" 121 following Bugzilla Bug #2150. 122 1232015-06-13 Lee Howard <[email protected]> 124 125 * libtiff/tif_lzw.c: contribution from Andy Cave - decode 126 files that contain consecutive CODE_CLEAR codes. 127 128 * tools/tiff2pdf.c: contribution from Antti S. Lankila on 129 Bugzilla Bug #2078. Suppress initial output of the header. 130 131 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy - 132 Take care in using the return value from snprintf(). 133 134 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira - 135 correctly copy the compression tag from the source TIFF. 136 137 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira - 138 correct sizing and scaling problems with output document. 139 1402015-06-10 Bob Friesenhahn <[email protected]> 141 142 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two 143 clean implementations in order to avoid pre-processor hell. Only 144 one of the implementations is used in a given build. 145 1462015-06-08 Even Rouault <even.rouault at spatialys.com> 147 148 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12 149 case 150 1512015-06-07 Bob Friesenhahn <[email protected]> 152 153 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975 154 "Division or modulo by zero". 155 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division 156 or modulo by zero". 157 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by 158 zero". 159 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by 160 zero". 161 162 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and 163 715974 "Division or modulo by zero". 164 1652015-05-31 Bob Friesenhahn <[email protected]> 166 167 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity 168 1134470 "Logically dead code" by making the roll-over check 169 explicit. 170 171 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227 172 "Division or modulo by zero". 173 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by 174 zero". 175 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by 176 zero". 177 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by 178 zero". 179 180 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix 181 Coverity 298626 "Logically dead code". 182 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead 183 code". 184 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead 185 code". 186 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead 187 code" 188 189 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++ 190 operator precedenc in evaluation. Might quench Coverity 1134470 191 "Logically dead code". 192 193 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands 194 don't affect result". This change uses ifdefs to include 195 applicable code based on properties of libjpeg. Still needs to be 196 re-tested with 12-bit "6b" and "MK1". 197 1982015-05-30 Bob Friesenhahn <[email protected]> 199 200 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310 201 "Resource leak". 202 203 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix 204 Coverity 601720 "Resource leak". 205 206 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624 207 "Dereference before null check". 208 209 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400 210 "Missing break in switch". 211 212 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer 213 size calculation for overflow. 214 215 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity 216 1024226 "Untrusted value as argument". 217 218 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted 219 value as argument". 220 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes 221 read". 222 (readextension): Fix Coverity 1024893 "Ignoring number of bytes 223 read". 224 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes 225 read". 226 (readraster): Fix Coverity 1024891 "Ignoring number of bytes 227 read". 228 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes 229 read". 230 231 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181 232 "Structurally dead code". 233 234 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return 235 value from library". 236 (guessSize): Fix Coverity 1024888 "Unchecked return value from 237 library". 238 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read". 239 (guessSize): Fix Coverity 1024889 "Unchecked return value from 240 library". 241 242 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621 243 "Resource leak". 244 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead 245 code". 246 (t2p_write_pdf): Fix Coverity 1227690 "Unused value". 247 2482015-05-29 Bob Friesenhahn <[email protected]> 249 250 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468 251 "Infinite loop". 252 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value". 253 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound". 254 2552015-05-28 Bob Friesenhahn <[email protected]> 256 257 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 258 Coverity 298615 "Resource leak". 259 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign 260 extension". 261 262 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value 263 as argument". 264 (main): Fix Coverity 1024678 "Unchecked return value from 265 library". 266 (main): Fix Coverity 1024679 "Unchecked return value from 267 library". 268 (main): Fix Coverity 1214160 "Ignoring number of bytes read". 269 270 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 271 Coverity 298615 "Resource leak". 272 273 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309 274 "Resource leak". 275 276 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource 277 leak". 278 (cpStrips): Fix Coverity 1024305 "Resource leak". 279 2802015-05-27 Bob Friesenhahn <[email protected]> 281 282 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe 283 for 64-bit systems. Add some header validations. Should fix many 284 Coverity issues. 285 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)". 286 (main): Quiet Coverity 1024223 "Untrusted value as argument". 287 288 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting 289 level does not match indentation". 290 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read". 291 This was a benign mis-diagnosis but added code to enforce against 292 buffer overflow. 293 294 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical 295 vs. bitwise operator". 296 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or 297 modulo by zero". 298 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead 299 code". 300 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not 301 match indentation". 302 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not 303 match indentation". 304 (loadImage): Fix Coverity 1299741 "Dereference before null check". 305 (loadImage): Fix Coverity 1299740 "Out-of-bounds write". 306 3072015-03-02 Even Rouault <[email protected]> 308 309 * tools/tiffdither.c: check memory allocations to avoid writing to 310 NULL pointer. Also check multiplication overflow. Fixes #2501, 311 CVE-2014-8128. Derived from patch by Petr Gajdos. 312 3132015-01-26 Even Rouault <[email protected]> 314 315 * add html/v4.0.4beta.html under version control 316 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used 317 3182015-01-26 Even Rouault <[email protected]> 319 320 * libtiff 4.0.4beta released 321 3222015-01-26 Even Rouault <[email protected]> 323 324 * automake: updated to 1.15 325 * libtool: updated to 2.4.5 326 3272015-01-22 Even Rouault <[email protected]> 328 329 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013) 330 3312015-01-05 Frank Warmerdam <[email protected]> 332 333 * html/bugs.html: remove note about needing to email the tiff mailing 334 list administrator about being approved for membership, this appears 335 not to be true. 336 3372015-01-05 Olivier Paquet <[email protected]> 338 339 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection. 340 3412015-01-03 Even Rouault <[email protected]> 342 343 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow 344 when reading more than 65535 directories, and effectively error out when 345 reaching that limit. 346 3472014-12-29 Even Rouault <[email protected]> 348 349 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10 350 markers to avoid emitting a warning (even if, according to the TechNote, 351 there are admitedly unusual/not recommended or even forbidden variants, but 352 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2, 353 SOF9 and SOF10). 354 Define in_color_space and input_components to the right values in 355 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by 356 libjpeg API documentation, so as to be compatible with mozjpeg library. 357 Note: the default settings of mozjpeg will produce progressive scans, which 358 is forbidden by the TechNote. 359 3602014-12-29 Even Rouault <[email protected]> 361 362 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling. 363 to avoid buffer leak (fix previous fix, found by Coverity scan) 364 3652014-12-29 Even Rouault <[email protected]> 366 367 * libtiff/tif_next.c: add new tests to check that we don't read outside of 368 the compressed input stream buffer. 369 370 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height 371 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and 372 putcontig8bitYCbCr21tile cases. 373 3742014-12-27 Even Rouault <[email protected]> 375 376 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing 377 extented tags installed by user code through the extender mechaninm before 378 calling the extender callback (GDAL #5054) 379 3802014-12-26 Bob Friesenhahn <[email protected]> 381 382 * tools/tiffcrop.c: Fix warnings about variables set but not used. 383 384 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set 385 but not used. 386 387 * tools/tiffgt.c: Fix warnings about unused parameters. 388 389 * libtiff/tif_stream.cxx: Fix warnings about unused parameters. 390 3912014-12-25 Even Rouault <[email protected]> 392 393 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix 394 various typos found by Debian lintian tool (GDAL #5756) 395 3962014-12-24 Even Rouault <[email protected]> 397 398 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling. 399 http://bugzilla.maptools.org/show_bug.cgi?id=2235 400 4012014-12-24 Even Rouault <[email protected]> 402 403 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images. 404 http://bugzilla.maptools.org/show_bug.cgi?id=2445 405 4062014-12-24 Even Rouault <[email protected]> 407 408 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image. 409 Derived from patch by Petr Gajdos, 410 http://bugzilla.maptools.org/show_bug.cgi?id=2443 411 4122014-12-23 Even Rouault <[email protected]> 413 414 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code 415 of _TIFFFillStriles(). This solves crashing bug on corrupted 416 images generated by afl. 417 4182014-12-23 Even Rouault <[email protected]> 419 420 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with 421 <= 0 by casting it to int64 first. This solves crashing bug on corrupted 422 images generated by afl. 423 4242014-12-21 Bob Friesenhahn <[email protected]> 425 426 * tools/tiffdump.c: Guard against arithmetic overflow when 427 calculating allocation buffer sizes. 428 4292014-12-21 Even Rouault <[email protected]> 430 431 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if 432 SamplesPerPixel = 3. Enforce that 433 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127) 434 4352014-12-21 Even Rouault <[email protected]> 436 437 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES 438 copying. The right fix would be to properly copy it, but not worth the burden 439 for those esoteric utilities. 440 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127) 441 4422014-12-21 Even Rouault <[email protected]> 443 444 * tools/thumbnail.c: fix out-of-buffer write 445 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128) 446 4472014-12-21 Even Rouault <[email protected]> 448 449 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS 450 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or 451 COMPRESSION_CCITTFAX4 452 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128) 453 4542014-12-21 Even Rouault <[email protected]> 455 456 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes 457 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129) 458 4592014-12-21 Even Rouault <[email protected]> 460 461 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading 462 TIFFTAG_SAMPLESPERPIXEL 463 4642014-12-21 Even Rouault <[email protected]> 465 466 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none. 467 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480) 468 Description: fix for Debian bug #741451 469 tiffcp crashes when converting JPEG-encoded TIFF to a different 470 encoding (like none or lzw). For example this will probably fail: 471 tiffcp -c none jpeg_encoded_file.tif output.tif 472 The reason is that when the input file contains JPEG data, 473 the tiffcp code forces conversion to RGB space. However, 474 the output normally inherits YCbCr subsampling parameters 475 from the input, which leads to a smaller working buffer 476 than necessary. The buffer is subsequently overrun inside 477 cpStripToTile() (called from writeBufferToContigTiles). 478 Note that the resulting TIFF file would be scrambled even 479 if tiffcp wouldn't crash, since the output file would contain 480 RGB data intepreted as subsampled YCbCr values. 481 This patch fixes the problem by forcing RGB space on the output 482 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded. 483 Author: Tomasz Buchert <[email protected]> 484 4852014-12-21 Even Rouault <[email protected]> 486 487 Fix various crasher bugs on fuzzed images. 488 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for 489 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing 490 the directory 491 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or 492 TransferFunction if BitsPerSample has not yet been read, otherwise reading 493 it later will cause user code to crash if BitsPerSample > 1 494 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with 495 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8 496 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images 497 instead of imagewidth to avoid crash 498 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions 499 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by 500 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB 501 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight 502 * tools/tiffdump.c: fix crash due to overflow of entry count. 503 5042014-12-15 Even Rouault <[email protected]> 505 506 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused 507 all tiles/strips to include quantization tables even when the jpegtablesmode 508 had the JPEGTABLESMODE_QUANT bit set. 509 Also add explicit removal of Huffman tables when jpegtablesmode has the 510 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the 511 first tile/strip (only useful in update scenarios. create-only was 512 fine) 513 5142014-12-09 Bob Friesenhahn <[email protected]> 515 516 * tools/tiff2pdf.c: Assure that memory size calculations for 517 _TIFFmalloc() do not overflow the range of tmsize_t. 518 5192014-12-07 Even Rouault <[email protected]> 520 521 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with 522 Valgrind and Address Sanitizer on test suite 523 5242014-12-07 Bob Friesenhahn <[email protected]> 525 526 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION 527 tag can return one channel, with the other two channels set to 528 NULL. The tiff2pdf code was expecting that other two channels 529 were duplicate pointers in the case where there is only one 530 channel. Detect this condition in order to avoid a crash, and 531 presumably perform correctly with just one channel. 532 5332014-12-06 Bob Friesenhahn <[email protected]> 534 535 * tools/tiffdump.c: Fix double-free bug. 536 5372014-11-27 Even Rouault <[email protected]> 538 539 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with 540 Visual Studio 2015 aka VC 14 aka MSVC 1900 541 5422014-11-20 Even Rouault <[email protected]> 543 544 * libtiff/tif_lzw.c: prevent potential null dereference of 545 sp->dec_codetab in LZWPreDecode (bug #2459) 546 547 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size 548 to TIFFmalloc() if passed user buffer size is 0 (bug #2459) 549 550 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459) 551 552 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make 553 Coverity happier (not a bug, #2459) 554 555 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier 556 (not a bug, #2459) 557 558 * tools/tiff2pdf.c: close PDF file (bug #2479) 559 560 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470) 561 562 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463) 563 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459) 564 565 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option 566 (bug #2459) and add missing va_end in dump_info (#2459) 567 568 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451) 569 5702014-11-20 Even Rouault <[email protected]> 571 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on 572 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471) 573 5742014-11-20 Even Rouault <[email protected]> 575 * automake: updated to 1.14.1 576 * libtool: updated to 2.4.3 577 * HOWTO-RELEASE: small update about autotools building order 578 5792014-10-20 Olivier Paquet <[email protected]> 580 * tools/tiff2pdf.c: Preserve input file directory order when pages 581 are tagged with the same page number. 582 5832014-08-31 Bob Friesenhahn <[email protected]> 584 585 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect 586 count for tag should be a warning rather than an error since 587 errors terminate processing. 588 5892014-06-07 Bob Friesenhahn <[email protected]> 590 591 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip 592 was wrongly described. Fix suggested by Miguel Medalha. 593 5942014-05-06 Bob Friesenhahn <[email protected]> 595 596 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for 597 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood. 598 Reviewed and forwarded by Lee Howard. 599 6002013-11-30 Frank Warmerdam <[email protected]> 601 602 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories() 603 6042013-10-21 Frank Warmerdam <[email protected]> 605 606 * libtiff/tif_dir.c: generate error in case of directory count 607 overflow. 608 6092013-10-01 Frank Warmerdam <[email protected]> 610 611 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for 612 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457) 613 6142013-09-12 Bob Friesenhahn <[email protected]> 615 616 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to 617 be defective, then set it to zero before returning error in order 618 to terminate processing of truncated TIFF. Issue found and fix 619 suggested by Richard Nolde. 620 6212013-08-14 Frank Warmerdam <[email protected]> 622 623 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244) 624 6252013-08-13 Frank Warmerdam <[email protected]> 626 627 * tools/gif2tiff.c: Be more careful about corrupt or 628 hostile input files (#2450, CVE-2013-4231) 629 630 * tools/tiff2pdf.c: terminate after failure of allocating 631 ycbcr buffer (bug #2449, CVE-2013-4232) 632 6332013-07-09 Frank Warmerdam <[email protected]> 634 635 * tools/tiffinfo.c: Default various values fetched with 636 TIFFGetField() to avoid being uninitialized. 637 6382013-05-02 Tom Lane <[email protected]> 639 640 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in 641 t2p_process_jpeg_strip to be at least marginally competent. The 642 approach is still fundamentally flawed, but at least now it won't 643 stomp all over memory when given bogus input. Fixes CVE-2013-1960. 644 6452013-05-02 Tom Lane <[email protected]> 646 647 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c, 648 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c, 649 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c, 650 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't 651 large enough, and eliminate substantially all uses of sprintf(buf, 652 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to 653 protect against overflow of fixed-size buffers. This responds in 654 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's 655 t2p_write_pdf_page(), but in general it seems like a good idea to 656 deprecate use of sprintf(). 657 6582013-03-29 Bob Friesenhahn <[email protected]> 659 660 * configure.ac: Applied patch by Brad Smith to improve pkg-config 661 static linking by adding -lm to Libs.private when needed. 662 6632013-03-05 Tom Lane <[email protected]> 664 665 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html, 666 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1, 667 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c, 668 tools/tiffdither.c: Sync tool usage printouts and man pages with 669 reality (quite a few options had escaped being documented in one 670 or both places). Per an old report from Miroslav Vadkerti. 671 6722013-01-25 Bob Friesenhahn <[email protected]> 673 674 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a 675 rotation angle was set by the auto rotate check, it was retained 676 for all pages that followed instead ofa being retested for each 677 page. Patch by Richard Nolde. 678 6792013-01-18 Frank Warmerdam <[email protected]> 680 681 * libtiff/tif_write.c: tmsize_t related casting warning fixed for 682 64bit linux. 683 684 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings. 685 http://bugzilla.maptools.org/show_bug.cgi?id=2427 686 6872012-12-20 Tom Lane <[email protected]> 688 689 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that 690 it will pass with more versions of libjpeg. (There are at least 691 three in active use now, and JPEG_LIB_VERSION doesn't tell us 692 enough to uniquely identify expected results.) 693 6942012-12-12 Tom Lane <[email protected]> 695 696 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of 697 field_passcount fields: it had the TIFF_VARIABLE and 698 TIFF_VARIABLE2 cases backwards. 699 7002012-12-10 Tom Lane <[email protected]> 701 702 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564: 703 check the linebytes calculation too, get the max() calculation 704 straight, avoid redundant error messages, check for malloc 705 failure. 706 7072012-12-10 Tom Lane <[email protected]> 708 709 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447 710 (to enlarge tbuf for possible partial stride at end) so that 711 overflow in the integer addition is detected. Per gripe from 712 Huzaifa Sidhpurwala. 713 7142012-12-03 Bob Friesenhahn <[email protected]> 715 716 * tools/tiffset.c: tiffset now supports a -u option to unset a 717 tag. Patch by Zach Baker. See 718 http://bugzilla.maptools.org/show_bug.cgi?id=2419 719 7202012-11-18 Bob Friesenhahn <[email protected]> 721 722 * automake: Update Automake to 1.12.5 release. 723 724 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not 725 require malloc() to return NULL pointer if requested allocation 726 size is zero. Assure that _TIFFmalloc does. 727 7282012-11-01 Frank Warmerdam <[email protected]> 729 730 * tools/ppm2tiff.c: avoid zero size buffer vulnerability. 731 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the 732 Red Hat Security Response team for the fix. 733 7342012-10-18 Frank Warmerdam <[email protected]> 735 736 * tif_zip.c: Avoid crash on NULL error messages. 737 7382012-09-22 Bob Friesenhahn <[email protected]> 739 740 * libtiff 4.0.3 released. 741 7422012-09-20 Bob Friesenhahn <[email protected]> 743 744 * Makefile.am: Update to Automake 1.12.4 745 7462012-08-19 Bob Friesenhahn <[email protected]> 747 748 * Makefile.in: Update to Automake 1.12.3 749 750 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add 751 some TIFF/FX support in libtiff. Add the tag definitions to 752 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c, 753 and also fixes an error in a comment. Adds the photometric values 754 to tif_print.c, and fixes a bug. These changes are by Steve 755 Underwood. 756 7572012-08-13 Frank Warmerdam <[email protected]> 758 759 * libtiff/tif_write.c: Fix bug rewriting image tiles in a 760 compressed file: http://trac.osgeo.org/gdal/ticket/4771 761 7622012-08-02 Frank Warmerdam <[email protected]> 763 764 * libtiff/tif_dirread.c: report error in case of mismatch value 765 counts for tags (ie. DotRange). 766 7672012-07-26 Tom Lane <[email protected]> 768 769 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new 770 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(), 771 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount() 772 as external accessors for the opaque type TIFFField. 773 774 * tools/tiffset.c: Make tiffset use the above functions instead of 775 relying on library private headers. 776 7772012-07-19 Tom Lane <[email protected]> 778 779 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set 780 after a malloc failure. No crash risk AFAICS, but the program 781 might not report exit code 1 as desired. h/t [email protected] 782 7832012-07-18 Tom Lane <[email protected]> 784 785 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This 786 prevents core dumps or perhaps even arbitrary code execution when 787 processing a corrupt input file (CVE-2012-3401). 788 7892012-07-06 Bob Friesenhahn <[email protected]> 790 791 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+. 792 IJG JPEG 7+ uses a different upsampling algorithm which produces 793 different numeric results. 794 795 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to 796 work with IJG JPEG 7+. 797 7982012-07-04 Bob Friesenhahn <[email protected]> 799 800 * test/raw_decode.c: Add changes so that test can run with build 801 directory outside of source directory. 802 8032012-07-02 Frank Warmerdam <[email protected]> 804 805 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed 806 imagery (http://trac.osgeo.org/gdal/ticket/4732) 807 8082012-06-20 Frank Warmerdam <[email protected]> 809 810 * libtiff/tif_fax3.c: fix memory initialization of runs, only 811 partly done. 812 813 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one 814 full "stride" past the end. 815 8162012-06-19 Frank Warmerdam <[email protected]> 817 818 * libtiff/tif_packbits.c: fix read past end of data buffer. 819 8202012-06-15 Frank Warmerdam <[email protected]> 821 822 * libtiff 4.0.2 released. 823 824 * tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable 825 warnings with clang. 826 8272012-06-15 Tom Lane <[email protected]> 828 829 * tools/tiff2pdf.c: Defend against integer overflows while 830 calculating required buffer sizes (CVE-2012-2113). 831 8322012-06-12 Frank Warmerdam <[email protected]> 833 834 * libtiff/tif_print.c: Be careful about printing corrupt inknames. 835 836 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros. 837 8382012-06-07 Frank Warmerdam <[email protected]> 839 840 * libtiff/tif_print.c: avoid pretty printing other fields when 841 we don't have the proper amount and type of data or if the field 842 is actually autodefined. 843 8442012-06-05 Frank Warmerdam <[email protected]> 845 846 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal 847 ycbcrsubsampling values result in a runtime error, not just an 848 assertion. 849 850 * tests/custom_dir.c: Add testing of EXIF and custom directory 851 reading and writing. 852 853 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory() 854 and TIFFCreateEXIFDirectory() functions. 855 856 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for 857 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE 858 differently. This is to avoid using special TIFFGetField/TIFFSetField 859 rules for these fields in non-image directories (like EXIF). 860 8612012-06-04 Frank Warmerdam <[email protected]> 862 863 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling 864 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner 865 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong. 866 8672012-06-01 Frank Warmerdam <[email protected]> 868 869 * tools/tiffinfo.c: Do not try to read image data in EXIF directories. 870 871 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images. 872 http://bugzilla.maptools.org/show_bug.cgi?id=2379 873 874 * libtiff/tif_unix.c: use strerror() to return a more specific error message 875 on failed open. 876 http://bugzilla.maptools.org/show_bug.cgi?id=2341 877 878 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs. 879 http://bugzilla.maptools.org/show_bug.cgi?id=2386 880 881 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support 882 for testing jpeg in tiff image decoding including the "raw" decode interface. 883 8842012-05-31 Frank Warmerdam <[email protected]> 885 886 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in 887 JPEGDecodeRaw() - mostly likely to occur when there is confusion about 888 sampling values. 889 890 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed. 891 892 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval. 893 http://bugzilla.maptools.org/show_bug.cgi?id=2398 894 8952012-05-29 Frank Warmerdam <[email protected]> 896 897 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories, 898 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting 899 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations 900 to get/set functions for different tags! 901 902 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata 903 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag. 904 9052012-05-24 Frank Warmerdam <[email protected]> 906 907 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward 908 accumulate" and overwrite the end by one word in at least some cases. 909 9102012-05-23 Frank Warmerdam <[email protected]> 911 912 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs. 913 914 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files. 915 916 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on 917 the same image. 918 919 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without 920 stripbytecounts or stripoffsets or where loading these fails. 921 922 * libtiff/tif_print.c: be careful about whether min/max values are singular 923 or one per sample. 924 925 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields. 926 May affect things like ISOSpeedRatings. 927 928 * libtiff/tif_dir.c: avoid one byte past end of ink names reading 929 in some cases. 930 9312012-05-19 Bob Friesenhahn <[email protected]> 932 933 * man/TIFFGetField.3tiff: Correct the 'count' field type in the 934 example for how to retreive the value of unsupported tags. 935 9362012-03-30 Frank Warmerdam <[email protected]> 937 938 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173) 939 care of Tom Lane @ Red Hat. 940 9412012-02-18 Bob Friesenhahn <[email protected]> 942 943 * libtiff 4.0.1 released. 944 945 * Update automake used to 1.11.3. 946 947 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf 948 attribute specification to lessen the risk of accidental macro 949 substitution. Patch from Vincent Torri. 950 9512012-01-31 Frank Warmerdam <[email protected]> 952 953 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around 954 assumption tag fetching is always successful. 955 956 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL. 957 9582012-01-22 Bob Friesenhahn <[email protected]> 959 960 * configure.ac: Add support for using library symbol versioning on 961 ELF systems with the GNU linker. Support is enabled via 962 --enable-ld-version-script. Disabled by default for now until 963 there is a decision for how to deploy a libtiff with versioned 964 symbols after libtiff 4.0.0 was already released. 965 9662011-12-22 Bob Friesenhahn <[email protected]> 967 968 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in 969 970 tif_win32.c. Patch by Edward Lam. 971 972 * configure.ac: Add libtiff private dependency on -llzma for 973 pkg-config. Patch by Mark Brand. 974 Updated Automake to 1.11.2. 975 9762011-12-21 Bob Friesenhahn <[email protected]> 977 978 * libtiff 4.0.0 released. 979 9802011-12-08 Frank Warmerdam <[email protected]> 981 982 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking 983 of _TIFFFillStriles() results (#gdal 4372) 984 9852011-12-07 Frank Warmerdam <[email protected]> 986 987 * libtiff/tif_dirread.c: fixes to deal with invalid files where 988 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372) 989 990 * libtiff/tif_dirread.c: fix error reporting when there is no 991 tag information struct and name (gdal #4373) 992 9932011-10-22 Bob Friesenhahn <[email protected]> 994 995 * Update GNU libtool to 2.4.2. 996 997 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be 998 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe 999 Deroulers. 1000 10012011-06-21 Frank Warmerdam <[email protected]> 1002 1003 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo. 1004 10052011-05-31 Jim Meyering <[email protected]> 1006 1007 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also 1008 upon failure to allocate "resizeddata". 1009 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for 1010 allocation failure, not before. 1011 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path 1012 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc 1013 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark 1014 NULL-deref and possible overflow 1015 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written" 1016 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration 1017 and set of otherwise unused local, data_is_empty. 1018 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]: 1019 Diagnose out-of-memory failure and return 0 rather than 1020 dereferencing NULL. 1021 10222011-05-24 Frank Warmerdam <[email protected]> 1023 1024 * libtiff/tif_dirread.c: produce special error message for zero tag 1025 directories instead of error out on the malloc(0) failure. 1026 10272011-05-16 Frank Warmerdam <[email protected]> 1028 1029 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and 1030 related declarations as they are in active use by libraries 1031 such as libgeotiff, and work just fine. (#2315) 1032 10332011-04-20 Frank Warmerdam <[email protected]> 1034 1035 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete 1036 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API. 1037 http://bugzilla.maptools.org/show_bug.cgi?id=2315 1038 1039 * libtiff/libtiff.def: add some missing (64bit) APIs. 1040 http://bugzilla.maptools.org/show_bug.cgi?id=2316 1041 10422011-04-09 Bob Friesenhahn <[email protected]> 1043 1044 * libtiff 4.0.0beta7 released. 1045 10462011-04-09 Bob Friesenhahn <[email protected]> 1047 1048 * configure.ac: Should use AC_CANONICAL_HOST since host specifies 1049 the run-time target whereas target is used to specify the final 1050 output target if the package is a build tool (like a compiler), 1051 which libtiff is not. Resolves libtiff bug 2307 "Use 1052 AC_CANONICAL_HOST macro". 1053 10542011-04-02 Bob Friesenhahn <[email protected]> 1055 1056 * configure.ac: Support configuring TIFF_INT64_FORMAT and 1057 TIFF_UINT64_FORMAT appropriately for MinGW32. 1058 1059 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32 1060 printf conventions for 64-bit types because it uses the WIN32 CRT. 1061 1062 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c, 1063 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32 1064 printf conventions for 64-bit types because it uses the WIN32 CRT. 1065 1066 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not 1067 understood by WIN32 CRT. 1068 1069 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC. 1070 1071 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since 1072 it is much more portable. Tmpfile is included in ISO/IEC 1073 9899:1990 and the WIN32 CRT. 1074 10752011-03-26 Frank Warmerdam <[email protected]> 1076 1077 * tools/tiffset.c: add -d and -sd switches to allow operation on 1078 a particular directory, not just the first (jef). 1079 10802011-03-21 Frank Warmerdam <[email protected]> 1081 1082 * libtiff/tif_thunder.c: Correct potential buffer overflow with 1083 thunder encoded files with wrong bitspersample set. The libtiff 1084 development team would like to thank Marin Barbella and TippingPoint's 1085 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004, 1086 CVE-2011-1167). 1087 http://bugzilla.maptools.org/show_bug.cgi?id=2300 1088 10892011-03-10 Frank Warmerdam <[email protected]> 1090 1091 * libtiff/tif_fax3.h: Fix to last change allowing zero length 1092 runs at the start of a scanline - needed for legal cases. 1093 10942011-03-02 Frank Warmerdam <[email protected]> 1095 1096 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding 1097 a move left. Without this, a malicious input file can generate an 1098 indefinitely large series of runs without a0 ever reaching the right 1099 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192. 1100 This is a modified version of a patch proposed by Drew Yao of Apple 1101 Product Security. It adds an unexpected() report, and disallows the 1102 equality case, since emitting a run without increasing a0 still allows 1103 buffer overrun. 1104 11052011-02-23 Frank Warmerdam <[email protected]> 1106 1107 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296) 1108 1109 * tools/tiff2rgba.c: close source file on error to make leak 1110 detection easier. 1111 1112 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails. 1113 1114 http://bugzilla.maptools.org/show_bug.cgi?id=2295 1115 11162011-02-22 Frank Warmerdam <[email protected]> 1117 1118 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ 1119 _SUPPORT) 1120 11212011-02-18 Frank Warmerdam <[email protected]> 1122 1123 * configure.ac, configure: Added support for --enable-chunky-strip-read 1124 configure option to enable the experimental feature from a couple 1125 months ago for reading big strips in chunks. 1126 1127 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h, 1128 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c: 1129 Implement optional support for deferring the load of strip/tile 1130 offset and size tags for optimized scanning of directories. Enabled 1131 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD 1132 #define in tif_config.h). 1133 11342011-02-11 Frank Warmerdam <[email protected]> 1135 1136 * libtiff/tif_print.c: remove unused variable. 1137 11382011-02-09 Frank Warmerdam <[email protected]> 1139 1140 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem 1141 with non-console (popup message) builds on win32. 1142 1143 http://bugzilla.maptools.org/show_bug.cgi?id=2293 1144 11452011-01-24 Olivier Paquet <[email protected]> 1146 1147 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c, 1148 tif_print.c, tiff.h, tiffiop.h} : Added support for 1149 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different 1150 values for each sample. Presents the min/max of all samples by default for 1151 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags 1152 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag. 1153 http://www.asmail.be/msg0055458208.html 1154 11552011-01-06 Frank Warmerdam <[email protected]> 1156 1157 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not 1158 maintained. 1159 1160 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding 1161 for CHUNKY_STRIP_READ_SUPPORT. 1162 1163 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained 1164 during JPEGPreDecode and JPEGDecode calls. 1165 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT, 1166 as compression formats like JPEG keep 16 lines interleaved in a sense 1167 and might need to touch quite a bit of data. 1168 1169 http://trac.osgeo.org/gdal/ticket/3894 1170 11712011-01-03 Lee Howard <[email protected]> 1172 1173 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images 1174 caused by commit on 2010-12-14. Submitted by e-mail from 1175 Even Rouault <[email protected]> 1176 11772010-12-31 Olivier Paquet <[email protected]> 1178 1179 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE. 1180 http://bugzilla.maptools.org/show_bug.cgi?id=2266 1181 11822010-12-23 Andrey Kiselev <[email protected]> 1183 1184 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the 1185 compression level parameter (preset) for Deflate and LZMA encoders, 1186 e.g "-c lzma:p1" or "-c zip:p9". 1187 1188 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level 1189 (preset) in LZMAVSetField(). 1190 11912010-12-18 Bob Friesenhahn <[email protected]> 1192 1193 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to 1194 Makefile. 1195 11962010-12-14 Andrey Kiselev <[email protected]> 1197 1198 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h, 1199 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new 1200 TIFF compression scheme LZMA reserving a new value 34925 for 1201 Compression tag. As per 1202 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221 1203 12042010-12-14 Lee Howard <[email protected]> 1205 1206 * libtiff/tif_dirread.c: tolerate some cases where 1207 FIELD_COLORMAP is missing 1208 http://bugzilla.maptools.org/show_bug.cgi?id=2189 1209 12102010-12-14 Lee Howard <[email protected]> 1211 1212 * libtiff/tif_read.c: change read_ahead to tmsize_t 1213 http://bugzilla.maptools.org/show_bug.cgi?id=2222 1214 12152010-12-14 Lee Howard <[email protected]> 1216 1217 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on 1218 Windows except on Cygwin 1219 http://bugzilla.maptools.org/show_bug.cgi?id=2224 1220 12212010-12-14 Lee Howard <[email protected]> 1222 1223 * tools/gif2tiff.c: fix buffer overrun 1224 http://bugzilla.maptools.org/show_bug.cgi?id=2270 1225 12262010-12-14 Lee Howard <[email protected]> 1227 1228 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order 1229 to improve compatibility with various viewers 1230 submitted by e-mail from Dwight Kelly <[email protected]> 1231 12322010-12-13 Lee Howard <[email protected]> 1233 1234 * tools/fax2ps.c: be consistent with page-numbering 1235 http://bugzilla.maptools.org/show_bug.cgi?id=2225 1236 12372010-12-13 Lee Howard <[email protected]> 1238 1239 * libtiff/tif_color.c: prevent crash in handling bad TIFFs 1240 resolves CVE-2010-2595 1241 http://bugzilla.maptools.org/show_bug.cgi?id=2208 1242 12432010-12-13 Lee Howard <[email protected]> 1244 1245 * tools/tiffcrop.c: new release by Richard Nolde 1246 http://bugzilla.maptools.org/show_bug.cgi?id=2004 1247 12482010-12-12 Lee Howard <[email protected]> 1249 1250 * tools/tiff2pdf.c: fix colors for images with RGBA 1251 interleaved data 1252 http://bugzilla.maptools.org/show_bug.cgi?id=2250 1253 12542010-12-12 Lee Howard <[email protected]> 1255 1256 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files 1257 http://bugzilla.maptools.org/show_bug.cgi?id=2164 1258 12592010-12-11 Lee Howard <[email protected]> 1260 1261 * tools/tiff2pdf.c: remove invalid duplication for Lab 1262 http://bugzilla.maptools.org/show_bug.cgi?id=2162 1263 12642010-12-11 Lee Howard <[email protected]> 1265 1266 * libtiff/tif_jpeg.c: fix use of clumplines calculation 1267 http://bugzilla.maptools.org/show_bug.cgi?id=2149 1268 12692010-12-11 Lee Howard <[email protected]> 1270 1271 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp() 1272 http://bugzilla.maptools.org/show_bug.cgi?id=2118 1273 12742010-12-11 Lee Howard <[email protected]> 1275 1276 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c, 1277 libtiff/tif_zip.c: fix build errors for VC6 1278 http://bugzilla.maptools.org/show_bug.cgi?id=2105 1279 12802010-12-11 Lee Howard <[email protected]> 1281 1282 * libtiff/tif_stream.cxx: warnings cleanup 1283 http://bugzilla.maptools.org/show_bug.cgi?id=2091 1284 * libtiff/tif_dirread.c: warnings cleanup 1285 http://bugzilla.maptools.org/show_bug.cgi?id=2092 1286 12872010-12-11 Lee Howard <[email protected]> 1288 1289 * tools/tiff2pdf.c: add fill-page option 1290 http://bugzilla.maptools.org/show_bug.cgi?id=2051 1291 12922010-12-11 Lee Howard <[email protected]> 1293 1294 * libtiff/tif_dirread.c: modify warnings 1295 http://bugzilla.maptools.org/show_bug.cgi?id=2016 1296 12972010-12-11 Lee Howard <[email protected]> 1298 1299 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data 1300 http://bugzilla.maptools.org/show_bug.cgi?id=1999 1301 13022010-12-11 Lee Howard <[email protected]> 1303 1304 * tools/tiffinfoce.c: strip byte counts are uint64* now 1305 13062010-12-11 Lee Howard <[email protected]> 1307 1308 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero 1309 or missing byte-count tag 1310 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count 1311 per http://bugzilla.maptools.org/show_bug.cgi?id=1996 1312 13132010-12-08 Lee Howard <[email protected]> 1314 1315 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed 1316 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994 1317 13182010-12-06 Lee Howard <[email protected]> 1319 1320 * libtiff/tif_open.c: Fix mode check before opening a file. 1321 http://bugzilla.maptools.org/show_bug.cgi?id=1906 1322 13232010-11-27 Bob Friesenhahn <[email protected]> 1324 1325 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support. 1326 Patch by Vincent Torri. 1327 13282010-10-21 Frank Warmerdam <[email protected]> 1329 1330 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler. 1331 1332 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf. 1333 1334 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools. 1335 13362010-09-25 Lee Howard <[email protected]> 1337 1338 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde 1339 with additional command line options for Document Title, 1340 Document Creator, and Page Orientation 1341 13422010-07-13 Bob Friesenhahn <[email protected]> 1343 1344 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a 1345 potentially unterminated buffer due to using an exceptionally long 1346 file name. 1347 13482010-07-08 Andrey Kiselev <[email protected]> 1349 1350 * tools/tiff2pdf.c: Fixed ID buffer filling in 1351 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 1352 13532010-07-07 Andrey Kiselev <[email protected]> 1354 1355 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount() 1356 to expected value as the warning message suggests. As per bug 1357 http://bugzilla.maptools.org/show_bug.cgi?id=1963 1358 13592010-07-06 Andrey Kiselev <[email protected]> 1360 1361 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER, 1362 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE 1363 which should be set by value. 1364 1365 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag() 1366 and _TIFFFieldWithName() if the tag is not found in the tag table. 1367 This should be normal situation and returned NULL value should be 1368 properly handled by the caller. 1369 13702010-07-02 Andrey Kiselev <[email protected]> 1371 1372 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned 1373 integer type conversions. As per bug 1374 http://bugzilla.maptools.org/show_bug.cgi?id=2207 1375 1376 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for 1377 WhitePoint tag as per bug 1378 http://bugzilla.maptools.org/show_bug.cgi?id=2042 1379 1380 * libtiff/tif_getimage.c: Check the number of samples per pixel when 1381 working with YCbCr image in PickContigCase(). As per bug 1382 http://bugzilla.maptools.org/show_bug.cgi?id=2216 1383 1384 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing 1385 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when 1386 we don't need any post-processing. That helps to reset the hook if we 1387 previously set this field to some other value and the hook was 1388 initialized accordingly. As per bug 1389 http://bugzilla.maptools.org/show_bug.cgi?id=2035 1390 13912010-07-01 Andrey Kiselev <[email protected]> 1392 1393 * tools/tiffgt.c: Properly check the raster buffer allocations for 1394 integer overflows. As per bug 1395 http://bugzilla.maptools.org/show_bug.cgi?id=2108 1396 1397 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the 1398 upstream. 1399 1400 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move 1401 multiply_32() and multiply_64() functions into tif_aux.c file and 1402 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively. 1403 14042010-06-30 Andrey Kiselev <[email protected]> 1405 1406 * tools/tiff2pdf.c: Better generation of ID field in 1407 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings. 1408 1409 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when 1410 converting JPEG encoded tiles. 1411 1412 * tools/tiff2pdf.c: Better handling of string fields, use static 1413 string buffers instead of dynamically allocated, use strncpy() instead 1414 of strcpy(), control the string lengths. 1415 14162010-06-25 Andrey Kiselev <[email protected]> 1417 1418 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid 1419 referencing to uninitialized memory in some cases (e.g. when tile size 1420 set bigger than the image size). 1421 14222010-06-15 Bob Friesenhahn <[email protected]> 1423 1424 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr 1425 subsampled data since tiffcrop currently doesn't support it. Fix 1426 JPEG support. 1427 14282010-06-13 Frank Warmerdam <[email protected]> 1429 1430 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201) 1431 1432 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return" 1433 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely 1434 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual 1435 size is larger. Also, there are a bunch of places that try to 1436 memset() a malloc'd buffer before checking for malloc failure, which 1437 would result in core dump if there actually were a failure. (#2211) 1438 14392010-06-11 Bob Friesenhahn <[email protected]> 1440 1441 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to 1442 avoid compiler warnings if parameter types are not sign 1443 consistent. 1444 1445 * libtiff 4.0.0alpha6 released. 1446 1447 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected 1448 European page size dimensions. Added an option to allow the user 1449 to specify a custom page size on the command line. Fix the case 1450 where a page size specified with a fractional part was being 1451 coerced to an integer by retyping the variables that define the 1452 paper size. 1453 1454 * html/index.html: Update for the 3.9.3 release. 1455 1456 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject 1457 YCbCr subsampled data since tiffcp currently doesn't support it. 1458 http://bugzilla.maptools.org/show_bug.cgi?id=2097 1459 1460 * Update libtool to version 2.2.10. 1461 14622010-06-10 Bob Friesenhahn <[email protected]> 1463 1464 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if 1465 multiplier is zero. 1466 14672010-06-09 Bob Friesenhahn <[email protected]> 1468 1469 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for 1470 CVE-2010-1411 was not complete. 1471 1472 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely 1473 multiply two integers. Returns zero if there is an integer 1474 overflow. 1475 1476 * tools/tiffcp.c (main): tiffcp should not leak memory if an error 1477 is reported when reading the input file. 1478 14792010-06-08 Bob Friesenhahn <[email protected]> 1480 1481 * Update libtool to version 2.2.8. 1482 1483 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of 1484 buffer due to integer overflow in TIFFroundup() and several other 1485 potential overflows. In conjunction with the fix to TIFFhowmany(), 1486 fixes CVE-2010-1411. 1487 1488 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would 1489 result in an integer overflow. This causes TIFFroundup() to also 1490 return zero if there would be an integer overflow. 1491 1492 * contrib: Add an emacs formatting mode footer to all source files 1493 so that emacs can be effectively used. 1494 14952010-06-03 Oliver Chen Feng <[email protected]> 1496 1497 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff 1498 file PAGENUMBER value in sequence for users who care the page 1499 sequence, this will also prevent tiff2pdf from creating pdf file from 1500 the merged tiff file with wrong page sequence. 1501 15022010-05-08 Olivier Paquet <[email protected]> 1503 1504 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order 1505 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag. 1506 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1507 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2). 1508 http://bugzilla.maptools.org/show_bug.cgi?id=2192 1509 15102010-05-07 Frank Warmerdam <[email protected]> 1511 1512 * libtiff/tif_jpeg.c: Ensure that quality is always set in 1513 JPEGPreEncode(), not just when we want to output local tables. 1514 Otherwise the quality used during compression may not be right and 1515 might not match the tables in the tables tag. This bug only occurs 1516 when seeking between directories in the midst of writing blocks. 1517 http://trac.osgeo.org/gdal/ticket/3539 1518 15192010-05-06 Andrey Kiselev <[email protected]> 1520 1521 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html: 1522 Regenerated from the source. 1523 15242010-05-05 Olivier Paquet <[email protected]> 1525 1526 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which 1527 had stopped working. Also made it always print 6 floats instead of 1528 2*SamplesPerPixel. 1529 http://bugzilla.maptools.org/show_bug.cgi?id=2191 1530 http://bugzilla.maptools.org/show_bug.cgi?id=2186 1531 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the 1532 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats. 1533 15342010-05-05 Frank Warmerdam <[email protected]> 1535 1536 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking 1537 if the jpeg table was written. This is a fix for the last fix on 04-21. 1538 15392010-04-21 Frank Warmerdam <[email protected]> 1540 1541 * libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime 1542 JPEGSetupEncode() is called if the tables already seem to be 1543 established. This prevents spurious updates and rewriting of 1544 directories with jpegtables when doing updates to existing images. 1545 http://trac.osgeo.org/gdal/ticket/3539 1546 15472010-04-20 Olivier Paquet <[email protected]> 1548 1549 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1550 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH, 1551 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA. 1552 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2. 1553 http://bugzilla.maptools.org/show_bug.cgi?id=2139 1554 15552010-04-10 Bob Friesenhahn <[email protected]> 1556 1557 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for 1558 when the tag count value is zero. Error handling is still a 1559 regression since in 3.9.2, empty tags are skipped (with a warning) 1560 rather than returning a hard error and refusing to read the file. 1561 1562 * tools/ppm2tiff.c (main): While case for parsing comment line 1563 requires extra parenthesis to work as expected. Reported by 1564 Thomas Sinclair. 1565 15662010-04-02 Frank Warmerdam <[email protected]> 1567 1568 * libtiff/tif_read.c (primarily): Add support for 1569 CHUNKY_STRIP_READ_SUPPORT where large strips are 1570 read in chunks for applications using TIFFReadScanline(). 1571 This is intended to make it more practical work with very 1572 large compressed one-strip files. Feature is off by default. 1573 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro. 1574 http://trac.osgeo.org/gdal/ticket/3514 1575 15762010-03-31 Frank Warmerdam <[email protected]> 1577 1578 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing 1579 directories so previously placed directories will be migrated to 1580 the end of file if needed. 1581 15822010-03-30 Frank Warmerdam <[email protected]> 1583 1584 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64 1585 to support operating on strips/tiles of more than 256MB. 1586 http://trac.osgeo.org/gdal/ticket/3512 1587 15882010-03-10 Bob Friesenhahn <[email protected]> 1589 1590 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so 1591 that it is clearly a memory allocation error message, and also 1592 includes the size of the allocation request. 1593 15942010-02-22 Lee Howard <[email protected]> 1595 1596 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating 1597 the JPEG TIFF as is is not required in order to prevent it from 1598 being unused and filled with invalid data. (Leave it to be 1599 generated by later activity.) 1600 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1601 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip 1602 data rather than skipping them. This fixes the ability to view in 1603 Acrobat Reader, Evince, and Ghostscript. 1604 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1605 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR 1606 strips. 1607 http://bugzilla.maptools.org/show_bug.cgi?id=2029 1608 16092009-12-03 Frank Warmerdam <[email protected]> 1610 1611 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns. 1612 Made so that when working with downsampled images a stub function 1613 reporting an error is used for tif_decoderow. We cannot meaningfully 1614 support reading scanlines in this situation. (#1936) 1615 1616 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after 1617 resetting of the upsampling values (gdal:#3259). 1618 http://bugzilla.maptools.org/show_bug.cgi?id=1936 1619 16202009-11-30 Frank Warmerdam <[email protected]> 1621 1622 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c, 1623 tools/ras2tiff.c: Fix resource leaks on error. 1624 http://bugzilla.maptools.org/show_bug.cgi?id=2121 1625 1626 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling 1627 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead 1628 of as a custom(generic) field to avoid a potential reentrancy problem. 1629 http://bugzilla.maptools.org/show_bug.cgi?id=2125 1630 1631 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h, 1632 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit 1633 const, and display_sRGB static and const. 1634 http://bugzilla.maptools.org/show_bug.cgi?id=2124 1635 16362009-11-04 Bob Friesenhahn <[email protected]> 1637 1638 * libtiff 4.0.0alpha5 released. 1639 16402009-11-03 Bob Friesenhahn <[email protected]> 1641 1642 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This 1643 version has undergone substantial testing with arbitrary sample 1644 bit depths. Also eliminates GCC compilation warnings. 1645 16462009-11-02 Bob Friesenhahn <[email protected]> 1647 1648 * port/libport.h: Add extern declarations for getopt standard 1649 globals. 1650 16512009-10-31 Bob Friesenhahn <[email protected]> 1652 1653 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings 1654 noticed in 64-bit build of libtiff with Visual Studio 2005. 1655 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in 1656 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067 1657 1658 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important 1659 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 - 1660 Visual Studio 2005 64-bit warning in tif_pixarlog.c", 1661 http://bugzilla.maptools.org/show_bug.cgi?id=2068 1662 16632009-10-29 Bob Friesenhahn <[email protected]> 1664 1665 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned 1666 pointer" warnings. 1667 16682009-10-28 Bob Friesenhahn <[email protected]> 1669 1670 * html/tools.html: Add manual page links, and a summary 1671 description of tiffcrop. 1672 16732009-10-07 Bob Friesenhahn <[email protected]> 1674 1675 * configure.ac: x86_64 should use the same fill order as i386. 1676 16772009-09-24 Bob Friesenhahn <[email protected]> 1678 1679 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard 1680 Nolde. Major updates to add significant functionality for reading 1681 and writing tile based images with bit depths not a multiple of 8 1682 which cannot be handled by tiffcp. 1683 16842009-09-03 Bob Friesenhahn <[email protected]> 1685 1686 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs 1687 do_fancy_upsampling=FALSE in order to read raw data. Resolves 1688 "Bug 2090 - OJPEG crash with libjpeg v7". 1689 http://bugzilla.maptools.org/show_bug.cgi?id=2090 1690 16912009-09-03 Frank Warmerdam <[email protected]> 1692 1693 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA 1694 interface when stoponerror is set. 1695 http://bugzilla.maptools.org/show_bug.cgi?id=2071 1696 16972009-08-30 Bob Friesenhahn <[email protected]> 1698 1699 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to 1700 fix build with gcc when using the "-Wformat 1701 -Werror=format-security" flags. 1702 17032009-08-29 Bob Friesenhahn <[email protected]> 1704 1705 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 1706 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional 1707 utilities tests. 1708 17092009-08-28 Bob Friesenhahn <[email protected]> 1710 1711 * tools/tiffinfo.c: tiffinfo should return error status to the 1712 caller. Register a private error callback to accomplish that. 1713 1714 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and 1715 PNM formats so that we will be able to test more of the tools. 1716 While adding these test images I notice that bmp2tiff and gif2tiff 1717 only support ancient versions of their respective formats. 1718 17192009-08-27 Bob Friesenhahn <[email protected]> 1720 1721 * libtiff 4.0.0alpha4 released. 1722 1723 * HOWTO-RELEASE: Improved release instructions. 1724 17252009-08-24 Bob Friesenhahn <[email protected]> 1726 1727 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied 1728 fixes for "Bug 2023 - nroff errors in manual pages". 1729 http://bugzilla.maptools.org/show_bug.cgi?id=2023 1730 1731 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 - 1732 CVE-2009-2347 libtiff: integer overflows in various inter-color 1733 space conversion tools". 1734 http://bugzilla.maptools.org/show_bug.cgi?id=2079 1735 1736 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay 1737 Berkenbilt for "Bug 2024 - possible null pointer dereference with 1738 one-line fix". 1739 http://bugzilla.maptools.org/show_bug.cgi?id=2024 1740 1741 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch 1742 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c: 1743 segfault after setting tdir_tag = IGNORE". 1744 http://bugzilla.maptools.org/show_bug.cgi?id=1895 1745 17462009-08-23 Bob Friesenhahn <[email protected]> 1747 1748 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing 1749 tiffcrop.sh into a collection of many specific tests. Re-wrote 1750 all of the existing tests to be based on some simple shell 1751 functions. Make distcheck works again. 1752 1753 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and 1754 added 'memcheck' and 'ptrcheck' targets to make it easy to run the 1755 tests under valgrind. 1756 17572009-08-21 Bob Friesenhahn <[email protected]> 1758 1759 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH 1760 build. 1761 1762 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not 1763 actually activated since it needed to be enabled in this 1764 Makefile.am. Also activated parallel-tests mode since it offers 1765 useful features such as per-test .log files and a summary test 1766 report .log file. 1767 17682009-08-20 Bob Friesenhahn <[email protected]> 1769 1770 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11, 1771 libtool 2.2.6. Enabled support for silent build rules 1772 (--enable-silent-rules or 'make V=0') and colorized tests. 1773 1774 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release. 1775 17762009-06-30 Frank Warmerdam <[email protected]> 1777 1778 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression. 1779 1780 * tools/tiffcp.c: add -c sgilog support. 1781 1782 * libtiff/tif_luv.c: correct return codes from encoderow to be 1783 1 on success instead of zero. 1784 http://bugzilla.maptools.org/show_bug.cgi?id=2069 1785 1786 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from 1787 #1085 for a better underflow fix that errors properly. 1788 http://bugzilla.maptools.org/show_bug.cgi?id=2065 1789 http://bugzilla.maptools.org/show_bug.cgi?id=1985 1790 17912009-06-26 Frank Warmerdam <[email protected]> 1792 1793 * libtiff/tif_strip.c: Remove an inappropriate assertion that often 1794 fails on oddly sized 12bit jpeg compressed ycbcr images. 1795 17962009-06-22 Frank Warmerdam <[email protected]> 1797 1798 * libtiff/tif_lzw.c: Fix buffer underflow bug. 1799 http://bugzilla.maptools.org/show_bug.cgi?id=2065 1800 18012009-06-21 Frank Warmerdam <[email protected]> 1802 1803 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support 1804 for dual mode 8/12 bit jpeg support. 1805 18062009-06-03 Frank Warmerdam <[email protected]> 1807 1808 * libtiff/tif_write.c: do not override the planar configuration to be 1809 contig for one sample files if planar configuration is already set. 1810 http://bugzilla.maptools.org/show_bug.cgi?id=2057 1811 18122009-06-02 Frank Warmerdam <[email protected]> 1813 1814 * libtiff/libtiff.def: Add TIFFUnsetField. 1815 18162009-05-03 Frank Warmerdam <[email protected]> 1817 1818 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various 1819 error reports to use "%s" as format string. 1820 http://trac.osgeo.org/gdal/ticket/2976 1821 18222009-03-12 Frank Warmerdam <[email protected]> 1823 1824 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining 1825 for some codecs (#2020). 1826 18272009-02-12 Frank Warmerdam <[email protected]> 1828 1829 * libtiff/tif_luv.c: Fix handling of tiled logluv images. 1830 http://bugzilla.maptools.org/show_bug.cgi?id=2005 1831 18322009-02-09 Frank Warmerdam <[email protected]> 1833 1834 * libtiff/tif_dirread.c: Improve allocation safety when allocated 1835 buffer for large tags. (#1998) Related to (#1993) 1836 18372009-02-06 Frank Warmerdam <[email protected]> 1838 1839 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the 1840 test suite should pass. 1841 18422009-02-05 Frank Warmerdam <[email protected]> 1843 1844 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size, 1845 but at the 2GB boundary to avoid overflow on 32bit systems. 1846 http://bugzilla.maptools.org/show_bug.cgi?id=1993 1847 1848 * libtiff/tif_dirread.c: Remove some assertions that blow due to 1849 corrupt files rather than in response to library internal 1850 inconsistencies. 1851 http://bugzilla.maptools.org/show_bug.cgi?id=1995 1852 http://bugzilla.maptools.org/show_bug.cgi?id=1991 1853 1854 * libtiff/tif_dirread.c: Fixed testing for failed result from 1855 TIFFReadDirectoryFindFieldInfo(). 1856 http://bugzilla.maptools.org/show_bug.cgi?id=1992 1857 18582009-01-23 Frank Warmerdam <[email protected]> 1859 1860 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors. 1861 http://bugzilla.maptools.org/show_bug.cgi?id=1911 1862 1863 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset. 1864 1865 http://bugzilla.maptools.org/show_bug.cgi?id=1924 1866 1867 * tools/tiffcrop.c: initialize xres/yres values. 1868 1869 * test/*.sh - default ${srcdir} to local directory. 1870 1871 * test/common.sh - start verbose mode after common settings. 1872 1873 * libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to 1874 avoid type mismatches on different platforms. 1875 http://bugzilla.maptools.org/show_bug.cgi?id=1889 1876 18772009-01-22 Frank Warmerdam <[email protected]> 1878 1879 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c, 1880 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues. 1881 1882 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT 1883 defined, primarily to reduce prototype warnings on windows. 1884 1885 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings 1886 about unused parameters, and uninitialized variables. 1887 18882009-01-21 Bob Friesenhahn <[email protected]> 1889 1890 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in 1891 order to trace full execution detail while executing the test suite. 1892 18932009-01-20 Frank Warmerdam <[email protected]> 1894 1895 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv. 1896 18972009-01-20 Bob Friesenhahn <[email protected]> 1898 1899 * test/Makefile.am (CLEANFILES): Make sure that test output files 1900 are removed by 'make clean' 1901 1902 * Update autotools for 4.0.0 beta3 1903 1904 * 4.0.0 beta3 produced. 1905 19062009-01-12 Bob Friesenhahn <[email protected]> 1907 1908 * test/tiffcrop.sh: New test script for tiffcrop from Richard 1909 Nolde. 1910 1911 * tools/tiff2ps.c: Remove spurious message to stderr. 1912 19132009-01-11 Bob Friesenhahn <[email protected]> 1914 1915 * tools/tiff2ps.c: Incorporated significant functionality update 1916 from Richard Nolde. In particular, support for rotating the image 1917 by 90, 180, 270, and 'auto' has been added. 1918 1919 * man/tiffcrop.1: Incorporated documentation updates from Richard 1920 Nolde. 1921 1922 * tools/tiffcrop.c: Incorporated significant functionality update 1923 from Richard Nolde. 1924 19252008-12-31 Bob Friesenhahn <[email protected]> 1926 1927 * libtiff/tiffio.h: GCC will now validate format specifications 1928 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and 1929 TIFFWarningExt() in order to reveal bugs. 1930 1931 * Many fixes throughout to work better as a 64-bit build. 1932 19332008-12-30 Bob Friesenhahn <[email protected]> 1934 1935 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length 1936 tags now require 64-bit parameter rather than 32-bit. 1937 1938 * libtiff/tif_dirread.c: Fixed issues with unaligned access to 1939 64-bit values. 1940 1941 * tools/thumbnail.c: Eliminate crash noticed while running test 1942 suite. 1943 19442008-12-29 Bob Friesenhahn <[email protected]> 1945 1946 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer): 1947 Initialize stack variables to avoid compiler warning. 1948 1949 * tools/tiffinfoce.c (main): Use toff_t for offset type when 1950 retrieving offset of EXIF IFD. 1951 1952 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the 1953 TIFFClientOpen() callback and other external function definitions. 1954 1955 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit 1956 type now. Fixes crash when dumping files containing an EXIF IFD. 1957 1958 * m4/libtool.m4: Update to libtool 2.2.6. 1959 19602008-12-21 Frank Warmerdam <[email protected]> 1961 1962 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function. 1963 1964 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full 1965 strip for the last partial strip in a jpeg compressed file. 1966 http://bugzilla.maptools.org/show_bug.cgi?id=1981 1967 19682008-10-29 Frank Warmerdam <[email protected]> 1969 1970 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when 1971 we take the shortcut to only update the strip/tile offsets in place. 1972 http://trac.osgeo.org/gdal/ticket/2621 1973 19742008-10-21 Andrey Kiselev <[email protected]> 1975 1976 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with 1977 the older versions retained). 1978 19792008-10-09 Frank Warmerdam <[email protected]> 1980 1981 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using 1982 IPP enabled version of libjpeg from Intel. 1983 http://bugzilla.maptools.org/show_bug.cgi?id=1951 1984 19852008-09-05 Andrey Kiselev <[email protected]> 1986 1987 * tools/tiffsplit.c: Use byte counts of proper size (uint64). 1988 Required for libtiff 4.0. 1989 1990 * tools/tiffsplit.c: Use dynamically allocated array instead of static 1991 when constructing output file names. 1992 19932008-09-03 Andrey Kiselev <[email protected]> 1994 1995 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when 1996 doing the filename/path construction. 1997 1998 * tools/tiff2pdf.c: More appropriate format string in 1999 t2p_write_pdf_string(); avoid signed/unsigned mismatch. 2000 2001 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug 2002 2003 http://bugzilla.maptools.org/show_bug.cgi?id=1929 2004 2005 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes 2006 CVE-2008-2327 security issue. 2007 20082008-09-01 Frank Warmerdam <[email protected]> 2009 2010 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function. 2011 2012 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD 2013 depending on whether the file is bigtiff or classic tiff. 2014 http://bugzilla.maptools.org/show_bug.cgi?id=1917 2015 20162008-08-12 Edward Lam <[email protected]> 2017 2018 * tools/tiffdump.c: When compiling for Microsoft Windows, apply 2019 consistent (__int64) casting when testing if _lseeki64 has 2020 successfully seeked as requested. This is necessary for large 2021 file support to work since off_t is only 32-bit. 2022 20232008-07-29 Frank Warmerdam <[email protected]> 2024 2025 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or 2026 the subsampling values not being 1, 2 or 4 (for jpeg compressed images) 2027 with control logic to return runtime errors (c/o Even Rouault) (#1927). 2028 20292008-06-17 Frank Warmerdam <[email protected]> 2030 2031 * tools/tiffcrop.c: Fix some portability problems. 2032 2033 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are 2034 used in tif_jpeg.c. 2035 2036 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags 2037 as TIFFOpen(). 2038 20392008-06-01 Frank Warmerdam <[email protected]> 2040 2041 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures 2042 like Sparc/Solaris. 2043 http://bugzilla.maptools.org/show_bug.cgi?id=1892 2044 20452008-05-27 Frank Warmerdam <[email protected]> 2046 2047 * libtiff.def: Add TIFFFindField 2048 http://bugzilla.maptools.org/show_bug.cgi?id=1891 2049 20502008-05-26 Frank Warmerdam <[email protected]> 2051 2052 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused. 2053 2054 * li2008-04-15 Andrey Kiselev <[email protected]> 2055 2056btiff/tif_win32.c: Replace custom Win32 memory api with generic 2057 POSIX one. No apparent value to use of GlobalAlloc() in the modern 2058 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885 2059 2060 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items 2061 in windows version (care of Edward Lam). 2062 20632008-05-24 Frank Warmerdam <[email protected]> 2064 2065 * tif_codec.c: Avoid NULL pointer dereferencing for exotic 2066 compression codec codes. 2067 2068 * tif_dirwrite.c: fix potential memory leak. 2069 2070 * tif_dirread.c: Fix unchecked malloc result. 2071 20722008-05-24 Bob Friesenhahn <[email protected]> 2073 2074 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh 2075 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh 2076 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh 2077 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh 2078 tiffdump.sh tiffinfo.sh}: Added more test scripts based on 2079 suggestions from Lee Howard posted to the tiff list on 13 Sep 2080 2007. 2081 20822008-05-23 Frank Warmerdam <[email protected]> 2083 2084 * libtiff/tif_fax3.c: Add an assert in an effort to detect a 2085 possible runtime problem reported by coverity. 2086 2087 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str. 2088 2089 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde. 2090 http://bugzilla.maptools.org/show_bug.cgi?id=1888 2091 2092 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak. 2093 2094 * tools/rgb2ycbcr.c: fix memory leak of raster buffer. 2095 2096 * tools/tiffcp.c: Simplify inknames code to avoid pointless test. 2097 Cleanup scanline allocation to avoid coverity warning. 2098 2099 * tools/thumbnail.c: Check for TIFFOpen() failure. 2100 21012008-05-18 Frank Warmerdam <[email protected]> 2102 2103 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT 2104 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear 2105 why this is needed. 2106 21072008-05-09 Bob Friesenhahn <[email protected]> 2108 2109 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like 2110 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4". 2111 21122008-04-15 Andrey Kiselev <[email protected]> 2113 2114 * test/: Test suite updated. Everything is passed now. 2115 2116 * libtiff/tif_dirinfo.c: Fixed description of the 2117 TIFFTAG_NUMBEROFINKS tag. 2118 21192008-04-14 Andrey Kiselev <[email protected]> 2120 2121 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}: 2122 Get rid of some of "dereferencing type-punned" warnings by converting 2123 tdir_offset field of TIFFDirEntry structure into union. 2124 21252008-04-10 Andrey Kiselev <[email protected]> 2126 2127 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}: 2128 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out 2129 from the public interface. Type of its 'count' parameter changed 2130 from uint32 to tmsize_t. 2131 2132 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields 2133 of the tiff structure have the size_t type instead of uint32. 2134 21352008-04-09 Andrey Kiselev <[email protected]> 2136 2137 * tools/tiffdump.c: Added support for MSVS 6.0. 2138 2139 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat() 2140 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating 2141 point values on MSVS 6.0 platform. 2142 21432008-03-14 Frank Warmerdam <[email protected]> 2144 2145 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in 2146 TIFFReadDirEntryArray() since they are interfering with seemingly 2147 legitimate files. http://trac.osgeo.org/gdal/ticket/2005 2148 21492008-02-09 Joris Van Damme <[email protected]> 2150 2151 * tif_dirread.c: Added handling for the case of number of values for 2152 PageNumber tag different from 2 (previously resulted in an assert 2153 indicating lack of handling and was forgotten about) 2154 21552008-02-01 Frank Warmerdam <[email protected]> 2156 2157 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on 2158 the actual jpeg data stream if the first strip/tile has zero size. 2159 This is the case when GDAL creates a new file with zero sizes, closes 2160 and reopens it. 2161 21622008-01-07 Frank Warmerdam <[email protected]> 2163 2164 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam). 2165 21662008-01-01 Frank Warmerdam <[email protected]> 2167 2168 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions. 2169 2170 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean 2171 targets. 2172 2173 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c 2174 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005 2175 (x64). 2176 2177 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag() 2178 and TIFFFieldWithName() now return TIFFField pointers instead of 2179 TIFFFieldInfo pointers. 2180 2181 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't 2182 exist. This makes it compile again on Windows 2183 2184 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c, 2185 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64. 2186 2187 * test/rewrite_tag.c: New test for TIFFRewriteField(). 2188 21892007-12-31 Frank Warmerdam <[email protected]> 2190 2191 * tif_dirwrite.c: Added TIFFRewriteField(). This new function 2192 rewrites one field "on disk" updating an existing directory 2193 entry. Lots of limitations still... 2194 2195 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of 2196 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that 2197 the strip offset/size values are dirty but nothing else about the 2198 directory is dirty. In flush handle "just stripmaps dirty" as a 2199 special case that just rewrites these values without otherwise 2200 modifying the directory on disk using TIFFRewriteField(). 2201 2202 We also modify logic so that in update mode the directory is not 2203 marked dirty on read, but only when something is changed. This 2204 means we need to keep track of updates to the stripmap stuff in 2205 TIFFAppendToStrip(). 2206 22072007-12-10 Frank Warmerdam <[email protected]> 2208 2209 * tif_jpeg.c: Improve ability to switch between encoding and decoding 2210 in the jpeg code (gdal bug #2033). 2211 22122007-11-23 Frank Warmerdam <[email protected]> 2213 2214 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c, 2215 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the 2216 rawcp/rawcc buffer are for writing and thus may require flushing. 2217 Necessary to distinguish whether they need to be written to disk when 2218 in mixed read/write mode and doing a mixture of writing followed by 2219 reading. http://trac.osgeo.org/gdal/ticket/1758 2220 22212007-11-23 Andrey Kiselev <[email protected]> 2222 2223 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches 2224 from Alexey Chupahin. 2225 22262007-11-02 Frank Warmerdam <[email protected]> 2227 2228 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for 2229 establishing if an existing tile can be rewritten to the same location 2230 by comparing the current size to all the other blocks in the same 2231 directory. This is dangerous in many situations and can easily 2232 corrupt a file. (observed in esoteric GDAL situation that's hard to 2233 document). This change involves leaving the stripbytecount[] values 2234 unaltered till TIFFAppendToStrip(). Now we only write a block back 2235 to the same location it used to be at if the new data is the same 2236 size or smaller - otherwise we move it to the end of file. 2237 2238 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile 2239 data when writing the directory just because we have BEENWRITING at 2240 some point in the past. This was causing odd junk to be written out 2241 in a tile of data when a single tile had an interleaving of reading 2242 and writing with reading last. (highlighted by gdal 2243 autotest/gcore/tif_write.py test 7. 2244 2245 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid 2246 modifying callers buffer. 2247 http://trac.osgeo.org/gdal/ticket/1965 2248 2249 * tif_predict.c/h: more fixes related to last item, keeping a 2250 distinct pfunc for encode and decode cases as these were getting 2251 mixed up sometimes. 2252 http://trac.osgeo.org/gdal/ticket/1948 2253 22542007-11-01 Frank Warmerdam <[email protected]> 2255 2256 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that 2257 predictor based encoding and decoding works in read-write update 2258 mode properly. 2259 http://trac.osgeo.org/gdal/ticket/1948 2260 22612007-10-24 Joris Van Damme <[email protected]> 2262 2263 * tif_dirread.c: Fixed problem with bogus file triggering 2264 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in 2265 ChopUpSingleUncompressedStrip 2266 22672007-10-22 Joris Van Damme <[email protected]> 2268 2269 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images 2270 at best, access violation at worst, when subsampled JPEG compressed imagery 2271 is decoded without the JPEG_COLORMODE feature 2272 22732007-10-11 Frank Warmerdam <[email protected]> 2274 2275 * html/index.html: Update "people responsible" section. 2276 22772007-10-05 Frank Warmerdam <[email protected]> 2278 2279 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases 2280 as reported on the mailing list. 2281 22822007-10-01 Joris Van Damme <[email protected]> 2283 2284 * changed some more incorrect %lud printf flags to %lu 2285 22862007-09-29 Joris Van Damme <[email protected]> 2287 2288 * tif_dirread.c: Strip chopping interfered badly with uncompressed 2289 subsampled images because it tried to divide subsampled rowblocks, 2290 leading to all sorts of errors throughout the library for these 2291 images. Fixed by making strip chopping divide in row counts that 2292 are a multiple of vertical subsampling value. 2293 22942007-09-28 Joris Van Damme <[email protected]> 2295 2296 * tif_dirread.c: Logical cast working around compiler warning 2297 2298 * tif_read.c: Correction of some error flags and parameter lists 2299 23002007-09-27 Joris Van Damme <[email protected]> 2301 2302 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust 2303 when dealing with large bitspersample values, shutting up purification 2304 tools that warn about truncation, though it remains incorrect and 2305 indicates a conceptual problem there. 2306 2307 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading 2308 of first IFD) to proper place because it badly interfered with memory 2309 mapping, resulting in mapping flag even with dummy mapping functions 2310 that returned 0 whilst at the same time the mapping tif_size wasn't 2311 set, thus resulting in continuous incorrect beyond-eof errors. 2312 23132007-09-24 Joris Van Damme <[email protected]> 2314 2315 * tif_dirinfo.c: Fixed (MSVC) compiler reports about 2316 inconsistent use of const in tiffFields and exifFields definition 2317 23182007-09-20 Frank Warmerdam <[email protected]> 2319 2320 * tif_dirwrite.c: Always write tile/strip offsets and sizes 2321 using LONG8 type when output format is BigTIFF. The 2322 TIFFWriteDirectoryTagLongLong8Array() function was restructured 2323 accordingly. 2324 2325 * tif_dirread.c: Improvements to error reporting text in 2326 TIFFFetchDirectory(). 2327 23282007-09-19 Bob Friesenhahn <[email protected]> 2329 2330 * test/images: Added a small collection of test images for use by 2331 test programs and scripts. 2332 * test/tiffinfo.sh: A trivial example test script. 2333 * test/common.sh: Added small script for setting the environment 2334 used by script-based tests. 2335 23362007-08-24 Frank Warmerdam <[email protected]> 2337 2338 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed 2339 zero when writing directory contents to preserve the ability to 2340 rewrite directories in place, even in the middle of a directory 2341 chain. 2342 2343 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field 2344 definitions that are missing. Existing definitions are silently 2345 ignored. 2346 2347 * tif_dirread.c: Add runtime error for fields for which no definition 2348 is found (in addition to an assert for developers) in 2349 TIFFFetchNormalTag(). Not sure if this is needed, but it seems 2350 prudent. 2351 23522007-08-10 Joris Van Damme <[email protected]> 2353 2354 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer 2355 from _TIFFRGBAImage structure to revert unwanted ABI change. 2356 23572007-08-10 Joris Van Damme <[email protected]> 2358 2359 * libtiff/tif_win32.c: use SetFilePointer instead of 2360 SetFilePointerEx, as per bug 2361 2362 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580 2363 23642007-07-19 Andrey Kiselev <[email protected]> 2365 2366 * libtiff/tif_stream.cxx: Put all callback functions declarations 2367 inside extern "C" block. 2368 2369 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c, 2370 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf() 2371 formatter instead of "%lld" with MSVC compiler. 2372 2373 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and 2374 _TIFFUInt64ToDouble() functions. 2375 23762007-07-18 Andrey Kiselev <[email protected]> 2377 2378 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit 2379 integer constants. 2380 2381 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h, 2382 remove tif_config.h/tiffconf.h during cleaning. As per bug 2383 2384 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573 2385 2386 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug 2387 2388 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577 2389 23902007-07-13 Andrey Kiselev <[email protected]> 2391 2392 * libtiff 4.0.0alpha released. 2393 23942007-07-12 Andrey Kiselev <[email protected]> 2395 2396 * tools/tiff2pdf.c: Added missed extern optind as per bug 2397 2398 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567 2399 2400 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c, 2401 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag 2402 extending scheme completed. 2403 24042007-07-11 Bob Friesenhahn <[email protected]> 2405 2406 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to 2407 use standard C++ library size types and attempt to detect overflow 2408 cases. 2409 24102007-07-08 Andrey Kiselev <[email protected]> 2411 2412 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h, 2413 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new 2414 tag extending scheme. Use the new scheme everywhere. 2415 2416 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c, 2417 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c, 2418 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}: 2419 TIFFFIeldInfo structure replaced with TIFFField structure. 2420 TIFFFieldInfo retained for the backward compatibility. 2421 24222007-07-05 Bob Friesenhahn <[email protected]> 2423 2424 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not 2425 defined. 2426 24272007-07-04 Andrey Kiselev <[email protected]> 2428 2429 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused 2430 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration 2431 removed. 2432 2433 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move 2434 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS, 2435 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory. 2436 These tags are not codec-specific and relate to image content, so 2437 process them as other normal tags. 2438 2439 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the 2440 public tiffio.h to private tif_dir.h. 2441 2442 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and 2443 outdated. 2444 24452007-07-03 Andrey Kiselev <[email protected]> 2446 2447 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c, 2448 tif_win3.c}: Obsoleted portability stuff removed. 2449 2450 * tools/tiff2ps.c: Added support 16-bit images as per bug 2451 2452 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566 2453 2454 Patch from William Bader. 2455 2456 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and 2457 significant upgrade of the whole utility as per bug 2458 2459 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560 2460 2461 Now we don't need tiffiop.h in tiff2pdf anymore and will open output 2462 PDF file using TIFFClientOpen() machinery as it is implemented 2463 by Leon Bottou. 2464 24652007-06-26 Bob Friesenhahn <[email protected]> 2466 2467 * configure.ac: Fix typo when substituting value for unsigned 8 bit type. 2468 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic. 2469 Added support for a TIFF_SSIZE_T in order to return memory sizes but still 2470 allow returning -1 for errors. 2471 * libtiff/tiffconf.vc.h: Add porting type defintions for WIN32. 2472 24732007-06-25 Bob Friesenhahn <[email protected]> 2474 2475 * port/strtoull.c: New porting function in case strtoull() is not 2476 available on the target system. 2477 * configure.ac: Add configure support for determining sized types 2478 in a portable way and performing necessary substitutions in 2479 tif_config.h and tiffconf.h. Updated tiff.h to use the new 2480 definitions. 2481 24822007-04-27 Andrey Kiselev <[email protected]> 2483 2484 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug 2485 2486 http://bugzilla.remotesensing.org/show_bug.cgi?id=154 2487 24882007-04-07 Andrey Kiselev <[email protected]> 2489 2490 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c, 2491 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c, 2492 tif_predict.c, tif_zip.c}: Finally fix bug 2493 2494 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274 2495 2496 by introducing _TIFFMergeFieldInfo() returning integer error status 2497 instead of void in case of problems with field merging (e.g., if the 2498 field with such a tag already registered). TIFFMergeFieldInfo() in 2499 public API remains void. Use _TIFFMergeFieldInfo() everywhere and 2500 check returned value. 2501 25022007-04-07 Frank Warmerdam <[email protected]> 2503 2504 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output 2505 blocks in TIFF_DownSample_Subsampled() (bug 1542). 2506 25072007-04-06 Frank Warmerdam <[email protected]> 2508 2509 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it 2510 will convert from decompressor to compressor or compress to decompress 2511 if required by the force arguments. This works around a problem in 2512 where the JPEGFixupTestSubsampling() may cause a decompressor to 2513 be setup on a directory when later a compressor is required with the 2514 force flag set. Occurs with the addtiffo program for instance. 2515 25162007-04-06 Andrey Kiselev <[email protected]> 2517 2518 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in 2519 functionality from Richard Nolde. As per bug 2520 2521 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525 2522 25232007-03-28 Frank Warmerdam <[email protected]> 2524 2525 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC. 2526 25272007-03-17 Joris Van Damme <[email protected]> 2528 2529 * start of BigTIFF upgrade - CVS HEAD unstable until further notice 2530 25312007-03-07 Joris Van Damme <[email protected]> 2532 2533 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading 2534 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling 2535 factor. This bug is mentioned in: 2536 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390 2537 http://www.asmail.be/msg0054766825.html 2538 25392007-03-07 Joris Van Damme <[email protected]> 2540 2541 * libtiff/tif_win32.c: made inclusion of windows.h unconditional 2542 2543 * libtiff/tif_win32.c: replaced preprocessor indication for consiously 2544 unused arguments by standard C indication for the same 2545 25462007-02-27 Andrey Kiselev <[email protected]> 2547 2548 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte 2549 counters in TIFFFetchData(). Should finally fix the issue 2550 2551 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2552 25532007-02-24 Andrey Kiselev <[email protected]> 2554 2555 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount. 2556 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350 2557 2558 * libtiff/tif_dirread.c: Added special function to handle 2559 SubjectDistance EXIF tag as per bug 2560 2561 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362 2562 2563 * tools/tiff2pdf.c: Do not assume inches when the resolution units 2564 do not specified. As per bug 2565 2566 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366 2567 2568 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if 2569 it was set as infinite. As per bug 2570 2571 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368 2572 2573 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed 2574 by Richard Nolde. As per bug 2575 2576 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383 2577 25782007-02-22 Andrey Kiselev <[email protected]> 2579 2580 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with 2581 ExtraSamples == 999 produced by Corel Draw. As per bug 2582 2583 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490 2584 2585 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters 2586 changed from tsize_t to uint32 to be able to work with data arrays 2587 larger than 2GB. Fixes bug 2588 2589 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2590 2591 Idea submitted by Matt Hancher. 2592 25932007-01-31 Andrey Kiselev <[email protected]> 2594 2595 * tools/tif2rgba.c: This utility does not work properly on big-endian 2596 architectures. It was fixed including the bug 2597 2598 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149 2599 26002007-01-15 Mateusz Loskot <[email protected]> 2601 2602 * Submitted libtiff port for Windows CE platform 2603 * libtiff/tif_config.wince.h: Added configuration header for WinCE. 2604 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE. 2605 * libtiff/tif_wince.c: Added WinCE-specific implementation of some 2606 functons from tif_win32.c. 2607 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c. 2608 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some 2609 standard header files for Windows CE build. 2610 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE. 2611 26122006-11-19 Frank Warmerdam <[email protected]> 2613 2614 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if 2615 we move a strip. 2616 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359 2617 26182006-10-13 Andrey Kiselev <[email protected]> 2619 2620 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported 2621 in Gentoo bug (): 2622 2623 http://bugs.gentoo.org/show_bug.cgi?id=142383 2624 2625 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable. 2626 Though it is still far from the state of being working and useful. 2627 26282006-10-12 Andrey Kiselev <[email protected]> 2629 2630 * libtiff/tif_fax3.c: Save the state of printdir codec dependent 2631 method. 2632 2633 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method 2634 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273 2635 2636 * libtiff/tif_win32.c: Fixed problem with offset value manipulation 2637 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322 2638 2639 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for 2640 vulnerabilities, reported in Gentoo bug (): 2641 2642 http://bugs.gentoo.org/show_bug.cgi?id=142383 2643 26442006-09-28 Andrey Kiselev <[email protected]> 2645 2646 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple 2647 vulnerabilities, as per Gentoo bug (): 2648 2649 http://bugs.gentoo.org/show_bug.cgi?id=142383 2650 26512006-09-27 Frank Warmerdam <[email protected]> 2652 2653 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing 2654 encoding and decoding on the same read-write TIFF handle. The LZW 2655 code can now maintain encode and decode state at the same time. The 2656 ZIP code will switch back and forth as needed. 2657 http://bugzilla.remotesensing.org/show_bug.cgi?id=757 2658 26592006-09-20 Frank Warmerdam <[email protected]> 2660 2661 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and 2662 tif_config.vc.h for easier identification by folks using an IDE. 2663 26642006-07-25 Frank Warmerdam <[email protected]> 2665 2666 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron 2667 26682006-07-19 Frank Warmerdam <[email protected]> 2669 2670 * tif_dirwrite.c: take care not to flush out buffer of strip/tile 2671 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates 2672 to bug report by Peng Gao with black strip at bottom of images. 2673 26742006-07-12 Frank Warmerdam <[email protected]> 2675 2676 * tif_dirwrite.c: make sure to use uint32 for wordcount in 2677 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields. 2678 It already seems to have been done for other field types. Needed 2679 for "tiffset" on files with geotiff ascii text. 2680 26812006-07-04 Bob Friesenhahn <[email protected]> 2682 2683 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c} 2684 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and 2685 its use does not appear to be required, so use it only when it is 2686 available. 2687 26882006-06-24 Andrey Kiselev <[email protected]> 2689 2690 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961). 2691 2692 * libtiff/tif_dirread.c: Move IFD fetching code in the separate 2693 function TIFFFetchDirectory() avoiding code duplication in 2694 TIFFReadDirectory() and TIFFReadCustomDirectory(). 2695 26962006-06-19 Frank Warmerdam <[email protected]> 2697 2698 * tools/tiff2pdf.c: Fix handling of -q values. 2699 http://bugzilla.remotesensing.org/show_bug.cgi?id=587 2700 27012006-06-17 Frank Warmerdam <[email protected]> 2702 2703 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled 2704 files. Modified TIFFReadDirectory() to not invoke 2705 EstimateStripByteCounts() for case where entry 0 and 1 are unequal 2706 but one of them is zero. 2707 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204 2708 27092006-06-08 Andrey Kiselev <[email protected]> 2710 2711 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping 2712 checking code in the separate function TIFFCheckDirOffset(). 2713 2714 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function. 2715 2716 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug 2717 2718 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191 2719 2720 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug 2721 2722 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194 2723 2724 * tools/tiff2pdf.c: Fixed buffer overflow condition in 2725 t2p_write_pdf_string() as per bug 2726 2727 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196 2728 27292006-06-07 Andrey Kiselev <[email protected]> 2730 2731 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added 2732 support for JBIG compression scheme (34661 code) contributed by Lee 2733 Howard. As per bug 2734 2735 http://bugzilla.remotesensing.org/show_bug.cgi?id=896 2736 2737 * configure, configure.ac: OJPEG support enabled by default. 2738 2739 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch. 2740 27412006-06-03 Bob Friesenhahn <[email protected]> 2742 2743 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in 2744 TIFFPrintDirectory(). Joris Van Damme authored the fix. 2745 27462006-04-21 Andrey Kiselev <[email protected]> 2747 2748 * tools/tiff2pdf.c: Unified line ending characters (always use '\n') 2749 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163 2750 2751 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am, 2752 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}: 2753 Added support for OpenVMS by Alexey Chupahin, [email protected]. 2754 27552006-04-20 Andrey Kiselev <[email protected]> 2756 2757 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}: 2758 Properly set the binary mode for stdin stream as per bug 2759 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141 2760 2761 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1, 2762 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1, 2763 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1, 2764 tiffset.1}: Improvements in page formatting as per bug 2765 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140 2766 2767 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed 2768 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139 2769 27702006-04-18 Frank Warmerdam <[email protected]> 2771 2772 * nmake.opt: use /EHsc for VS2005 compatibility. Also define 2773 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005. 2774 27752006-04-12 Joris Van Damme <[email protected]> 2776 2777 * libtiff/tif_getimage.c: Added support for planarconfig separate 2778 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1]) 2779 27802006-04-11 Joris Van Damme <[email protected]> 2781 2782 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines 2783 - Conversion of unassociated alpha to associated alpha now done with 2784 more performant LUT, and calculation more correct 2785 - Conversion of 16bit data to 8bit data now done with 2786 more performant LUT, and calculation more correct 2787 - Bugfix of handling of 16bit RGB with unassociated alpha 2788 27892006-04-11 Joris Van Damme <[email protected]> 2790 2791 * libtiff/tif_getimage.c: 2792 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated 2793 buffer for alpha strile and filled it, only to never read it back. 2794 Removed allocation and fill. 2795 - Minor rename of vars in gtTileSeparate and gtStripSeparate 2796 anticipating planned functionality extension 2797 27982006-04-08 Joris Van Damme <[email protected]> 2799 2800 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase 2801 and pickTileSeparateCase to PickSeparateCase as both work on strips as 2802 well 2803 2804 * libtiff/tif_getimage.c: moved img->get selection from 2805 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create 2806 logical hook for planned functionality extension 2807 28082006-04-08 Joris Van Damme <[email protected]> 2809 2810 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence 2811 of inappropriate use of jpeg_abort instead of jpeg_destroy 2812 28132006-04-07 Joris Van Damme <[email protected]> 2814 2815 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in 2816 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour 2817 on subsampled images - this ought to get sorted when we feel brave 2818 enough to replace TIFFScanlineSize alltogether 2819 2820 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip 2821 28222006-04-04 Joris Van Damme <[email protected]> 2823 2824 * libtiff/tiffio.h: added new type tstrile_t 2825 2826 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips 2827 to new tstrile_t, types of td_stripoffset and td_stripbytecount to 2828 toff_t* 2829 2830 * libtiff/tif_ojpeg.c: totally new implementation 2831 2832 * libtiff/tif_dirread.c: added several hacks to suit new support of 2833 OJPEG 2834 2835 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling 2836 of OJPEG images in favor of tif_getimage.c native handling of 2837 YCbCr and desubsampling 2838 28392006-03-29 Frank Warmerdam <[email protected]> 2840 2841 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric 2842 interpretation causes the "upsampled" flag to be recomputed. Fixes 2843 peculiar bug where photometric flag had to be set before jpegcolormode 2844 flag. 2845 28462006-03-25 Joris Van Damme <[email protected]> 2847 2848 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw 2849 2850 * libtiff/tif_strip.c: temporarilly added two new versions of 2851 TIFFScanlineSize 2852 - TIFFNewScanlineSize: proposed new version, after all related 2853 issues and side-effects are sorted out 2854 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change 2855 This needs further sorting out. 2856 28572006-03-25 Joris Van Damme <[email protected]> 2858 2859 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size 2860 of last truncated strip data to TIFFWriteEncodedStrip 2861 28622006-03-25 Joris Van Damme <[email protected]> 2863 2864 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw 2865 28662006-03-25 Joris Van Damme <[email protected]> 2867 2868 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile 2869 2870 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile 2871 2872 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to 2873 prepare the path for new tif_ojpeg.c 2874 28752006-03-23 Andrey Kiselev <[email protected]> 2876 2877 * libtiff 3.8.2 released. 2878 2879 * tools/Makefile.am: Use runtime paths linker flags when rpath 2880 option enabled. 2881 28822006-03-21 Andrey Kiselev <[email protected]> 2883 2884 * libtiff/libtiff.def: Added missed exports as per bug 2885 http://bugzilla.remotesensing.org/attachment.cgi?id=337 2886 2887 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc, 2888 tools/Makefile.vc: Makefiles improvements as per bug 2889 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128 2890 2891 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h}, 2892 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions 2893 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127 2894 2895 * libtiff/tif_strip.c: Take subsampling in account when calculating 2896 TIFFScanlineSize(). 2897 2898 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length. 2899 29002006-03-17 Andrey Kiselev <[email protected]> 2901 2902 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug 2903 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125 2904 2905 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug 2906 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124 2907 29082006-03-16 Andrey Kiselev <[email protected]> 2909 2910 * libtiff/tiffiop.h: Added decalration for 2911 _TIFFSetDefaultCompressionState(). 2912 2913 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c, 2914 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all 2915 codec cleanup methods. As per bug 2916 2917 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120 2918 29192006-03-15 Andrey Kiselev <[email protected]> 2920 2921 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As 2922 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119 2923 2924 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength. 2925 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110 2926 2927 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro 2928 removed; move here the STRIP_SIZE_DEFAULT macro definition. 2929 2930 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT 2931 macro definition. 2932 2933 * libtiff/tif_dir.c: Use double type instead of dblparam_t. 2934 29352006-03-14 Andrey Kiselev <[email protected]> 2936 2937 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence 2938 in TIFFReadDirectory, because it is always set at the start of 2939 function and we allow TIFFs without that tag set. 2940 29412005-03-13 Andrey Kiselev <[email protected]> 2942 2943 * libtiff 3.8.1 released. 2944 29452006-03-07 Andrey Kiselev <[email protected]> 2946 2947 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray() 2948 function as per bug 2949 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2950 2951 * libtiff/tif_dirread.c: More wise check for integer overflow 2952 condition as per bug 2953 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2954 2955 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}: 2956 Properly restore setfield/getfield methods in cleanup functions. As 2957 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2958 29592006-03-03 Andrey Kiselev <[email protected]> 2960 2961 * libtiff/{tif_predict.c, tif_predict.h}: Added new function 2962 TIFFPredictorCleanup() to restore parent decode/encode/field methods. 2963 2964 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use 2965 TIFFPredictorCleanup() in codec cleanup methods. As per bug 2966 2967 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2968 2969 * libtiff/tif_dirread.c: Fixed integer overflow condition in 2970 TIFFFetchData() function. As per bug 2971 2972 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2973 29742006-03-01 Andrey Kiselev <[email protected]> 2975 2976 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the 2977 TIFFSetField() method, not directly. As per bug 2978 2979 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043 2980 2981 * tools/ppm2tiff.c: Added support for PBM files as per bug 2982 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044 2983 29842006-02-27 Andrey Kiselev <[email protected]> 2985 2986 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline() 2987 to avoid crash as per bug 2988 2989 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081. 2990 29912006-02-26 Andrey Kiselev <[email protected]> 2992 2993 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and 2994 t2p_sample_rgba_to_rgb() was used in place of each other, that was 2995 resulted in problems with RGBA images with associated alpha. 2996 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097 2997 29982006-02-23 Andrey Kiselev <[email protected]> 2999 3000 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per 3001 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3002 3003 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER, 3004 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE 3005 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3006 3007 * tools/tiff2ps.c: Properly scale all the pages when converting 3008 multipage TIFF with /width/height/center options set. As per bug 3009 3010 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080 3011 30122006-02-15 Andrey Kiselev <[email protected]> 3013 3014 * tools/tiff2pdf.c: Do not create output file until all option checks 3015 will be done. As per bug 3016 3017 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072 3018 3019 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the 3020 list of input files as per bug: 3021 3022 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077 3023 30242006-02-09 Andrey Kiselev <[email protected]> 3025 3026 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per 3027 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063. 3028 3029 * tools/tiffgt.c: Avoid crashing in case of image unsupported by 3030 TIFFRGBAImage interface. 3031 3032 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per 3033 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065. 3034 30352006-02-07 Frank Warmerdam <[email protected]> 3036 3037 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG 3038 compressed TIFF files, per submission from Dan Cobra. 3039 30402006-02-07 Andrey Kiselev <[email protected]> 3041 3042 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly 3043 cast values to avoid warnings. As per bug 3044 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3045 3046 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when 3047 appropriate. As per bug 3048 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3049 3050 * libtiff/tif_aux.c: Fixed type of temporary variable in 3051 _TIFFCheckMalloc() as per bug 3052 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3053 30542006-02-06 Andrey Kiselev <[email protected]> 3055 3056 * libtiff/tif_aux.c: Return static array when fetching default 3057 YCbCrCoefficients (another problem, reported a the 3058 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry). 3059 30602006-02-03 Andrey Kiselev <[email protected]> 3061 3062 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints, 3063 YCbCrSubsampling and DotRange tags as per bugs 3064 3065 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 3066 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034 3067 3068 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of 3069 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug 3070 3071 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026. 3072 30732006-01-23 Andrey Kiselev <[email protected]> 3074 3075 * libtool related stuff updated from the 2.1a branch. 3076 30772006-01-11 Frank Warmerdam <[email protected]> 3078 3079 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff, 3080 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works 3081 properly as per bug: 3082 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025 3083 30842006-01-09 Bob Friesenhahn <[email protected]> 3085 3086 * configure.ac: Fix with_default_strip_size comparison as reported 3087 by Norihiko Murase. 3088 30892006-01-08 Bob Friesenhahn <[email protected]> 3090 3091 * test/Makefile.am (LIBTIFF): Due to linking against libtiff 3092 incorrectly, tests were not actually testing the uninstalled 3093 libtiff. Now they are. 3094 30952006-01-04 Andrey Kiselev <[email protected]> 3096 3097 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE, 3098 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount 3099 should be uint32 value. 3100 31012006-01-02 Bob Friesenhahn <[email protected]> 3102 3103 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can 3104 be used if build directory is not the same as source directory. 3105 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented 3106 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET, 3107 and re-sorted tag names in alphabetical order. 3108 31092005-12-29 Andrey Kiselev <[email protected]> 3110 3111 * libtiff 3.8.0 released. 3112 31132005-12-28 Bob Friesenhahn <[email protected]> 3114 3115 * tools/bmp2tiff.c (main): Fixed warning regarding returning 3116 inconsistent types from a condition. 3117 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf 3118 format. 3119 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs. 3120 31212005-12-28 Joris Van Damme <[email protected]> 3122 3123 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML 3124 31252005-12-27 Andrey Kiselev <[email protected]> 3126 3127 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including 3128 windows.h, to reduce the compile time. 3129 31302005-12-26 Bob Friesenhahn <[email protected]> 3131 3132 * libtiff/tif_jpeg.c: Improve compilation under MinGW. 3133 31342005-12-26 Andrey Kiselev <[email protected]> 3135 3136 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}: 3137 tiffFieldInfo and exifFieldInfo arrays definitions moved back to 3138 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo() 3139 private functions to retrieve FieldInfo arrays. 3140 31412005-12-24 Bob Friesenhahn <[email protected]> 3142 3143 * html/build.html: Added some additional instructions for when 3144 building using MSVC under Windows. Also fixed two HTML syntax 3145 errors and used HTML Tidy to tidy up the HTML syntax and 3146 formatting. 3147 31482005-12-24 Andrey Kiselev <[email protected]> 3149 3150 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c, 3151 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and 3152 StoNits tags custom. 3153 31542005-12-23 Andrey Kiselev <[email protected]> 3155 3156 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make 3157 WhitePoint tag custom. 3158 3159 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added. 3160 31612005-12-23 Joris Van Damme <[email protected]> 3162 3163 * libtiff/tiffio.h: fixed typo that potentially resulted in 3164 redefininition of USE_WIN32_FILEIO 3165 3166 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning 3167 calls in core LibTiff. 3168 31692005-12-21 Andrey Kiselev <[email protected]> 3170 3171 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC, 3172 Photoshop and ICCProfile tags custom. 3173 31742005-12-21 Joris Van Damme <[email protected]> 3175 3176 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling 3177 newer code to get context indicator in error handler and still 3178 remain compatible with older code: Done TIFFError calls everywhere 3179 except in tools 3180 31812005-12-20 Andrey Kiselev <[email protected]> 3182 3183 * tools/tiffcp.c: Added many error reporting messages; fixed integer 3184 overflow as per bug 3185 3186 http://bugzilla.remotesensing.org/show_bug.cgi?id=789 3187 31882005-12-16 Frank Warmerdam <[email protected]> 3189 3190 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled 3191 YCbCr images in jpeg compressed TIFF files. 3192 31932005-12-14 Andrey Kiselev <[email protected]> 3194 3195 * tools/tiffcp.c: Return non-zero status when reading fails (again). 3196 31972005-12-13 Andrey Kiselev <[email protected]> 3198 3199 * tools/tiffcp.c: Return non-zero status when reading fails. 3200 32012005-12-12 Andrey Kiselev <[email protected]> 3202 3203 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags. 3204 32052005-12-09 Andrey Kiselev <[email protected]> 3206 3207 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag 3208 custom. 3209 3210 * tools/tiffinfo.c: Print EXIF directory contents if exist. 3211 3212 * libtiff/tiff.h: Few EXIF tag numbers added. 3213 3214 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c, 3215 tiffio.h}: Preliminary support to read custom directories. New 3216 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory(). 3217 32182005-12-07 Andrey Kiselev <[email protected]> 3219 3220 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}: 3221 More work to implement custom directory read support. 3222 3223 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h, 3224 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite 3225 tags custom. 3226 32272005-12-05 Andrey Kiselev <[email protected]> 3228 3229 * libtiff/tif_dirread.c: One more workaround for broken 3230 StripByteCounts tag. Handle the case when StripByteCounts array filled 3231 with completely wrong values. 3232 32332005-11-30 Andrey Kiselev <[email protected]> 3234 3235 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure 3236 in the TIFFOpenW() function as per bug 3237 3238 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003 3239 3240 * libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind() 3241 functions as per bug 3242 3243 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008 3244 32452005-11-20 Frank Warmerdam <[email protected]> 3246 3247 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support 3248 for MS MDI format. 3249 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002 3250 3251 * .cvsignore: many files added, and a few update according 3252 to suggestion of Brad HArds on tiff mailing list. 3253 32542005-11-03 Frank Warmerdam <[email protected]> 3255 3256 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory 3257 public. 3258 32592005-10-31 Andrey Kiselev <[email protected]> 3260 3261 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays 3262 as per bug 3263 3264 http://bugzilla.remotesensing.org/show_bug.cgi?id=943 3265 3266 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter 3267 as per bug 3268 3269 http://bugzilla.remotesensing.org/show_bug.cgi?id=944 3270 3271 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization 3272 problem as per bug 3273 3274 http://bugzilla.remotesensing.org/show_bug.cgi?id=946 3275 3276 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug 3277 3278 http://bugzilla.remotesensing.org/show_bug.cgi?id=965 3279 3280 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and 3281 ResolutionUnit tags modifiable during write process. As per bug 3282 3283 http://bugzilla.remotesensing.org/show_bug.cgi?id=977 3284 3285 * tools/tiffsplit.c: Copy fax related fields over splitted parts 3286 as per bug 3287 3288 http://bugzilla.remotesensing.org/show_bug.cgi?id=983 3289 32902005-10-21 Frank Warmerdam <[email protected]> 3291 3292 * tif_dirread.c: Don't try and split single strips into "0" strips 3293 in ChopUpSingleUncompressedStrip. This happens in some degenerate 3294 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff) 3295 32962005-10-20 Joris Van Damme <[email protected]> 3297 3298 * tif_fax3.c: changed 'at scanline ...' style warning/errors 3299 with incorrect use of tif_row, to 'at line ... of 3300 strip/tile ...' style 3301 33022005-10-15 Frank Warmerdam <[email protected]> 3303 3304 * tif_write.c: fixed setting of planarconfig as per bug report 3305 on the mailing list from Joris. 3306 33072005-10-07 Andrey Kiselev <[email protected]> 3308 3309 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h, 3310 tif_dirread.c}: Make the default strip size configurable via the 3311 --with-default-strip-size and STRIP_SIZE_DEFAULT options. 3312 33132005-09-30 Bob Friesenhahn <[email protected]> 3314 3315 * html/support.html: Fixed link to documentation on Greg Ward's 3316 LogLuv TIFF format. 3317 33182005-09-28 Andrey Kiselev <[email protected]> 3319 3320 * tools/tiffdump.c: Fixed crash when reading malformed tags. 3321 33222005-09-20 Andrey Kiselev <[email protected]> 3323 3324 * tools/tiff2pdf.c: Added missed 'break' statement as per bug 3325 http://bugzilla.remotesensing.org/show_bug.cgi?id=932 3326 33272005-09-12 Andrey Kiselev <[email protected]> 3328 3329 * libtiff 3.7.4 released. 3330 3331 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch 3332 from Patrick Welche (all scripts moved in the 'config' and 'm4' 3333 directories). 3334 33352005-09-12 Frank Warmerdam <[email protected]> 3336 3337 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris. 3338 33392005-09-05 Frank Warmerdam <[email protected]> 3340 3341 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV 3342 also set it to NULL to avoid double free when re-setting custom 3343 string fields as per: 3344 3345 http://bugzilla.remotesensing.org/show_bug.cgi?id=922 3346 33472005-08-12 Frank Warmerdam <[email protected]> 3348 3349 * libtiff/tif_print.c: avoid signed/unsigned warning. 3350 3351 * libtiff/tif_dirread.c: removed unused variable. 3352 33532005-07-30 Frank Warmerdam <[email protected]> 3354 3355 * libtiff/tif_dir.c: Fixed up support for swapping "double complex" 3356 values (128 bits as 2 64 bits doubles). GDAL gcore tests now 3357 pass on bigendian (macosx) system. 3358 33592005-07-28 Andrey Kiselev <[email protected]> 3360 3361 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename 3362 CheckMalloc() function to _TIFFCheckMalloc() and make it available 3363 globally as an internal helper routine. 3364 33652005-07-27 Andrey Kiselev <[email protected]> 3366 3367 * libtiff/tif_dir.c: More improvements in the "pass by value" part of 3368 the custom tags handling code. 3369 33702005-07-26 Andrey Kiselev <[email protected]> 3371 3372 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to 3373 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples() 3374 function, use TIFFFetchNormalTag() instead as per bug 3375 3376 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3377 3378 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag() 3379 instead. 3380 3381 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug 3382 3383 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3384 33852005-07-25 Andrey Kiselev <[email protected]> 3386 3387 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays. 3388 3389 * tools/tiffdump.c: Added support for TIFF_IFD datatype. 3390 33912005-07-21 Andrey Kiselev <[email protected]> 3392 3393 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in 3394 the TIFFWriteCheck() function in case of single band images (as per 3395 TIFF spec). 3396 33972005-07-12 Andrey Kiselev <[email protected]> 3398 3399 * SConstruct, libtiff/SConstruct: Added the first very preliminary 3400 support for SCons software building tool (http://www.scons.org/). 3401 This is experimental infrastructure and it will exist along with the 3402 autotools mechanics. 3403 34042005-07-07 Andrey Kiselev <[email protected]> 3405 3406 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from 3407 the NetBSD source tree (the old 4-clause BSD license changed to 3408 the new 3-clause one). 3409 3410 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind() 3411 replacement module. 3412 3413 * port/dummy.c: Make the dummy function static. 3414 34152005-07-06 Andrey Kiselev <[email protected]> 3416 3417 * tools/tiffcp.c: Fixed WhitePoint tag copying. 3418 3419 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}: 3420 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera, 3421 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom. 3422 34232005-07-04 Andrey Kiselev <[email protected]> 3424 3425 * libtiff 3.7.3 released. 3426 3427 * configure, configure.ac: Do not use empty -R option when linking 3428 with --enable-rpath. 3429 34302005-07-01 Andrey Kiselev <[email protected]> 3431 3432 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid 3433 reading the first IFD when needed. As per bug 3434 3435 http://bugzilla.remotesensing.org/show_bug.cgi?id=875 3436 3437 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side 3438 effects. 3439 34402005-06-23 Andrey Kiselev <[email protected]> 3441 3442 * tools/tiff2pdf.c: Print two characters per loop in the 3443 t2p_write_pdf_trailer(). As per bug 3444 3445 http://bugzilla.remotesensing.org/show_bug.cgi?id=594 3446 3447 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As 3448 per bug 3449 3450 http://bugzilla.remotesensing.org/show_bug.cgi?id=844 3451 3452 * acinclude.m4: Updated to latest OpenGL test macros versions. 3453 3454 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler 3455 platform. As per bug 3456 3457 http://bugzilla.remotesensing.org/show_bug.cgi?id=855 3458 34592005-06-14 Andrey Kiselev <[email protected]> 3460 3461 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits 3462 and YClipPathUnits tags. 3463 34642005-06-07 Andrey Kiselev <[email protected]> 3465 3466 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size; 3467 use pixel sized shift in contigous case. 3468 34692005-06-06 Andrey Kiselev <[email protected]> 3470 3471 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}: 3472 Make overviews working for contiguos images. 3473 34742005-06-03 Andrey Kiselev <[email protected]> 3475 3476 * libtiff/tif_open.c: Replace runtime endianess check with the compile 3477 time one. 3478 3479 * libtiff/tif_predict.c: Floating point predictor now works on 3480 big-endian hosts. 3481 34822005-06-01 Andrey Kiselev <[email protected]> 3483 3484 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom 3485 ASCII values. 3486 3487 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make 3488 DocumentName, Artist, HostComputer, ImageDescription, Make, Model, 3489 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and 3490 TargetPrinter tags custom. 3491 3492 * libtiff/tif_jpeg.c: Cleanup the codec state depending on 3493 TIFF_CODERSETUP flag (to fix memry leaks). 3494 3495 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after 3496 allocating. 3497 34982005-05-26 Andrey Kiselev <[email protected]> 3499 3500 * configure.ac, libtiff/Makefile.am: Added workaround for 3501 OpenBSD/MirOS soname problem as per bug 3502 3503 http://bugzilla.remotesensing.org/show_bug.cgi?id=838 3504 3505 * libtiff/tif_dirwrite.c: Use tdir_count when calling 3506 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as 3507 per bug 3508 3509 http://bugzilla.remotesensing.org/show_bug.cgi?id=845 3510 35112005-05-25 Andrey Kiselev <[email protected]> 3512 3513 * tools/ppm2tiff.c: Fixed format string when read PPM file header with 3514 the fscanf() function. As per bug 3515 3516 http://bugzilla.remotesensing.org/show_bug.cgi?id=861 3517 3518 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns 3519 uint16 array when fetching the BYTE and SBYTE filds, so we should 3520 consider result as pointer to uint16 array and not as array of chars. 3521 As per bug 3522 3523 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3524 3525 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug 3526 3527 http://bugzilla.remotesensing.org/show_bug.cgi?id=830 3528 3529 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share 3530 mode in CreateFile() call as per bug 3531 3532 http://bugzilla.remotesensing.org/show_bug.cgi?id=829 3533 3534 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and 3535 libtiffxx libraries as per bug 3536 3537 http://bugzilla.remotesensing.org/show_bug.cgi?id=826 3538 3539 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with 3540 GDAL. 3541 35422005-05-23 Frank Warmerdam <[email protected]> 3543 3544 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with 3545 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables 3546 in directory. 3547 35482005-05-22 Frank Warmerdam <[email protected]> 3549 3550 * libtiff/tif_dirread.c: Changed the code that computes 3551 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is 3552 zero. This is a common case with GDAL indicating a "null" tile/strip. 3553 35542005-05-17 Andrey Kiselev <[email protected]> 3555 3556 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying. 3557 35582005-05-06 Frank Warmerdam <[email protected]> 3559 3560 * libtiff/tif_dirread.c: Applied similar change to 3561 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys. 3562 3563 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3564 3565 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw(). 3566 35672005-05-06 Andrey Kiselev <[email protected]> 3568 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly; 3569 added new option '-b' to use interpolation in output PDF files (Bruno 3570 Ledoux). 3571 35722005-05-05 Frank Warmerdam <[email protected]> 3573 3574 * libtiff/tif_dirread.c: Ensure that broken files with too many 3575 values in PerSampleShorts work ok instead of crashing. 3576 3577 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3578 35792005-04-27 Andrey Kiselev <[email protected]> 3580 3581 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the 3582 input file. 3583 35842005-04-15 Andrey Kiselev <[email protected]> 3585 3586 * libtiff/tif_predict.c: Added ability to encode floating point 3587 predictor, as per TIFF Technical Note 3. 3588 35892005-04-14 Andrey Kiselev <[email protected]> 3590 3591 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode 3592 floating point predictor, as per TIFF Technical Note 3. 3593 35942005-04-13 Andrey Kiselev <[email protected]> 3595 3596 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}: 3597 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to 3598 swap 24-bit floating point values. 3599 3600 * libtiff/tiff.h: Added predictor constants. 3601 36022005-04-08 Andrey Kiselev <[email protected]> 3603 3604 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate 3605 values in _TIFFVSetField() function. Inspired by the bug 3606 3607 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3608 3609 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag 3610 as per bug 3611 3612 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3613 36142005-03-30 Andrey Kiselev <[email protected]> 3615 3616 * libtiff/tif_open.c: Do not read header in case the output file 3617 should be truncated (Ron). 3618 3619 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead 3620 of bsearch() in _TIFFFindFieldInfoByName() function (Ron). 3621 3622 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron). 3623 36242005-03-22 Andrey Kiselev <[email protected]> 3625 3626 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass 3627 rpath option. 3628 36292005-03-21 Andrey Kiselev <[email protected]> 3630 3631 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom 3632 tags. 3633 36342005-03-18 Andrey Kiselev <[email protected]> 3635 3636 * libtiff/dirinfo.c: Added DNG tags. 3637 3638 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag 3639 handling code. 3640 3641 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo); 3642 added DNG 1.1.0.0 tags. 3643 3644 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per 3645 bug 3646 3647 http://bugzilla.remotesensing.org/show_bug.cgi?id=794 3648 3649 * man/TIFFGetField.3tiff: Add a note about autoregistered tags. 3650 36512005-03-17 Andrey Kiselev <[email protected]> 3652 3653 * nmake.opt: Build with Win32 CRT library by default. 3654 3655 * tools/tiff2ps.c: Fixed typo in page size handling code. 3656 3657 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed 3658 by value. 3659 3660 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags. 3661 36622005-03-15 Andrey Kiselev <[email protected]> 3663 3664 * libtiff 3.7.2 released. 3665 36662005-03-09 Andrey Kiselev <[email protected]> 3667 3668 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and 3669 floating point data; complain on unsupported bit depths. 3670 36712005-03-05 Andrey Kiselev <[email protected]> 3672 3673 * tif_stream.cxx: Use ios namespace instead of ios_base to support 3674 GCC 2.95. 3675 3676 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from 3677 Lee Howard for HylaFax DCS tag 3678 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771) 3679 36802005-03-04 Andrey Kiselev <[email protected]> 3681 3682 * configure, configure.ac: Use -rpath option instead of -R as per bug 3683 3684 http://bugzilla.remotesensing.org/show_bug.cgi?id=732 3685 3686 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee 3687 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax 3688 software. As per bug 3689 3690 http://bugzilla.remotesensing.org/show_bug.cgi?id=771 3691 3692 * nmake.opt, html/build.html: Add more comments, change the config 3693 file organization a bit as per bug 3694 3695 http://bugzilla.remotesensing.org/show_bug.cgi?id=764 3696 3697 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison 3698 as per bug 3699 3700 http://bugzilla.remotesensing.org/show_bug.cgi?id=785 3701 37022005-03-03 Andrey Kiselev <[email protected]> 3703 3704 * libtiff/tif_dirread.c: More logic to guess missed strip size as per 3705 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705 3706 3707 * tools/fax2ps.c: Replace insecure mktemp() function with the 3708 tmpfile() as per bug 3709 3710 http://bugzilla.remotesensing.org/show_bug.cgi?id=786 3711 37122005-02-04 Andrey Kiselev <[email protected]> 3713 3714 * libtiff/tiff.h: Changed the int8 definition to be always signed char 3715 as per bug 3716 3717 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 3718 3719 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{} 3720 block as per bug 3721 3722 http://bugzilla.remotesensing.org/show_bug.cgi?id=763 3723 37242005-02-03 Bob Friesenhahn <[email protected]> 3725 3726 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images 3727 display more correctly. Images display brighter than they should 3728 on a Sun workstation. 3729 37302005-02-03 Andrey Kiselev <[email protected]> 3731 3732 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or 3733 suspicious values in the tags. As per bugs 3734 3735 http://bugzilla.remotesensing.org/show_bug.cgi?id=705 3736 3737 and 3738 3739 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 3740 3741 * tools/tiff2ps.c: Fixed problem with page sizes as per bug 3742 3743 http://bugzilla.remotesensing.org/show_bug.cgi?id=742 3744 37452005-01-31 Bob Friesenhahn <[email protected]> 3746 3747 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description. 3748 (TIFFTAG_TILELENGTH): Corrected description. 3749 37502005-01-30 Andrey Kiselev <[email protected]> 3751 3752 * configure.ac: Fixes for --with-docdir option as per bug 3753 3754 http://bugzilla.remotesensing.org/show_bug.cgi?id=759 3755 3756 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per 3757 bug 3758 3759 http://bugzilla.remotesensing.org/show_bug.cgi?id=756 3760 3761 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from 3762 Michael Rinne and Edward Lam. 3763 37642005-01-15 Andrey Kiselev <[email protected]> 3765 3766 * configure.ac: Make the documentation directory location configurable 3767 via the --with-docdir option (as suggested by Jeremy C. Reed). 3768 3769 * libtiff/tif_color.c: Use double as the second argument of pow() 3770 function in TIFFCIELabToRGBInit(). As per bug 3771 3772 http://bugzilla.remotesensing.org/show_bug.cgi?id=741 3773 3774 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to 3775 integer as per bug 3776 3777 http://bugzilla.remotesensing.org/show_bug.cgi?id=740 3778 3779 * libtiff/tif_getimage.c: Always fill the error message buffer in 3780 TIFFRGBAImageBegin() as per bug 3781 3782 http://bugzilla.remotesensing.org/show_bug.cgi?id=739 3783 37842005-01-12 Andrey Kiselev <[email protected]> 3785 3786 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific 3787 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME 3788 tags as per bug 3789 3790 http://bugzilla.remotesensing.org/show_bug.cgi?id=736 3791 3792 * libtiff/tif_win32.c: Fixed message formatting in functions 3793 Win32WarningHandler() and Win32ErrorHandler() as per bug 3794 3795 http://bugzilla.remotesensing.org/show_bug.cgi?id=735 3796 3797 * tools/tiff2ps.c: Interpret the -w and -h options independently. As 3798 per bug 3799 3800 http://bugzilla.remotesensing.org/show_bug.cgi?id=689 3801 38022005-01-11 Andrey Kiselev <[email protected]> 3803 3804 * libtiff/tiffio.h: Move the color conversion routines in the 'extern 3805 "C"' section as per bug 3806 3807 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 3808 3809 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C 3810 compiler to avoid double definition of BSD types as per bug 3811 3812 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3813 3814 * libtiff/Makefile.am: Place the C++ stream API in the separate 3815 library called libtiffxx to avoid unneeded dependencies. Probably 3816 there will be more C++ API in the future. As per bugs 3817 3818 http://bugzilla.remotesensing.org/show_bug.cgi?id=733 3819 3820 and 3821 3822 http://bugzilla.remotesensing.org/show_bug.cgi?id=730 3823 38242005-01-05 Andrey Kiselev <[email protected]> 3825 3826 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the 3827 wrong tag counts (Dmitry V. Levin, Martin Pitt). 3828 3829 * configure.ac: Replace --disable-c++ with the --disable-cxx option as 3830 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730 3831 38322004-12-25 Andrey Kiselev <[email protected]> 3833 3834 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled 3835 RGB-images as per bug 3836 3837 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 3838 3839 3840 * tools/tiffset.c: Convert character option to integer value as per 3841 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725 3842 38432004-12-20 Andrey Kiselev <[email protected]> 3844 3845 * libtiff 3.7.1 released. 3846 3847 * html/tiffset.1.html: Add missed manual page as per bug 3848 3849 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 3850 3851 * libtiff/tiff.h: Revert back libtiff data type definitions as per 3852 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687 3853 38542004-12-19 Andrey Kiselev <[email protected]> 3855 3856 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when 3857 checking for tag count in TIFFReadDirectory() function. As per bug 3858 3859 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 3860 3861 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in 3862 CheckMallock() function. 3863 3864 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled 3865 RGB-images as per bug 3866 3867 http://bugzilla.remotesensing.org/show_bug.cgi?id=718 3868 38692004-12-15 Frank Warmerdam <[email protected]> 3870 3871 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on 3872 SunPro compiler. 3873 38742004-12-11 Bob Friesenhahn <[email protected]> 3875 3876 * autogen.sh: aclocal and autoheader should be executed after 3877 libtoolize. Also add '-I .' to aclocal invocation to check 3878 current directory for macros. 3879 38802004-12-10 Andrey Kiselev <[email protected]> 3881 3882 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type 3883 as per bugs 3884 3885 http://bugzilla.remotesensing.org/show_bug.cgi?id=703 3886 3887 and 3888 3889 http://bugzilla.remotesensing.org/show_bug.cgi?id=704 3890 38912004-12-04 Andrey Kiselev <[email protected]> 3892 3893 * nmake.opt: Link with the user32.lib in windowed mode. As per bug 3894 3895 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 3896 3897 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed 3898 mode as per bug 3899 3900 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 3901 3902 * libtiff/tif_config.in.vc: Removed unneded definitions for 3903 read/open/close/lseek functions to fix the 3904 3905 http://bugzilla.remotesensing.org/show_bug.cgi?id=680 3906 39072004-12-03 Andrey Kiselev <[email protected]> 3908 3909 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore() 3910 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore 3911 must be removed in the future, as it was never used properly. As per 3912 bug 3913 3914 http://bugzilla.remotesensing.org/show_bug.cgi?id=692 3915 39162004-11-30 Bob Friesenhahn <[email protected]> 3917 3918 * libtiff/tif_jpeg.c: Added a work-around in order to allow 3919 compilation with the heavily modified version of libjpeg delivered 3920 with Cygwin. 3921 39222004-11-29 Andrey Kiselev <[email protected]> 3923 3924 * libtiff/tif_dir.c: Properly handle tags, which have the uint32 3925 counts. As per bug 3926 3927 http://bugzilla.remotesensing.org/show_bug.cgi?id=693 3928 3929 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug 3930 3931 http://bugzilla.remotesensing.org/show_bug.cgi?id=690 3932 39332004-11-28 Andrey Kiselev <[email protected]> 3934 3935 * libtiff/tif_unix.c: Make UNIX module compilable (and usable) 3936 on Windows. 3937 3938 * nmake.opt: Add missed DLLNAME variable. 3939 39402004-11-26 Frank Warmerdam <[email protected]> 3941 3942 * libtiff/makefile.vc: make it easier to rename the libtiff DLL. 3943 39442004-11-24 Andrey Kiselev <[email protected]> 3945 3946 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as 3947 per bug 3948 3949 http://bugzilla.remotesensing.org/show_bug.cgi?id=545 3950 3951 * man/tiffset.1: Added manual page for tiffset tool written by Jay 3952 Berkenbilt. As per bug 3953 3954 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 3955 39562004-11-23 Frank Warmerdam <[email protected]> 3957 3958 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError. 3959 39602004-11-21 Frank Warmerdam <[email protected]> 3961 3962 * html/document.html: Updated Adobe web links as per email from Joris. 3963 39642004-11-21 Andrey Kiselev <[email protected]> 3965 3966 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new 3967 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to 3968 use C++ streams should #include <tiffio.hxx>. 3969 39702004-11-13 Andrey Kiselev <[email protected]> 3971 3972 * libtiff/tiff.h: Added Adobe DNG tags. 3973 3974 * libtiff/tif_win32.c: Typo fixed. 3975 3976 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to 3977 be compliant with the latest standard. Appropriate additions in 3978 makefiles now completed. 3979 39802004-11-11 Andrey Kiselev <[email protected]> 3981 3982 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the 3983 different tag types. As per bug 3984 3985 http://bugzilla.remotesensing.org/show_bug.cgi?id=600 3986 39872004-11-10 Andrey Kiselev <[email protected]> 3988 3989 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for 3990 YCbCr image which lacks that tag (noted by Hans Petter Selasky). 3991 39922004-11-09 Andrey Kiselev <[email protected]> 3993 3994 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky). 3995 39962004-11-07 Andrey Kiselev <[email protected]> 3997 3998 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface 3999 contributed by Edward Lam (see 4000 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details). 4001 Though no changes in any makefiles yet. 4002 40032004-11-05 Frank Warmerdam <[email protected]> 4004 4005 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file 4006 is bad. This is the callers responsibility. 4007 http://bugzilla.remotesensing.org/show_bug.cgi?id=651 4008 40092004-11-05 Andrey Kiselev <[email protected]> 4010 4011 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW() 4012 function to work with the double byte strings (used to represent 4013 filenames in some locales). As per bug 4014 4015 http://bugzilla.remotesensing.org/show_bug.cgi?id=625 4016 4017 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and 4018 Compression tags of type LONG from broken TIFFS as per bug 4019 4020 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4021 4022 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC, 4023 the writecount should have uint32 type. As per bug 4024 4025 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4026 4027 * libtiff/tif_write.c: Fixed wrong if() statement in 4028 TIFFAppendToStrip() function as per bug 4029 4030 http://bugzilla.remotesensing.org/show_bug.cgi?id=660 4031 40322004-11-04 Andrey Kiselev <[email protected]> 4033 4034 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES 4035 field. The caller should supply a count when setting this field. As 4036 per bug 4037 4038 http://bugzilla.remotesensing.org/show_bug.cgi?id=648 4039 4040 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have 4041 uint32 count. Use this type everywhere. 4042 40432004-11-03 Frank Warmerdam <[email protected]> 4044 4045 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653. 4046 40472004-11-02 Frank Warmerdam <[email protected]> 4048 4049 * tools/tiff2rgba.c: removed extra newlines in usage message. 4050 40512004-10-30 Andrey Kiselev <[email protected]> 4052 4053 * libtiff/tif_dirwrite.c: Improvements in tag writing code. 4054 4055 * tools/tiff2ps.c: Fixed wrong variable data type when read Position 4056 tags (Tristan Hill). 4057 40582004-10-30 Frank Warmerdam <[email protected]> 4059 4060 * libtiff/tiffiop.h: added fallback definition of assert() if we 4061 don't have assert.h. 4062 40632004-10-29 Andrey Kiselev <[email protected]> 4064 4065 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines 4066 choosing when the incorrect Group4Options tag set. As per bug 4067 4068 http://bugzilla.remotesensing.org/show_bug.cgi?id=323 4069 4070 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of 4071 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in 4072 TIFFWriteNormalTag(). 4073 40742004-10-28 Andrey Kiselev <[email protected]> 4075 4076 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution 4077 tags (Peter Fales). 4078 4079 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions. 4080 40812004-10-28 Frank Warmerdam <[email protected]> 4082 4083 * tools/tiff2pdf.c: added casts to avoid warnings. 4084 4085 * libtiff/libtiff.def: Added several more entry points required 4086 to link fax2tiff.c against the DLL on windows. 4087 40882004-10-27 Andrey Kiselev <[email protected]> 4089 4090 * configure, configure.ac: Added --enable-rpath option to embed linker 4091 paths into library binary. 4092 40932004-10-26 Andrey Kiselev <[email protected]> 4094 4095 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin). 4096 4097 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed 4098 (Vladimir Nadvornik, Dmitry V. Levin). 4099 41002004-10-16 Andrey Kiselev <[email protected]> 4101 4102 * libtiff 3.7.0 released. 4103 41042004-10-15 Bob Friesenhahn <[email protected]> 4105 4106 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h 4107 in this file so its inclusion is removed. Including stdio.h 4108 sometimes incurs an INT32 typedef conflict between MinGW's 4109 basetsd.h and libjpeg's jmorecfg.h. 4110 41112004-10-15 Andrey Kiselev <[email protected]> 4112 4113 * man/bmp2tiff.1: Added manual page for bmp2tiff utility. 4114 41152004-10-13 Bob Friesenhahn <[email protected]> 4116 4117 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid 4118 conflict noticed under MinGW. 4119 * ltmain.sh: Fix for MinGW compilation. 4120 41212004-10-13 Frank Warmerdam <[email protected]> 4122 4123 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz. 4124 http://bugzilla.remotesensing.org/show_bug.cgi?id=635 4125 41262004-10-12 Andrey Kiselev <[email protected]> 4127 4128 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c, 4129 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes 4130 properly (Dmitry V. Levin, Marcus Meissner). 4131 41322004-10-11 Andrey Kiselev <[email protected]> 4133 4134 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed 4135 to TIFF_IFD. 4136 41372004-10-10 Andrey Kiselev <[email protected]> 4138 4139 * tools/bmp2tif.c: Check the space allocation results. 4140 41412004-10-09 Andrey Kiselev <[email protected]> 4142 4143 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields 4144 of the TIFFDirectory structure with the 0 instead of -1 to avoid 4145 confusing integer overflows in TIFFTileRowSize() for striped images. 4146 4147 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported 4148 by Ross A. Finlayson. 4149 4150 * libtiff/tif_dir.c: Fixed custom tags handling as per bug 4151 4152 http://bugzilla.remotesensing.org/show_bug.cgi?id=629 4153 41542004-10-08 Frank Warmerdam <[email protected]> 4155 4156 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation 4157 of tif_fieldinfo. 4158 4159 http://bugzilla.remotesensing.org/show_bug.cgi?id=630 4160 41612004-10-04 Bob Friesenhahn <[email protected]> 4162 4163 * contrib/iptcutil/README: Added the missing README which goes 4164 along with iptcutil. 4165 41662004-10-03 Andrey Kiselev <[email protected]> 4167 4168 * libtiff/tif_compress.c: Improved error reporting in 4169 TIFFGetConfiguredCODECs() (Dmitry V. Levin). 4170 41712004-10-02 Andrey Kiselev <[email protected]> 4172 4173 * libtiff 3.7.0beta2 released. 4174 4175 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c, 4176 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c, 4177 tif_pixarlog.c, tif_write.c}: Added checks for failed memory 4178 allocations and integer overflows (Dmitry V. Levin). 4179 4180 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added. 4181 41822004-10-01 Frank Warmerdam <[email protected]> 4183 4184 * libtiff/tif_open.c: added a more informative message if a BigTIFF 4185 file is opened. 4186 41872004-09-30 Frank Warmerdam <[email protected]> 4188 4189 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to 4190 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info 4191 in the Adobe XMP Specification. 4192 41932004-09-29 Andrey Kiselev <[email protected]> 4194 4195 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of 4196 memset(). 4197 4198 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches 4199 from Dmitry V. Levin to fix possible integer overflow problems. 4200 42012004-09-28 Andrey Kiselev <[email protected]> 4202 4203 * libtiff/tif_getimage.c: Check for allocated buffers before clearing 4204 (Dmitry V. Levin). 4205 42062004-09-26 Andrey Kiselev <[email protected]> 4207 4208 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}: 4209 Optimize checking for the strip bounds. 4210 4211 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and 4212 TIFFRasterScanlineSize() functions report zero in the case of integer 4213 overflow now. Properly handle this case in TIFFReadDirectory() 4214 (patches from Dmitry V. Levin). 4215 42162004-09-25 Andrey Kiselev <[email protected]> 4217 4218 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8() 4219 macro where appropriate. 4220 4221 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as 4222 noted by Gennady Khokhorin. 4223 4224 * libtiff/tif_dirread.c: Always check the return values, returned 4225 by the _TIFFmalloc() (Dmitry V. Levin). 4226 4227 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array() 4228 functions (Dmitry V. Levin). 4229 4230 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}: 4231 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(), 4232 TIFFGrowStrips() (found by Dmitry V. Levin). 4233 42342004-09-24 Andrey Kiselev <[email protected]> 4235 4236 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs() 4237 to get the list of configured codecs. 4238 4239 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from 4240 Dmitry V. Levin. 4241 42422004-09-23 Andrey Kiselev <[email protected]> 4243 4244 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix 4245 possible integer overflow in CheckMalloc() function. 4246 42472004-09-22 Andrey Kiselev <[email protected]> 4248 4249 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead 4250 of plain TIFFhowmany() where appropriate. 4251 42522004-09-21 Andrey Kiselev <[email protected]> 4253 4254 * libtiff/tif_getimage.c: Initialize arrays after space allocation. 4255 42562004-09-19 Andrey Kiselev <[email protected]> 4257 4258 * libtiff 3.7.0beta released. 4259 4260 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer 4261 overruns fixed, as noted by Chris Evans. 4262 42632004-09-14 Bob Friesenhahn <[email protected]> 4264 4265 * commit: Added a script to make it more convenient to commit 4266 updates. The CVS commit message is extracted from this ChangeLog 4267 file. 4268 42692004-09-14 Andrey Kiselev <[email protected]> 4270 4271 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c, 4272 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c, 4273 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c, 4274 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c, 4275 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h, 4276 tif_config.h.in, tiffiop.h}: 4277 Get rid of BSD data types (u_char, u_short, u_int, u_long). 4278 42792004-09-13 Bob Friesenhahn <[email protected]> 4280 4281 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP 4282 specification. Reference libtiff bug tracking system to submit 4283 private tag additions. 4284 42852004-09-12 Bob Friesenhahn <[email protected]> 4286 4287 * tools/tiffgt.c: Include "tif_config.h". 4288 4289 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build 4290 tiffgt. This results in the 'compile' script being added to the 4291 project. 4292 4293 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options 4294 required to find OpenGL headers necessary to build tiffgt. Also 4295 ensure that the libtiff that we built is used rather than some other 4296 libtiff installed on the system. 4297 42982004-09-12 Andrey Kiselev <[email protected]> 4299 4300 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT 4301 libraries. 4302 43032004-09-11 Bob Friesenhahn <[email protected]> 4304 4305 * configure.ac: Pass library configuration defines via 4306 tif_config.h rather than extending CPPFLAGS. Configure a 4307 libtiff/tiffconf.h in order to satisfy application requirements 4308 (not used by library build). Do not define _POSIX_C_SOURCE=2 since 4309 this causes failure to build on systems which properly respect 4310 this request. 4311 4312 * libtiff/tiffconf.h.in: New file to act as the template for the 4313 configured tiffconf.h 4314 4315 * libtiff/files.lst (HDRS): Install the configured tiffconf.h. 4316 43172004-09-10 Frank Warmerdam <[email protected]> 4318 4319 * html/internals.html: Split off a discussion of adding new tags 4320 into addingtags.html. 4321 43222004-09-10 Andrey Kiselev <[email protected]> 4323 4324 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added. 4325 4326 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug 4327 4328 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4329 4330 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting. 4331 4332 * libtiff/tif_dirread.c: Don't reject to read tags of the 4333 SamplesPerPixel size when the tag count is greater than number of 4334 samples as per bug 4335 4336 http://bugzilla.remotesensing.org/show_bug.cgi?id=576 4337 4338 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off 4339 defining int8/uint8/... etc. types. As per bug 4340 4341 http://bugzilla.remotesensing.org/show_bug.cgi?id=607 4342 43432004-09-09 Frank Warmerdam <[email protected]> 4344 4345 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files 4346 to avoid compile warnings about getopt() and a few other things. 4347 43482004-09-02 Andrey Kiselev <[email protected]> 4349 4350 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer 4351 assigning magic in TIFFFetchFloat(). 4352 43532004-09-01 Andrey Kiselev <[email protected]> 4354 4355 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme 4356 to avoid requirement for tiffiop.h inclusion in some applications. See 4357 here 4358 4359 http://www.asmail.be/msg0054799560.html 4360 4361 for details. 4362 4363 * tools/fax2tiff.c: Use the new functions in the code. 4364 43652004-08-25 Andrey Kiselev <[email protected]> 4366 4367 * tools/tiff2pdf.c: Initialize arrays properly. 4368 4369 * tools/tiff2ps.c: Avoid zero division in setupPageState() function; 4370 properly initialize array in PSDataBW(). 4371 43722004-08-24 Andrey Kiselev <[email protected]> 4373 4374 * tools/tiff2pdf.c: More fixes for bug 4375 4376 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4377 4378 from Ross Finlayson. 4379 43802004-08-23 Andrey Kiselev <[email protected]> 4381 4382 * tools/tiff2ps.c: Fixed problem with uninitialized values. 4383 4384 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the 4385 TIFFDefaultDirectory() (in addition to 2004-08-19 fix). 4386 4387 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug 4388 4389 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4390 43912004-08-20 Andrey Kiselev <[email protected]> 4392 4393 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks 4394 that the input file has compression, photometric interpretation, 4395 etcetra, tags or if not than a more descriptive error is returned. 4396 4397 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the 4398 code, responsible for tag data type checking. 4399 44002004-08-19 Andrey Kiselev <[email protected]> 4401 4402 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static 4403 variable as per bug 4404 4405 http://bugzilla.remotesensing.org/show_bug.cgi?id=593 4406 44072004-08-16 Andrey Kiselev <[email protected]> 4408 4409 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per 4410 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586 4411 44122004-08-01 Andrey Kiselev <[email protected]> 4413 4414 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and 4415 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc. 4416 44172004-07-24 Andrey Kiselev <[email protected]> 4418 4419 * libtiff/tif_lzw.c: LZW compression code is merged back from the 4420 separate package. All libtiff tools are updated to not advertise an 4421 abcence of LZW support. 4422 44232004-07-12 Andrey Kiselev <[email protected]> 4424 4425 * libtiff/tiffio.h: Revert thandle_t back to void* type. 4426 44272004-07-11 Andrey Kiselev <[email protected]> 4428 4429 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error 4430 messages, as suggested by Bernd Herd. 4431 44322004-07-03 Andrey Kiselev <[email protected]> 4433 4434 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings 4435 when setting custom tags by value. Reported by Eric Fieleke. 4436 44372004-06-14 Andrey Kiselev <[email protected]> 4438 4439 * tools/bmp2tiff.c: Add missed RawsPerStrip setting. 4440 44412004-06-08 Andrey Kiselev <[email protected]> 4442 4443 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files 4444 into TIFFs. 4445 44462004-06-07 Andrey Kiselev <[email protected]> 4447 4448 * libtiff 3.7.0alpha released. 4449 44502004-06-06 Andrey Kiselev <[email protected]> 4451 4452 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid 4453 of ugly 64-bit hacks, replace them with the clever (autoconf based ) 4454 ones :-). 4455 4456 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause 4457 problems in 64-bit environment). 4458 44592004-06-05 Andrey Kiselev <[email protected]> 4460 4461 * tools/tiffset.c: tiffset now can set any libtiff supported tags. 4462 Tags can be supplied by the mnemonic name or number. 4463 4464 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new 4465 functions TIFFFindFieldInfoByName() and TIFFFieldWithName(). 4466 44672004-05-27 Andrey Kiselev <[email protected]> 4468 4469 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF 4470 markers as per bug 4471 4472 http://bugzilla.remotesensing.org/show_bug.cgi?id=581 4473 44742004-05-24 Andrey Kiselev <[email protected]> 4475 4476 * tools/tiffsplit.c: Don't forget to copy Photometric 4477 Interpretation tag. 4478 44792004-05-20 Andrey Kiselev <[email protected]> 4480 4481 * libtiff/{tif_open.c, tiffio.h}: New function added: 4482 TIFFIsBigEndian(). Function returns nonzero if given was file written 4483 in big-endian order. 4484 4485 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte 4486 files. Now output files will be written using the same byte order 4487 flag as in the input image. See 4488 4489 http://bugzilla.remotesensing.org/show_bug.cgi?id=574 4490 4491 for details. 4492 44932004-05-19 Frank Warmerdam <[email protected]> 4494 4495 * libtiff/tif_print.c: added (untested) support for printing 4496 SSHORT, SLONG and SRATIONAL fields. 4497 4498 * tools/tiffcp.c: close output file on normal exit. 4499 45002004-05-17 Andrey Kiselev <[email protected]> 4501 4502 * libtiff/tif_fax3.c: Avoid reading CCITT compression options 4503 if compression type mismatches. See 4504 4505 http://bugzilla.remotesensing.org/show_bug.cgi?id=565 4506 45072004-04-30 Andrey Kiselev <[email protected]> 4508 4509 * libtiff/tif_strip.c: Never return 0 from the 4510 TIFFNumberOfStrips(). 4511 45122004-04-29 Andrey Kiselev <[email protected]> 4513 4514 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which 4515 store single SampleFormat value for multisampled images. See 4516 4517 http://bugzilla.remotesensing.org/show_bug.cgi?id=562 4518 45192004-04-25 Andrey Kiselev <[email protected]> 4520 4521 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8, 4522 int16 and int32 types to avoid complains on some compilers. Details at 4523 4524 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4525 45262004-04-20 Andrey Kiselev <[email protected]> 4527 4528 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug 4529 4530 http://bugzilla.remotesensing.org/show_bug.cgi?id=555 4531 45322004-04-14 Andrey Kiselev <[email protected]> 4533 4534 * libtiff/tif_write.c: Allow in-place updating of the compressed 4535 images (don't work properly with all codecs). For details see GDAL bug 4536 4537 http://bugzilla.remotesensing.org/show_bug.cgi?id=534 4538 45392004-04-06 Andrey Kiselev <[email protected]> 4540 4541 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used 4542 in the Intergarph JPEG compressed TIFF images as per bug: 4543 4544 http://bugzilla.remotesensing.org/show_bug.cgi?id=532 4545 45462004-04-04 Frank Warmerdam <[email protected]> 4547 4548 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails 4549 via bad2. 4550 45512004-03-26 Andrey Kiselev <[email protected]> 4552 4553 * tools/tiffcp.c: Properly set Photometric Interpretation in case of 4554 JPEG compression of grayscale images. 4555 4556 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not 4557 present in the input image. 4558 45592004-03-19 Andrey Kiselev <[email protected]> 4560 4561 * {many}: The first attempt to switch to autotools. 4562 45632004-03-03 Andrey Kiselev <[email protected]> 4564 4565 * libtiff/tif_open.c: Use dummy mmap/munmap functions in 4566 TIFFClientOpen() when the appropriate client functions was not 4567 supplied by user. 4568 45692004-03-02 Frank Warmerdam <[email protected]> 4570 4571 * tools/ycbcr.c: fixed main() declaration as per: 4572 http://bugzilla.remotesensing.org/show_bug.cgi?id=513 4573 45742004-02-26 Andrey Kiselev <[email protected]> 4575 4576 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed 4577 images. Reported by Artem Mirolubov. 4578 4579 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED 4580 tag type in TIFFFetchNormalTag() as per bug 4581 4582 http://bugzilla.remotesensing.org/show_bug.cgi?id=508 4583 45842004-02-17 Frank Warmerdam <[email protected]> 4585 4586 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per: 4587 http://bugzilla.remotesensing.org/show_bug.cgi?id=494 4588 45892004-02-05 Andrey Kiselev <[email protected]> 4590 4591 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per 4592 bug 4593 4594 http://bugzilla.remotesensing.org/show_bug.cgi?id=483 4595 4596 But we need more work on fax codec to support update mode. 4597 45982004-01-30 Frank Warmerdam <[email protected]> 4599 4600 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck, 4601 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by 4602 Scott Reynolds. 4603 46042004-01-29 Andrey Kiselev <[email protected]> 4605 4606 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS 4607 and TIFFTAG_INDEXED as per bug 4608 4609 http://bugzilla.remotesensing.org/show_bug.cgi?id=475 4610 4611 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is 4612 NULL before proceeding further as per bug 4613 4614 http://bugzilla.remotesensing.org/show_bug.cgi?id=474 4615 4616 Check results, returned by the TIFFFdOpen() before returning and close 4617 file if TIFFFdOpen() failed as per bug 4618 4619 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4620 4621 * libtiff/tif_open.c: More fixes for 4622 4623 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4624 46252004-01-28 Andrey Kiselev <[email protected]> 4626 4627 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate 4628 TIFFCleanup() from the TIFFClose() in order to fix the bug 4629 4630 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4631 4632 * tools/tiffcp.c: Fixed problem with wrong interpretation of the 4633 InkNames tag as per bug 4634 4635 http://bugzilla.remotesensing.org/show_bug.cgi?id=466 4636 4637 Memory leak fixed. 4638 46392004-01-21 Frank Warmerdam <[email protected]> 4640 4641 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that 4642 are field_passcount=TRUE properly. Arguably anonymous custom tags 4643 should be declared as passcount=FALSE, but I don't want to change 4644 that without a careful review. 4645 46462004-01-20 Andrey Kiselev <[email protected]> 4647 4648 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of 4649 stripped image in TIFFWriteBufferSetup(). As per bug 4650 4651 http://bugzilla.remotesensing.org/show_bug.cgi?id=460 4652 46532004-01-11 Andrey Kiselev <[email protected]> 4654 4655 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(), 4656 patch from Gerben Koopmans. 4657 4658 * libtiff/tif_dirread.c: Check field_passcount value before setting 4659 the value of undefined type, patch from Gerben Koopmans. 4660 46612004-01-02 Andrey Kiselev <[email protected]> 4662 4663 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for 4664 non-RGB images. 4665 46662003-12-31 Andrey Kiselev <[email protected]> 4667 4668 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL 4669 pointer passed. Patch supplied by Larry Grill. 4670 4671 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as 4672 suggested by Jeremy C. Reed. 4673 46742003-12-26 Andrey Kiselev <[email protected]> 4675 4676 * libtiff 3.6.1 released. 4677 46782003-12-24 Andrey Kiselev <[email protected]> 4679 4680 * config.guess, config.sub: Updated from the recent upstream. 4681 46822003-12-22 Andrey Kiselev <[email protected]> 4683 4684 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t: 4685 More cleanups in color conversion interface, added appropriate manual 4686 page. 4687 46882003-12-19 Andrey Kiselev <[email protected]> 4689 4690 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as 4691 per bug 4692 4693 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 4694 4695 * tools/tiff2ps.c: Added support for alpha channel. Fixes 4696 4697 http://bugzilla.remotesensing.org/show_bug.cgi?id=428 4698 4699 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}: 4700 Interface for Lab->RGB color conversion is finally cleaned up. 4701 Added support for ReferenceBlackWhite tag handling when converted from 4702 YCbCr color space. The latter closes 4703 4704 http://bugzilla.remotesensing.org/show_bug.cgi?id=120 4705 47062003-12-07 Andrey Kiselev <[email protected]> 4707 4708 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings. 4709 4710 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG 4711 library. 4712 47132003-12-06 Andrey Kiselev <[email protected]> 4714 4715 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the 4716 file and properly use it for CIE Lab->RGB transform. 4717 47182003-12-04 Andrey Kiselev <[email protected]> 4719 4720 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB 4721 conversion routines now in the tif_color.c module. New function 4722 TIFFYCbCrtoRGB() available in TIFF API. 4723 4724 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly. 4725 47262003-12-03 Andrey Kiselev <[email protected]> 4727 4728 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in 4729 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c 4730 module. 4731 4732 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t, 4733 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}: 4734 Finally resolved problems with orientation handling. TIFFRGBAImage 4735 interface now properly supports all possible orientations, i.e. images 4736 will be flipped both in horizontal and vertical directions if 4737 required. 'Known bugs' section now removed from the appropriate manual 4738 pages. Closed bug entry: 4739 4740 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 4741 47422003-12-02 Andrey Kiselev <[email protected]> 4743 4744 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError() 4745 function calls as per bug 4746 4747 http://bugzilla.remotesensing.org/show_bug.cgi?id=440 4748 47492003-11-28 Ross Finlayson <[email protected]> 4750 4751 * tools/tiff2pdf.c: Some bugs fixed. 4752 47532003-11-27 Andrey Kiselev <[email protected]> 4754 4755 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine, 4756 reported by Antonio Scuri. 4757 4758 * man/tiff2pdf.1: Few improvements in page layout. 4759 4760 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html: 4761 Added support fpr tiff2pdf manual page. 4762 47632003-11-26 Ross Finlayson <[email protected]> 4764 4765 * /man/tiff2pdf.1: File added to repository. 4766 47672003-11-26 Andrey Kiselev <[email protected]> 4768 4769 * Makefile.in, /tools/{Makefile.in, makefile.vc}: 4770 Added support fpr tiff2pdf utility. 4771 47722003-11-25 Ross Finlayson <[email protected]> 4773 4774 * /tools/tiff2pdf.c: File added to repository. 4775 47762003-11-22 Andrey Kiselev <[email protected]> 4777 4778 * /tools/raw2tiff.c: sqrtf() replaced with sqrt(). 4779 47802003-11-21 Andrey Kiselev <[email protected]> 4781 4782 * /tools/raw2tiff.c: #include <getopt.h> removed. 4783 4784 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent 4785 sgigt utility removed and replaced with the completely rewritten 4786 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision, 4787 there is a lot of things to improve. 4788 4789 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly 4790 extract the fields from the OJPEG files. Patch supplied by Ross 4791 Finlayson. 4792 4793 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}: 4794 Added new function TIFFIsCODECConfigured(), suggested by Ross 4795 Finlayson. 4796 47972003-11-18 Andrey Kiselev <[email protected]> 4798 4799 * libtiff/tif_dirinfo.c: Implemented binary search in 4800 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson. 4801 4802 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced 4803 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson. 4804 48052003-11-17 Frank Warmerdam <[email protected]> 4806 4807 * tif_dirread.c: do not mark all anonymously defined tags to be 4808 IGNOREd. 4809 48102003-11-17 Andrey Kiselev <[email protected]> 4811 4812 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use 4813 TIFFDataWidth() function insted of tiffDataWidth array. 4814 48152003-11-16 Andrey Kiselev <[email protected]> 4816 4817 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13) 4818 datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes". 4819 48202003-11-15 Frank Warmerdam <[email protected]> 4821 4822 * Makefile.in: fixed missing backslash for tif_color.c in list. 4823 48242003-11-13 Andrey Kiselev <[email protected]> 4825 4826 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}: 4827 New color space conversion code: CIE L*a*b* 1976 images now supported 4828 by the TIFFRGBAImage interface. All introduced routines go to new 4829 module tif_color.c. Eventually all color conversion functions should 4830 be moved there. 4831 48322003-11-12 Andrey Kiselev <[email protected]> 4833 4834 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles 4835 with the reverse byte order (it is reported by the magic header 4836 field). Problem reported by Andreas Wiesmann. 4837 4838 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation 4839 calculation function. Guessing mechanics now documented in manual page. 4840 48412003-11-11 Andrey Kiselev <[email protected]> 4842 4843 * tools/raw2tiff.c: Implemented image size guessing using 4844 correlation coefficient calculation between two neighbour lines. 4845 48462003-11-09 Frank Warmerdam <[email protected]> 4847 4848 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the 4849 planarconfig_contig case in TIFFComputeTile(). 4850 4851 http://bugzilla.remotesensing.org/show_bug.cgi?id=387 4852 48532003-11-09 Andrey Kiselev <[email protected]> 4854 4855 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint. 4856 48572003-11-07 Andrey Kiselev <[email protected]> 4858 4859 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}: 4860 Added TIFFRawStripSize() function as suggested by Chris Hanson. 4861 48622003-11-03 Andrey Kiselev <[email protected]> 4863 4864 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as 4865 per bug 4866 4867 http://bugzilla.remotesensing.org/show_bug.cgi?id=424 4868 48692003-10-29 Andrey Kiselev <[email protected]> 4870 4871 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented. 4872 4873 * html/build.html: Added note about GNU make requirement. 4874 48752003-10-25 Andrey Kiselev <[email protected]> 4876 4877 * Makefile.in: Fixes in using MAKEFLAGS as per bug 4878 4879 http://bugzilla.remotesensing.org/show_bug.cgi?id=418 4880 4881 * port/install.sh.in: Option -p added to the mkdir command to create 4882 all directory tree structure before installing. 4883 48842003-10-18 Andrey Kiselev <[email protected]> 4885 4886 * /tools/tiff2ps.c: #include <strings.h> replaced with the 4887 #include <string.h>. 4888 48892003-10-16 Andrey Kiselev <[email protected]> 4890 4891 * Makefile.in: Add an absolute path to the test_pics.sh call. 4892 48932003-10-12 Andrey Kiselev <[email protected]> 4894 4895 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD 4896 typedefs. 4897 48982003-10-09 Andrey Kiselev <[email protected]> 4899 4900 * configure, libtiff/{Makefile.in, mkversion.c}: 4901 Relative buildings fixed. 4902 4903 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building 4904 rule. 4905 49062003-10-07 Andrey Kiselev <[email protected]> 4907 4908 * Makefile.in: Added missed v3.6.0.html. 4909 4910 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with 4911 ORIENTATION_BOTLEFT. 4912 49132003-10-04 Andrey Kiselev <[email protected]> 4914 4915 * 3.6.0 final release. 4916 49172003-10-03 Andrey Kiselev <[email protected]> 4918 4919 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New 4920 function TIFFReadRGBAImageOriented() implemented to retrieve raster 4921 array with user-specified origin position as suggested by Jason Frank. 4922 See 4923 4924 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 4925 4926 for details. 4927 4928 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented() 4929 instead of TIFFReadRGBAImage(). 4930 4931 * tools/tiff2ps.c: Fixed possible endless loop as per bug 4932 4933 http://bugzilla.remotesensing.org/show_bug.cgi?id=404 4934 49352003-09-30 Andrey Kiselev <[email protected]> 4936 4937 * libtiff/tif_dirread.c: Check field counter against number of fields 4938 in order to fix 4939 4940 http://bugzilla.remotesensing.org/show_bug.cgi?id=366 4941 4942 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug 4943 4944 http://bugzilla.remotesensing.org/show_bug.cgi?id=342 4945 49462003-09-25 Andrey Kiselev <[email protected]> 4947 4948 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c, 4949 tif_close.c}: Store a list of opened IFD to prevent looping as per bug 4950 4951 http://bugzilla.remotesensing.org/show_bug.cgi?id=383 4952 49532003-09-23 Andrey Kiselev <[email protected]> 4954 4955 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See 4956 4957 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 4958 49592003-08-21 Andrey Kiselev <[email protected]> 4960 4961 * tools/tiffmedian.c: int declaration replaced with the uint32 to 4962 support large images as per bug 4963 4964 http://bugzilla.remotesensing.org/show_bug.cgi?id=382 4965 49662003-08-12 Andrey Kiselev <[email protected]> 4967 4968 * libtiff/Makefile.in: Fixed problem with building in different 4969 directory. 4970 4971 * tools/tiff2ps.c: Added missing #include <strings.h>. 4972 4973 * libtiff/tif_dirwrite.c: More fixes for custom tags code 4974 from Ashley Dreier. 4975 49762003-08-07 Andrey Kiselev <[email protected]> 4977 4978 * tools/tiff2ps.c: Added page size setting when creating PS Level 2. 4979 Patch submitted by Balatoni Denes (with corrections from Tom 4980 Kacvinsky). 4981 4982 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is 4983 being used. Reported by Tom Kacvinsky. 4984 4985 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing, 4986 reported by Ashley Dreier. 4987 4988 * libtiff/tif_print.c: Fixed problem with float tags reading, support 4989 for printing RATIONAL and BYTE tags added. 4990 49912003-08-05 Andrey Kiselev <[email protected]> 4992 4993 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to 4994 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause 4995 problems with predictor initialization. Remove O_RDONLY check during 4996 state block allocation to be able open LZW compressed files in update 4997 mode. 4998 4999 Problem exist for libtiff version of the tif_lzw.c module. One from 5000 lzw-compression-kit hasn't such troubles. 5001 50022003-08-04 Frank Warmerdam <[email protected]> 5003 5004 * libtiff/tif_write.c: modified tif_write.c so that the various 5005 encoded write functions use tif_postdecode() to apply byte order 5006 swapping (swab) to the application passed data buffer if the same 5007 would be done when reading. This allows us to write pixel data with 5008 more than 8 bits per sample to existing files of a non-native byte 5009 order. One side effect of this change is the applications buffer 5010 itself is altered in this case by the act of writing. 5011 5012 http://bugzilla.remotesensing.org/show_bug.cgi?id=171 5013 50142003-07-25 Frank Warmerdam <[email protected]> 5015 5016 * libtiff/tif_open.c: avoid signed/unsigned casting warning 5017 initializing typemask as per patch from J.A. Strother. 5018 5019 * tools/tiffcp.c: fixed signed/unsigned casting warning. 5020 5021 * libtiff/tif_print.c: dos2unix conversion. 5022 5023 * tools/tiffsplit.c: increased the maximum number of pages that 5024 can be split. Patch provided by Andrew J. Montalenti. 5025 50262003-07-11 Andrey Kiselev <[email protected]> 5027 5028 * tools/raw2tiff.c: Added option `-p' to explicitly select color 5029 space of input image data. Closes 5030 5031 http://bugzilla.remotesensing.org/show_bug.cgi?id=364 5032 50332003-07-08 Frank Warmerdam <[email protected]> 5034 5035 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c, 5036 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c, 5037 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c: 5038 avoid casting warning at /W4. 5039 50402003-07-03 Andrey Kiselev <[email protected]> 5041 5042 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel. 5043 50442003-06-30 Andrey Kiselev <[email protected]> 5045 5046 * libtiff/tif_pixarlog.c: Unused variables removed. 5047 5048 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with 5049 EstimateStripByteCounts() as per bug 5050 5051 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5052 5053 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on 5054 64-bit architectures as per bug 5055 5056 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5057 5058 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of 5059 unknown data type. 5060 50612003-06-19 Frank Warmerdam <[email protected]> 5062 5063 * libtiff/tif_print.c: fixed some serious bugs when printing 5064 custom tags ... almost certain to crash. 5065 5066 * libtiff/tif_dirread.c: Don't ignore custom fields that are 5067 autodefined. Not sure how this got to be like this. 5068 50692003-06-18 Andrey Kiselev <[email protected]> 5070 5071 * 3.6.0 Beta2 released. 5072 5073 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data 5074 comparing as per bug 5075 5076 http://bugzilla.remotesensing.org/show_bug.cgi?id=349 5077 5078 `-z' option now can be used to set the number of reported different 5079 bytes. 5080 50812003-06-09 Andrey Kiselev <[email protected]> 5082 5083 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1 5084 to -r option to get the entire image as one strip. See 5085 5086 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5087 5088 for details. 5089 50902003-06-04 Andrey Kiselev <[email protected]> 5091 5092 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber 5093 values as per bug 5094 5095 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5096 50972003-05-27 Frank Warmerdam <[email protected]> 5098 5099 * libtiff/tif_jpeg.c: modified segment_height calculation to always 5100 be a full height tile for tiled images. Also changed error to just 5101 be a warning. 5102 51032003-05-25 Andrey Kiselev <[email protected]> 5104 5105 * tools/fax2tiff.c: Page numbering fixed, as per bug 5106 5107 http://bugzilla.remotesensing.org/show_bug.cgi?id=341 5108 51092003-05-20 Andrey Kiselev <[email protected]> 5110 5111 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5112 configure, Makefile.in: Switched back to the old behaviour. Likely 5113 better solution should be found for OJPEG support. 5114 51152003-05-11 Andrey Kiselev <[email protected]> 5116 5117 * libtiff/mkversion.c: Fixed problem with wrong string size when 5118 reading RELEASE-DATE file. 5119 51202003-05-07 Andrey Kiselev <[email protected]> 5121 5122 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array 5123 index was out of range. 5124 51252003-05-06 Andrey Kiselev <[email protected]> 5126 5127 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5128 configure, Makefile.in: Improved libtiff compilation with OJPEG 5129 support. Now no need for patching IJG JPEG library, hack requred by 5130 libtiff will be compiled and used in-place. Implemented with 5131 suggestion and help from Bill Allombert, Debian's libjpeg maintainer. 5132 5133 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in 5134 TIFFVGetFieldDefaulted() function. 5135 51362003-05-05 Andrey Kiselev <[email protected]> 5137 5138 * tools/ppm2tiff.c: PPM header parser improved: now able to skip 5139 comments. 5140 5141 * tools/tiffdither.c: Fixed problem with bit fill order tag setting: 5142 was not copied from source image. 5143 5144 * libtiff/getimage.c: Workaround for some images without correct 5145 info about alpha channel as per bug 5146 5147 http://bugzilla.remotesensing.org/show_bug.cgi?id=331 5148 51492003-04-29 Andrey Kiselev <[email protected]> 5150 5151 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3. 5152 It basically allows one to use the /flateDecode filter for ZIP 5153 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes 5154 5155 http://bugzilla.remotesensing.org/show_bug.cgi?id=328 5156 5157 * tools/tiff2ps.c: Force deadzone printing when EPS output specified 5158 as per bug 5159 5160 http://bugzilla.remotesensing.org/show_bug.cgi?id=325 5161 51622003-04-17 Andrey Kiselev <[email protected]> 5163 5164 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts 5165 due to problems with multidirectory images. Quality of error messages 5166 improved. 5167 51682003-04-16 Andrey Kiselev <[email protected]> 5169 5170 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG 5171 encoded images. See bug entries 5172 5173 http://bugzilla.remotesensing.org/show_bug.cgi?id=275 5174 5175 and 5176 5177 http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5178 5179 * libtiff/tif_dirread.c: Additional check for StripByteCounts 5180 correctness. Fixes 5181 5182 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 5183 51842003-03-12 Andrey Kiselev <[email protected]> 5185 5186 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c, 5187 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c, 5188 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c, 5189 tiffmedian.c}: Added library version reporting facility to all tools. 5190 51912003-03-06 Frank Warmerdam <[email protected]> 5192 5193 * port/install.sh.in: Fixed problems with install producing paths 5194 like ///usr/local/lib on cygwin. 5195 51962003-02-27 Andrey Kiselev <[email protected]> 5197 5198 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of 5199 raw input page. Patch supplied by Julien Gaulmin. See 5200 5201 http://bugzilla.remotesensing.org/show_bug.cgi?id=293 5202 5203 for details. 5204 52052003-02-26 Frank Warmerdam <[email protected]> 5206 5207 * libtiff/tif_dir.c: fixed up the tif_postdecode settings 5208 responsible for byte swapping complex image data. 5209 5210 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till 5211 LZWSetupDecode(). Needed to read LZW files in "r+" mode. 5212 52132003-02-07 Andrey Kiselev <[email protected]> 5214 5215 * tools/ppm2tiff.c: Fixed problem with too many arguments. 5216 52172003-02-04 Andrey Kiselev <[email protected]> 5218 5219 * tools/raw2tiff.c: Memory leak fixed. 5220 52212003-02-03 Andrey Kiselev <[email protected]> 5222 5223 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin 5224 (thanks, Julien!). More switches for fax2tiff tool for better control 5225 of input and output. Details at 5226 5227 http://bugzilla.remotesensing.org/show_bug.cgi?id=272 5228 52292003-02-03 Frank Warmerdam <[email protected]> 5230 5231 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg 5232 library so that we can check if there is already any tile/strip data 5233 before deciding between creating a compressor or a decompressor. 5234 52352003-01-31 Frank Warmerdam <[email protected]> 5236 5237 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is 5238 a pre-existing compressed image. That is, image writing to 5239 pre-existing compressed images is not allowed. 5240 5241 * libtiff/tif_open.c: Removed error if opening a compressed file 5242 in update mode. 5243 5244 http://bugzilla.remotesensing.org/show_bug.cgi?id=198 5245 52462003-01-31 Andrey Kiselev <[email protected]> 5247 5248 * config.guess, config.sub: Updated to recent upstream versions. 5249 52502003-01-15 Frank Warmerdam <[email protected]> 5251 5252 * cut 3.6.0 Beta release. 5253 52542002-12-20 Andrey Kiselev <[email protected]> 5255 5256 * tools/fax2ps.c, man/fax2ps.1: Page size was determined 5257 in wrong way as per bug 5258 5259 http://bugzilla.remotesensing.org/show_bug.cgi?id=239 5260 52612002-12-17 Frank Warmerdam <[email protected]> 5262 5263 * libtiff/tif_dirread.c: Allow wrong sized arrays in 5264 TIFFFetchStripThing(). 5265 5266 http://bugzilla.remotesensing.org/show_bug.cgi?id=49 5267 52682002-12-02 Frank Warmerdam <[email protected]> 5269 5270 * libtiff/tif_dir.c: fix problem with test on td_customValueCount. 5271 Was using realloc even first time. Fix by Igor Venevtsev. 5272 52732002-11-30 Frank Warmerdam <[email protected]> 5274 5275 * libtiff/tif_dir.c: fixed bug with resetting an existing custom 5276 field value. 5277 5278 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom" 5279 tags in TIFFVGetField() ... added missing break. 5280 52812002-10-14 Frank Warmerdam <[email protected]> 5282 5283 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make 5284 the scanline buffer long enough when writing rgb triplets. 5285 The scanline needs to be 3 X the number of dots or else it will 5286 contain an incomplete triplet and programs that try to separate 5287 the eps by redefining the colorimage operator will get messed up. 5288 Patch supplied by William Bader. 5289 5290 * Makefile.in: added tif_extension.c to file list as per 5291 http://bugzilla.remotesensing.org/show_bug.cgi?id=218. 5292 52932002-10-11 Andrey Kiselev <[email protected]> 5294 5295 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for 5296 large files (>2GiB) supporting. New option in the config.site: 5297 LARGEFILE="yes". Should be enough for I/O of the large files. 5298 52992002-10-10 Frank Warmerdam <[email protected]> 5300 5301 * libtiff/html/v3.6.0.html: new release notes. 5302 5303 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email 5304 link for Andrey. Pointer to v3.6.0.html. 5305 5306 * libtiff/Makefile.in: added direct rule for tiffvers.h for release. 5307 53082002-10-07 Andrey Kiselev <[email protected]> 5309 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken 5310 (thanks, Sebastian!). New switches: 5311 -b # for a bottom margin of # inches 5312 -c center image 5313 -l # for a left margin of # inches 5314 -r rotate the image by 180 degrees 5315 New features merged with code for shrinking/overlapping. 5316 Previously added -c and -n switches (for overriding PS units) renamed 5317 in -x and -y respectively. 5318 5319 http://bugzilla.remotesensing.org/show_bug.cgi?id=200 5320 5321 * html/man/*.html: Updated from actual manual pages. 5322 53232002-10-06 Frank Warmerdam <[email protected]> 5324 5325 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong 5326 size on windows. Use #define boolean hack. 5327 5328 http://bugzilla.remotesensing.org/show_bug.cgi?id=188 5329 5330 * libtiff/tiff.h: Don't do special type handling in tiff.h unless 5331 USING_VISUALAGE is defined. 5332 5333 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5334 53352002-10-03 Frank Warmerdam <[email protected]> 5336 5337 * libtiff/tiff.h: added COMPRESSION_JP2000. 5338 53392002-10-02 Andrey Kiselev <[email protected]> 5340 5341 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays 5342 by the TIFFFetchByteArray() function. Should finally resolve 5343 5344 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5345 5346 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT 5347 5348 * html/Makefile.in: New targets added: html and groffhtml for 5349 producing HTML representations of the manual pages automatically. 5350 html target uses man2html tool, groffhtml uses groff tool. 5351 53522002-09-29 Frank Warmerdam <[email protected]> 5353 5354 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support 5355 from John H. DuBois III. 5356 53572002-09-15 Andrey Kiselev <[email protected]> 5358 5359 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added 5360 manual page for raw2tiff(1) tool. 5361 53622002-09-12 Andrey Kiselev <[email protected]> 5363 5364 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to 5365 the tiffio.h header file. 5366 5367 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added 5368 manual page for TIFFDataWidth() function 5369 53702002-09-08 Frank Warmerdam <[email protected]> 5371 5372 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair() 5373 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196. 5374 5375 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments 5376 since we are unable to properly include the amount to skip. 5377 5378 http://bugzilla.remotesensing.org/show_bug.cgi?id=80 5379 53802002-09-02 Andrey Kiselev <[email protected]> 5381 5382 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching 5383 in TIFFFetchByteArray(). Problem described at 5384 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5385 53862002-08-22 Andrey Kiselev <[email protected]> 5387 5388 * /libtiff/tif_dirinfo.c: Further additions to free custom fields 5389 in _TIFFSetupFieldInfo() function. 5390 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details. 5391 5392 * /libtiff/tif_lzw.c: Additional consistency checking added in 5393 LZWDecode() and LZWDecodeCompat(). 5394 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190 5395 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5396 5397 * /libtiff/tif_lzw.c: 5398 Added check for valid code lengths in LZWDecode() and 5399 LZWDecodeCompat(). Fixes 5400 http://bugzilla.remotesensing.org/show_bug.cgi?id=115 5401 54022002-08-16 Andrey Kiselev <[email protected]> 5403 5404 * /libtiff/{Makefile.vc, libtiff.def}: 5405 Missed declarations added. 5406 54072002-08-15 Frank Warmerdam <[email protected]> 5408 5409 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the 5410 return code from the underlying pick function. 5411 5412 http://bugzilla.remotesensing.org/show_bug.cgi?id=177 5413 5414 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap 5415 with FIELD_CUSTOM as mentioned in bug 169. 5416 5417 * tif_close.c: added logic to free dynamically created anonymous 5418 field definitions to correct a small memory leak. 5419 5420 http://bugzilla.remotesensing.org/show_bug.cgi?id=169 5421 54222002-08-10 Andrey Kiselev <[email protected]> 5423 5424 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}: 5425 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet. 5426 54272002-07-31 Frank Warmerdam <[email protected]> 5428 5429 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in 5430 JPEGDecode() as per bugzilla bug (issue 1): 5431 5432 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5433 5434 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to 5435 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't 5436 present in the tiff tags. 5437 5438 http://bugzilla.remotesensing.org/show_bug.cgi?id=168 5439 5440 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and 5441 TIFFWriteScanline() now set tif_row explicitly in case the codec has 5442 fooled with the value. 5443 5444 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5445 54462002-06-22 Andrey Kiselev <[email protected]> 5447 5448 * /tools/tiff2ps.c: Added workaround for some software that may crash 5449 when last strip of image contains fewer number of scanlines than 5450 specified by the `/Height' variable. See 5451 http://bugzilla.remotesensing.org/show_bug.cgi?id=164 5452 for explanation. 5453 54542002-06-21 Andrey Kiselev <[email protected]> 5455 5456 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility: 5457 splitting long images in several pages. See 5458 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation. 5459 Patch granted by John Williams <[email protected]>. 5460 54612002-06-11 Frank Warmerdam <[email protected]> 5462 5463 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new 5464 Tiffile.cpp example of converting TIFF files into a DIB on Win32. 5465 This one is described in: 5466 5467 http://bugzilla.remotesensing.org/show_bug.cgi?id=143 5468 5469 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at: 5470 5471 http://bugzilla.remotesensing.org/show_bug.cgi?id=156 5472 54732002-05-10 Andrey Kiselev <[email protected]> 5474 5475 * tools/tiff2ps: New commandline switches to override resolution 5476 units obtained from the input file. Closes 5477 http://bugzilla.remotesensing.org/show_bug.cgi?id=131 5478 54792002-04-26 Andrey Kiselev <[email protected]> 5480 5481 * libtiff/libtiff.def: Added missed declaration. 5482 54832002-04-22 Andrey Kiselev <[email protected]> 5484 5485 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff. 5486 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125 5487 54882002-04-20 Andrey Kiselev <[email protected]> 5489 5490 * libtiff/tif_open.c: Pointers to custom procedures 5491 in TIFFClientOpen() are checked to be not NULL-pointers. 5492 54932002-04-18 Andrey Kiselev <[email protected]> 5494 5495 * libtiff/libtiff.def: Added missed declarations. 5496 5497 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure. 5498 54992002-04-16 Andrey Kiselev <[email protected]> 5500 5501 * libtiff/tif_lzw.c: Additional checks for data integrity introduced. 5502 Should finally close 5503 http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5504 55052002-04-10 Andrey Kiselev <[email protected]> 5506 5507 * tools/tiff2ps: Division by zero fixed. 5508 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88 5509 55102002-04-09 Andrey Kiselev <[email protected]> 5511 5512 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h: 5513 TIFFCheckpointDirectory() routine added. 5514 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124 5515 5516 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description 5517 for the new function. 5518 55192002-04-08 Andrey Kiselev <[email protected]> 5520 5521 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced 5522 additional members tif->tif_decodestatus and tif->tif_encodestatus 5523 for correct handling of unconfigured codecs (we should not try to read 5524 data or to define data size without correct codecs). 5525 5526 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK 5527 changed. Now it has used tif->tif_decodestatus and 5528 tif->tif_encodestatus. 5529 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in 5530 case of __cvs_8.tif test image). 5531 5532 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in 5533 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced. 5534 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case 5535 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif. 5536 55372002-04-04 Andrey Kiselev <[email protected]> 5538 5539 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat 5540 replaced by warnings. Now libtiff should read corrupted LZW-compressed 5541 files by skipping bad strips. 5542 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5543 55442002-04-03 Frank Warmerdam <[email protected]> 5545 5546 * libtiff/tif_dirwrite.c: Removed some dead code. 5547 5548 * libtiff/*: Cleanup some warnings. 5549 5550 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField() 5551 for variable length FIELD_CUSTOM values. Was int * but should be 5552 u_short *. 5553 55542002-04-01 Andrey Kiselev <[email protected]> 5555 5556 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp 5557 utility (at cpStripToTile routine). 5558 55592002-03-27 Frank Warmerdam <[email protected]> 5560 5561 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func. 5562 5563 http://bugzilla.remotesensing.org/show_bug.cgi?id=111 5564 5565 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with 5566 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE). 5567 5568 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so 5569 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example. 5570 55712002-03-26 Dwight Kelly <[email protected]> 5572 5573 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5574 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined 5575 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec 5576 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes: 5577 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and 5578 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9). 5579 55802002-03-26 Andrey Kiselev <[email protected]> 5581 5582 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile 5583 now also uses TIFFRGBAImageOK before reading. This is additional fix 5584 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5585 55862002-03-25 Andrey Kiselev <[email protected]> 5587 5588 * libtiff/: tif_getimage.c: Additional check for supported 5589 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses 5590 TIFFRGBAImageOK before reading. 5591 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5592 55932002-03-15 Andrey Kiselev <[email protected]> 5594 5595 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5596 tif_dirwrite.c: Added routine TIFFDataWidth for detrmining 5597 TIFFDataType sizes instead of working with tiffDataWidth array 5598 directly. Should prevent out-of-borders bugs in case of unknown or 5599 broken data types. EstimateStripByteCounts routine modified, so it 5600 won't work when tags with uknown sizes founded. 5601 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109 5602 56032002-03-13 Andrey Kiselev <[email protected]> 5604 5605 * libtiff/tif_getimage.c: Added support for correct handling 5606 `Orientation' tag in gtTileContig. Should be added in other gt* 5607 functions as well, but I have not images for testing yet. Partially 5608 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5609 56102002-03-10 Andrey Kiselev <[email protected]> 5611 5612 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to 5613 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION, 5614 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes 5615 http://bugzilla.remotesensing.org/show_bug.cgi?id=99 5616 56172002-03-08 Andrey Kiselev <[email protected]> 5618 5619 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not 5620 be stripped when installing, utility binaries will do. Closes 5621 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 5622 56232002-02-28 Frank Warmerdam <[email protected]> 5624 5625 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT. 5626 5627 * man/libtiff.3t: added copyright tag info. 5628 56292002-02-11 Frank Warmerdam <[email protected]> 5630 5631 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__. 5632 5633 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 5634 5635 * man/Makefile.in: Patch DESTDIR handling 5636 5637 http://bugzilla.remotesensing.org/show_bug.cgi?id=95 5638 5639 * configure: OpenBSD changes for Sparc64 and DSO version. 5640 5641 http://bugzilla.remotesensing.org/show_bug.cgi?id=96 5642 56432002-02-05 Frank Warmerdam <[email protected]> 5644 5645 * config.site/configure: added support for OJPEG=yes option to enable 5646 OJPEG support from config.site. 5647 56482002-01-27 Frank Warmerdam <[email protected]> 5649 5650 * html/document.html: fixed links for TIFf 6 docs. 5651 56522002-01-18 Frank Warmerdam <[email protected]> 5653 5654 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config. 5655 5656 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the 5657 decodestrip function returns anything not greater than zero as per 5658 http://bugzilla.remotesensing.org/show_bug.cgi?id=97 5659 5660 * configure: Modify CheckForBigEndian so it can work in a cross 5661 compiled situation. 5662 56632002-01-16 Frank Warmerdam <[email protected]> 5664 5665 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list. 5666 5667 * tools/tiffset.c: fix bug in error reporting. 5668 5669 * tools/tiffcp.c: fix several warnings that show up with -Wall. 5670 56712002-01-04 Frank Warmerdam <[email protected]> 5672 5673 * libtiff/tif_jpeg.c: fixed computation of segment_width for 5674 tiles files to avoid error about it not matching the 5675 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile 5676 size.") for ITIFF files. Apparently the problem was incorporated since 5677 3.5.5, presumably during the OJPEG/JPEG work recently. 5678 56792001-12-15 Frank Warmerdam <[email protected]> 5680 5681 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1. 5682 5683 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 5684 5685 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1 5686 (defined in tiffconf.h - 1 by default) then the RGBA interface 5687 will assume that a fourth extra sample is ASSOCALPHA if the 5688 EXTRASAMPLE value isn't set for it. This changes the behaviour of 5689 the library, but makes it work better with RGBA files produced by 5690 lots of applications that don't mark the alpha values properly. 5691 5692 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 5693 http://bugzilla.remotesensing.org/show_bug.cgi?id=65 5694 56952001-12-12 Frank Warmerdam <[email protected]> 5696 5697 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to 5698 override those from tiff directory. This makes this work with 5699 ImageGear generated files. 5700 57012001-12-07 Frank Warmerdam <[email protected]> 5702 5703 * html/Makefile.in: added missing images per bug 92. 5704 5705 * port/Makefile.in: fixed clean target per bug 92. 5706 57072001-11-28 Frank Warmerdam <[email protected]> 5708 5709 * Reissue 3.5.7 release. 5710 5711 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be 5712 YYYYMMDD so that it is increasing over time. 5713 5714 * Makefile.in: Ensure that tiffvers.h is regenerated in the 5715 make release target. 5716 5717 * Makefile.in: added libtiff/tiffvers.h to the release file list. 5718 57192001-11-23 Frank Warmerdam <[email protected]> 5720 5721 * added html/v3.5.7.html, updated html/index.html. 5722 5723 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}. 5724 57252001-11-15 Frank Warmerdam <[email protected]> 5726 5727 * configure: fixed test for -lm. 5728 57292001-11-02 Frank Warmerdam <[email protected]> 5730 5731 * Added PHOTOMETRIC_ITULAB as per bug 90. 5732 5733 http://bugzilla.remotesensing.org/show_bug.cgi?id=90 5734 57352001-10-10 Frank Warmerdam <[email protected]> 5736 5737 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4, 5738 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases 5739 in keeping with TIFF 6.0 standard in tiff.h 5740 5741 http://bugzilla.remotesensing.org/show_bug.cgi?id=83 5742 57432001-09-26 Frank Warmerdam <[email protected]> 5744 5745 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function. 5746 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory. 5747 57482001-09-24 Frank Warmerdam <[email protected]> 5749 5750 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug. 5751 5752 http://bugzilla.remotesensing.org/show_bug.cgi?id=78 5753 5754 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an 5755 error about LZW not being available. 5756 5757 * libtiff/tif_dir.c: propagate failure to initialize compression 5758 back from TIFFSetField() as an error status, so applications can 5759 detect failure. 5760 5761 * libtiff/tif_dir.c: removed the auto replacement of 5762 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField(). 5763 5764 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile 5765 from CVS as they are all supposed to be auto-generated by configure. 5766 57672001-09-22 Frank Warmerdam <[email protected]> 5768 5769 * libtiff/tif_ojpeg.c: new update from Scott. 5770 57712001-09-09 Frank Warmerdam <[email protected]> 5772 5773 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to 5774 always use the "safe" version, even if there is a very slight 5775 cost in performance. 5776 5777 http://bugzilla.remotesensing.org/show_bug.cgi?id=54 5778 5779 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@ 5780 in two places. 5781 5782 * libtiff/tif_getimage.c: Fixed problem with reading strips or 5783 tiles that don't start on a tile boundary. Fix contributed by 5784 Josep Vallverdu (from HP), and further described in bug 47. 5785 5786 http://bugzilla.remotesensing.org/show_bug.cgi?id=47 5787 5788 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support. 5789 5790 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott. 5791 57922001-09-06 Frank Warmerdam <[email protected]> 5793 5794 * libtiff/tif_packbits.c: fixed memory overrun error. 5795 5796 http://bugzilla.remotesensing.org/show_bug.cgi?id=77 5797 57982001-08-31 Frank Warmerdam <[email protected]> 5799 5800 * libtiff/tif_getimage.c: relax handling of contig case where 5801 there are extra samples that are supposed to be ignored. This 5802 should now work for 8bit greyscale or palletted images. 5803 5804 http://bugzilla.remotesensing.org/show_bug.cgi?id=75 5805 58062001-08-28 Frank Warmerdam <[email protected]> 5807 5808 * libtiff/tif_getimage.c: Don't complain for CMYK (separated) 5809 images with more than four samples per pixel. See: 5810 5811 http://bugzilla.remotesensing.org/show_bug.cgi?id=73 5812 58132001-08-10 Frank Warmerdam <[email protected]> 5814 5815 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy() 5816 in TIFFReadRGBATile() to avoid issues in cases of overlapping 5817 buffers. See Bug 69 in Bugzilla. 5818 5819 http://bugzilla.remotesensing.org/show_bug.cgi?id=69 5820 5821 * tools/tiff2rgba.c: fixed getopt() call so that -b works again. 5822 58232001-08-09 Frank Warmerdam <[email protected]> 5824 5825 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__ 5826 when checking for 64 bit architectures as per bugzilla bug 67. 5827 58282001-07-27 Frank Warmerdam <[email protected]> 5829 5830 * man/Makefile.in: add TIFFClientOpen link as per debian submitted 5831 bug 66. 5832 58332001-07-20 Frank Warmerdam <[email protected]> 5834 5835 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H 5836 has been included. 5837 58382001-07-19 Frank Warmerdam <[email protected]> 5839 5840 * libtiff/tif_open.c: Seek back to zero after failed read, 5841 before writing header. 5842 58432001-07-18 Frank Warmerdam <[email protected]> 5844 5845 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors 5846 much better. Now depends on having patched libjpeg as per 5847 patch in contrib/ojpeg/*. 5848 58492001-07-17 Frank Warmerdam <[email protected]> 5850 5851 * */Makefile.in: added DESTDIR support. 5852 5853 http://bugzilla.remotesensing.org/show_bug.cgi?id=60 5854 58552001-07-16 Frank Warmerdam <[email protected]> 5856 5857 * configure, libtiff/Makefile.in: applied OpenBSD patches 5858 as per: 5859 5860 http://bugzilla.remotesensing.org/show_bug.cgi?id=61 5861 58622001-06-28 Frank Warmerdam <[email protected]> 5863 5864 * libtiff/tif_getimage.c: Fixed so that failure is properly 5865 reported by gtTileContig, gtStripContig, gtTileSeparate and 5866 gtStripSeparate. 5867 5868 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51 5869 5870 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare. 5871 Updated bug section of tiffcmp.1 to note tiled file issues. 5872 5873 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53 5874 58752001-06-22 Frank Warmerdam <[email protected]> 5876 5877 * configure: Changes for DSO generation on AIX provided by 5878 John Marquart <[email protected]>. 5879 5880 * configure, libtiff/Makeifle.in: Modified to build DSOs properly 5881 on Darwin thanks to Robert Krajewski ([email protected]) and 5882 Keisuke Fujii ([email protected]). 5883 58842001-06-13 Frank Warmerdam <[email protected]> 5885 5886 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component. 5887 5888 * man/tiff2rgba.1: new 5889 58902001-05-22 Frank Warmerdam <[email protected]> 5891 5892 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in. 5893 58942001-05-13 Frank Warmerdam <[email protected]> 5895 5896 * libtiff/tools/thumbnail.c: changed default output compression 5897 to packbits from LZW since LZW isn't generally available. 5898 58992001-05-12 Frank Warmerdam <[email protected]> 5900 5901 * libtiff/tif_ojpeg.c: New. 5902 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related 5903 to OJPEG support. 5904 5905 Scott Marovich <[email protected]> supplied OJPEG support. 5906 59072001-05-11 Frank Warmerdam <[email protected]> 5908 5909 * tiff.h: removed, it duplicates libtiff/tiff.h. 5910 59112001-05-08 Frank Warmerdam <[email protected]> 5912 5913 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to 5914 ensure everything is in order. 5915 5916 * libtiff/libtiff.def: added TIFFCreateDirectory and 5917 TIFFDefaultStripSize as per: 5918 5919 http://bugzilla.remotesensing.org/show_bug.cgi?id=46 5920 59212001-05-02 Frank Warmerdam <[email protected]> 5922 5923 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for 5924 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to 5925 force use of uint32 counts instead of short counts. 5926 5927 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the 5928 case of writing TIFF_BYTE/TIFF_SBYTE fields. 5929 5930 http://bugzilla.remotesensing.org/show_bug.cgi?id=43 5931 59322001-05-01 Frank Warmerdam <[email protected]> 5933 5934 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per 5935 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44 5936 59372001-04-05 Frank Warmerdam <[email protected]> 5938 5939 * tiffio.h: removed C++ style comment. 5940 5941 * configure: fixed up SCRIPT_SH/SHELL handling. 5942 5943 * Makefile.in: Fixed SCRIPT_SH/SHELL handling. 5944 5945 * config.guess: documented more variables as per bug 40. 5946 59472001-04-03 Frank Warmerdam <[email protected]> 5948 5949 * configure, *Makefile.in: Various changes to improve configuration 5950 for HP/UX specifically, and also in general. They include: 5951 - Try to handle /usr/bin/sh instead of /bin/sh where necessary. 5952 - Upgrade to HP/UX 10.x+ compiler, linker and dso options. 5953 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP 5954 - Use -${MAKEFLAGS} in sub makes from makefiles. 5955 5956 http://bugzilla.remotesensing.org/show_bug.cgi?id=40 5957 59582001-04-02 Frank Warmerdam <[email protected]> 5959 5960 * libtiff/tiff.h: Applied hac to try and resolve the problem 5961 with the inttypes.h include file on AIX. 5962 5963 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5964 5965 * VERSION: update to 3.5.7 beta in preparation for release. 5966 5967 * configure/config.site: modified to check if -lm is needed for 5968 MACHDEPLIBS if not supplied by config.site. Needed for Darwin. 5969 5970 * config.guess: updated wholesale to an FSF version apparently 5971 from 1998 (as opposed to 1994). This is mainly inspired by 5972 providing for MacOS X support. 5973 59742001-03-29 Frank Warmerdam <[email protected]> 5975 5976 * configure, Makefile.in, etc: added support for OPTIMIZER being 5977 set from config.site. 5978 59792001-03-28 Frank Warmerdam <[email protected]> 5980 5981 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix: 5982 5983 Here's a fix for fax2ps that corrects behaviour for non-Letter paper 5984 sizes. It fixes two problems: 5985 5986 Without scaling (-S) the fax is now centered on the page size specified 5987 with -H and/or -W. Before, fax2ps was using an obscure and practially 5988 useless algorithm to allocate the image relative to Letter sized paper 5989 which sometime sled to useless whitespace on the paper, while at the 5990 same time cutting of the faxes printable area at the opposite border. 5991 5992 Second, scaling now preserves aspect ratio, which makes unusual faxes 5993 (in particular short ones) print properly. 5994 5995 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35 5996 5997 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by 5998 Bruce A. Mallett. See check message for detailed information 5999 on all the changes, including a faster encoder, fixes for level 6000 2 PostScript, and support for the imagemask operator. 6001 60022001-03-27 Frank Warmerdam <[email protected]> 6003 6004 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to 6005 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX. 6006 6007 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6008 60092001-03-16 Frank Warmerdam <[email protected]> 6010 6011 * tif_dirinfo.c: moved definition of copyright tag in field list. 6012 Apparently they have to be in sorted order by tag id. 6013 60142001-03-13 Frank Warmerdam <[email protected]> 6015 6016 * tif_getimage.c: Added support for 16bit minisblack/miniswhite 6017 images in RGBA interface. 6018 60192001-03-02 Frank Warmerdam <[email protected]> 6020 6021 * Added TIFFTAG_COPYRIGHT support. 6022 60232001-02-19 Frank Warmerdam <[email protected]> 6024 6025 * Brent Roman contributed updated tiffcp utility (and tiffcp.1) 6026 with support for extracting subimages with the ,n syntax, and also 6027 adding the -b bias removal flag. 6028 60292001-02-16 Frank Warmerdam <[email protected]> 6030 6031 * libtiff/libtiff.def: Brent Roman submitted new version adding 6032 serveral missing entry points. 6033 6034 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS. 6035 Some sort of weird VMS thing. 6036 6037 http://bugzilla.remotesensing.org/show_bug.cgi?id=31 6038 6039 * tif_luv.c/tiff.h/tiffio.h: 6040 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward 6041 ([email protected]). He writes: 6042 6043 1) I improved the gamut-mapping function in tif_luv.c for imaginary 6044 colors, because some images were being super-saturated on the input 6045 side and this resulted in some strange color shifts in the output. 6046 6047 2) I added a psuedotag in tiff.h to control random dithering during 6048 LogLuv encoding. This is turned off by default for 32-bit LogLuv and 6049 on for 24-bit LogLuv output. Dithering improves the average color 6050 accuracy over the image. 6051 6052 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in 6053 tiffio.h, to expose internal routines for converting between LogLuv and 6054 XYZ coordinates. This is helpful for writing more efficient, 6055 specialized conversion routines, especially for reading LogLuv files. 6056 6057 Changes applied with minor edits. 6058 60592001-01-23 Frank Warmerdam <[email protected]> 6060 6061 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember 6062 whether we are encoding or decoding. This is to ensure graceful 6063 recovery if TIFFClientOpen() discovers an attempt to open a compressed 6064 file for "r+" access, and subsequently close it, as it resets the 6065 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the 6066 compressor's concept of whether it is in encode or decode mode. 6067 60682001-01-08 Mike Welles <[email protected]> 6069 6070 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip 6071 60722001-01-07 Frank Warmerdam <[email protected]> 6073 6074 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet() 6075 as per bug report by Patrick Connor. 6076 60772000-12-28 Frank Warmerdam <[email protected]> 6078 6079 * Added RELEASE-DATE file to release file list. 6080 6081 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h. 6082 60832000-12-22 Mike Welles <[email protected]> 6084 * added link to CVS mirror from index.html 6085 6086 * updated html/internals.html to note that LZW compression is 6087 not supported by default. 6088 60892000-12-22 Frank Warmerdam <[email protected]> 6090 6091 * updated html/libtiff.html to not point at Niles' old JPL web site 6092 for the man pages, point at www.libtiff.org. 6093 60942000-12-21 Frank Warmerdam <[email protected]> 6095 6096 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by 6097 Leonard Rosenthol <[email protected]>. May interfere 6098 with correct building on older systems. If so, please let me know. 6099 61002000-12-19 Mike Welles <[email protected]> 6101 6102 * Took out LZW Encoding from tif_lzw.c 6103 6104 * Created HOWTO-RELEASE 6105 6106 * Created html/v3.5.6.html 6107 6108 * updated index.html 6109 61102000-12-01 Frank Warmerdam <[email protected]> 6111 6112 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h. 6113 Patches supplied by Frank Cringle <[email protected]> 6114 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif 6115 61162000-11-24 Frank Warmerdam <[email protected]> 6117 6118 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private 6119 target so that the private headers required by libgeotiff can be 6120 installed with the others. They are not installed by default. 6121 6122 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso 6123 targets so libtiff.so will be built with an explicit dependency 6124 on libm.so. 6125 6126 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to 6127 libtiff.so.3.5.5. 6128 6129 * libtiff/Makefile.in & configure: Remove all references to the ALPHA 6130 file, or ALPHA version logic. Added stuff about DIST_POINT in 6131 place of DIST_TYPE and the alpha release number stuff. 6132 61332000-11-22 Frank Warmerdam <[email protected]> 6134 6135 * I have applied a patch from Steffen Moeller <[email protected]> to 6136 the configure script so that it now accepts the --prefix, and 6137 --exec-prefix directives. 6138 61392000-11-13 Frank Warmerdam <warmerda@cs46980-c> 6140 6141 * I have made a variety of modifications in an effort to ensure the 6142 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE 6143 file which seems to be updated regularly. 6144 6145 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in 6146 version include file. 6147 o renamed version.h to tiffvers.h because we now have to install it 6148 with the public libtiff include files. 6149 o include tiffvers.h in tiffio.h. 6150 o updated tif_version.c to use tiffvers.h. 6151 o Updated Makefile.in accordingly. 6152 6153 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25 6154 I have updated the win32 detection rules in tiffcomp.h. 6155 61562000-10-20 Frank Warmerdam <warmerda@cs46980-c> 6157 6158 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which 6159 the strip/tile width and height aren't multiples of the sampling size. 6160 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20 6161 Some patches from Rick LaMont of Dot C Software. 6162 6163 * Modified tif_packbits.c encoder to avoid compressing more 6164 data than provided if rowsize doesn't factor into provided data 6165 (such as occurs for YCbCr). 6166 61672000-10-19 Frank Warmerdam <warmerda@cs46980-c> 6168 6169 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical 6170 roundup if rows_per_strip not a multiple of vertical sample size. 6171 61722000-10-16 Frank Warmerdam <warmerda@cs46980-c> 6173 6174 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory 6175 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6176 from [email protected]. 6177 6178 * Modified tif_packbits.c decoding to avoid overrunning the 6179 output buffer, and to issue a warning if data needs to be 6180 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6181 61822000-10-12 Frank Warmerdam <warmerda@cs46980-c> 6183 6184 * Modified tiff2bw to ensure portions add to 100%, and that 6185 white is properly recovered. 6186 6187 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15 6188 Patch c/o Stanislav Brabec <[email protected]> 6189 61902000-09-30 Frank Warmerdam <warmerda@cs46980-c> 6191 6192 * Modified TIFFClientOpen() to emit an error on an attempt to 6193 open a comperessed file for update (O_RDWR/r+) access. This is 6194 because the compressor/decompressor code gets very confused when 6195 the mode is O_RDWR, assuming this means writing only. See 6196 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13 6197 61982000-09-27 Frank Warmerdam <warmerda@cs46980-c> 6199 6200 * Added GNULDdso target an`d switched linux and freebsd to use it. 6201 62022000-09-26 Frank Warmerdam <warmerda@cs46980-c> 6203 6204 * Applied patch for 0x0000 sequences in tif_fax3.h's definition 6205 of EXPAND1D() as per bug 11 (from Roman). 6206 62072000-09-25 Frank Warmerdam <warmerda@cs46980-c> 6208 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve 6209 cygwin compatibility. 6210 6211 * Applied patch from Roman Shpount to tif_fax3.c. This seems to 6212 be a proper fix to the buffer sizing problem. See 6213 http://bugzilla.remotesensing.org/show_bug.cgi?id=11 6214 6215 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without 6216 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10 6217 Thanks to Nick Lamb <[email protected]> for reporting the 6218 bug and proving the patch. 6219 62202000-09-18 Frank Warmerdam <warmerda@cs46980-c> 6221 6222 * Fixed tif_jpeg.c so avoid destroying the decompressor before 6223 we are done access data thanks to bug report from: 6224 Michael Eckstein <[email protected]>. 6225 6226 * Reverted tif_flush change. 6227 62282000-09-14 Frank Warmerdam <warmerda@cs46980-c> 6229 6230 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an 6231 error when TIFF_BEENWRITING is not set. This ensures that the 6232 directory contents can still be flushed by TIFFFlush(). 6233 62342000-08-14 Frank Warmerdam <[email protected]> 6235 6236 * tif_open.c: Don't set MMAP for O_RDWR files. 6237 6238 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY 6239 so that files opened for update can be strip chopped too. 6240 6241 * tif_read.c: fixed up bug with files missing rowsperstrip and 6242 the strips per separation fix done a few weeks ago. 6243 62442000-07-17 Frank Warmerdam <warmerda@cs46980-c> 6245 6246 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and 6247 SAMPLEFORMAT_COMPLEXINT. 6248 62492000-07-13 Mike Welles <[email protected]> 6250 6251 * index.html, bugs.html: added bugzilla info. 6252 62532000-07-12 Frank Warmerdam <[email protected]> 6254 6255 * tif_read.c: fix subtle bug with determining the number of 6256 rows for strips that are the last strip in a separation but 6257 not the last strip of all in TIFFReadEncodedStrip(). 6258 6259 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by 6260 Peter Skarpetis <[email protected]> 6261 62622000-06-15 Frank Warmerdam <[email protected]> 6263 6264 * Modified tiffio.h logic with regard to including windows.h. It 6265 won't include it when building with __CYGWIN__. 6266 62672000-05-11 Frank Warmerdam <warmerda@cs46980-c> 6268 6269 * README: update to mention www.libtiff.org, don't list Sam's old 6270 email address. 6271 6272 * configure: Fixed DSO test for Linux as per patch from 6273 Jan Van Buggenhout <[email protected]>. 6274 62752000-04-21 Frank Warmerdam <[email protected]> 6276 6277 * libtiff/tif_dirread.c: Don't use estimate strip byte count for 6278 one tile/strip images with an offset, and byte count of zero. These 6279 could be "unpopulated" images. 6280 62812000-04-18 Frank Warmerdam <[email protected]> 6282 6283 * contrib/addtiffo: Added "averaging" resampling option. 6284 6285 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT. 6286 6287Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]> 6288 6289 * tools/Makefile.in: Modified to install properly on SGI. 6290 62912000-04-12 Mike Welles <[email protected]> 6292 * configure: Fixed stupid mistake in libc6 test on Linux 6293 62942000-04-04 Mike Welles <[email protected]> 6295 * tif_win32.c: Applied patch to fix overreads and ovverwrites 6296 caught by BoundsChecker. From Arvan Pritchard 6297 <[email protected]> (untested). 6298 6299 * tif_getimage.c: Applied patch to silence VC6 warnings. From 6300 Arvan Pritchard <[email protected]> 6301 6302 * tif_lzw.c: Applied patch to silence VC6 warnings. From 6303 Arvan Pritchard <[email protected]> 6304 63052000-03-28 Frank Warmerdam <warmerda@cs46980-c> 6306 6307 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss. 6308 63092000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release *** 6310 6311 * fax2ps: Fixed mixup of width and height in bounding box statement 6312 as per submission by Nalin Dahyabhai <[email protected]>. 6313 63142000-03-27 Mike Welles <[email protected]> 6315 6316 * fax2ps: Modified printruns to take uint32 instead of uint16. 6317 Patch courtesy of Bernt Herd <[email protected]> 6318 63192000-03-20 Mike Welles <[email protected]> 6320 6321 * configure: added test for libc6 for linux targets. Bug reported by 6322 Stanislav Brabec <[email protected]> 6323 6324 * Added 3.5 docs to html/Makefile.in. 6325 Thanks to Stanislav Brabec <[email protected]> 6326 6327 * configure: fixed bugs in sed scripts 6328 (applied sed script s:/@:s;@:;s:/s;;:;: to configure). 6329 fix submitted to Stanislav Brabec <[email protected]> 6330 6331 * tools/iptcutil was not in files list, and wasn't being 6332 added to tar archive. Updated Makefile.in. 6333 63342000-03-17 Frank Warmerdam <warmerda@cs46980-c> 6335 6336 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32 6337 conversion for the run arrays. 6338 63392000-03-03 Frank Warmerdam <[email protected]> 6340 6341 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of 6342 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c. 6343 63442000-03-02 Frank Warmerdam <[email protected]> 6345 6346 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c. 6347 6348 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger 6349 to avoid overruns encountered with frle_bug.tif. 6350 6351Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]> 6352 6353 * Fixed tools/tiffcmp so that stopondiff testing works. 6354 Patch care of Joseph Orost <[email protected]>. 6355 63562000-01-28 <warmerda@CS46980-B> 6357 6358 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is 6359 set to 1, and added default (off) setting in tiffconf.h. This 6360 should eventually be set by the configure script somehow. 6361 6362 The original work on all these 2-4GB changes was done by 6363 Peter Smith ([email protected]). 6364 6365 * Modified tif_win32.c to support 2-4GB seeks. 6366 6367 * tentatively changed toff_t to be unsigned instead of signed to 6368 facilitate support for 2-4GB files. 6369 6370 * Updated a variety of files to use toff_t. Fixed some mixups 6371 between toff_t and tsize_t. 6372 6373Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]> 6374 6375 * Largely reimplemented contrib/addtiffo to avoid temp files, 6376 updating the TIFF file in place. Fixed a few other bugs to. 6377 6378 * Set tif_rawdatasize to zero when freeing raw data buffer in 6379 TIFFWriteDirectory(). 6380 6381 * Enabled "REWRITE_HACK" in tif_write.c by default. 6382 6383 * Fix bug in tif_write.c when switching between reading one directory 6384 and writing to another. 6385 6386 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory() 6387 6388Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]> 6389 6390 * Added TIFFmemory(3t) functions to libtiff.def. 6391 6392Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]> 6393 6394 * Added libtiff/libtiff.def to TIFFILES distribution list. 6395 6396Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]> 6397 6398 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit). 6399 6400 * Altered descriptions in tools to reflect "by default" lzw not supported 6401 6402 * Updated index.html to note lzw compression kit. 6403 6404Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]> 6405 6406 * Added fax3sm_winnt.c to distribution list in Makefile.in. 6407 6408Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release *** 6409 6410 * Aadded Pixar tag support. Contributed by Phil Beffery <[email protected]> 6411 6412 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice 6413 when LZW compression invoked. 6414 6415 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions 6416 in tools to reflect removal of LZW compression 6417 6418Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]> 6419 6420 * Fixed bug that caused LZW (non) compression to segfault. Added 6421 warning about LZW compression removed being removed, and why. 6422 6423 * Added nostrip to install in tools/Makefile.in so that debugging 6424 symbols are kept. 6425 6426Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]> 6427 6428 * Added patch from Ivo Penzar <[email protected]>, 6429 supporting Adobe ZIP deflate. Untested. 6430 6431Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]> 6432 6433 * Made Packbits the default compression in tools/tiff2rgba.c instead 6434 of LZW. 6435 6436Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release *** 6437 6438 * Added tif_luv to contrib/djgpp/Makefile.lib. 6439 6440Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]> 6441 6442 * Added zip creation to relase makefile target 6443 6444 * Added html for TIFFWriteTile.3t man page. 6445 6446Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]> 6447 6448 * Added some changes to tif_write.c to support rewriting existing 6449 fixed sized tiles and strips. Code mods disabled by default, only 6450 enabled if REWRITE_HACK is defined for now. 6451 6452Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]> 6453 6454 * Added TIFFWriteTile.3t man page. 6455 6456Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]> 6457 6458 * Added notes on use of makefile.vc in build.html, and fixed 6459 email subscription address. 6460 6461199-11-28 Mike Welles <[email protected]> 6462 6463 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c 6464 6465 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c, 6466 from Bruce Carmeron <[email protected]> -- modifications of 6467 changes made by Frank (sun cc still complained on cast). 6468 6469 * Added tiffconf.h to install target per request from Bill 6470 Radcliffe <[email protected]>: "We need a way for ImageMagick to 6471 know features have been compiled into the TIFF library in order to 6472 handle things properly". 6473 6474Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]> 6475 6476 * fixed various VC++ warnings as suggested by Gilles Vollant 6477 <[email protected]>. 6478 6479Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]> 6480 6481 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to 6482 not imply applications are responsible for image data swapping. 6483 64841999-11-22 Mike Welles <[email protected]> 6485 * HTML-ized the man pages, added to html/man 6486 6487 * Removed LZW Compression to comply with Unisys patent extortion. 6488 64891999-09-29 Mike Welles <[email protected]> 6490 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c, 6491 From Ivo Penzar <[email protected]. 6492 6493 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle 6494 memory mapped files. <[email protected]> 6495 64961999-09-26 Mike Welles <[email protected]> *** 3.5.2 release *** 6497 * Corrected alpha versioning. 6498 6499 * Removed distinction between alpha and release targets in Makefile.in. 6500 6501 * added release.stamp target, which tags cvs tree, and updates 6502 "RELEASE-DATE" 6503 6504 * added releasediff target, which diffs tree with source as of 6505 date in "RELEASE-DATE" 6506 6507 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving 6508 away from alpha/non-alpha distinctions). 6509 6510 * updated html to reflect release 6511 65121999-09-23 <warmerda@CS46980-B> 6513 6514 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance. 6515 6516 * Added CYGWIN case in configure. 6517 6518Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]> 6519 6520 * Applied Francois Dagand's patch to handle fax decompression bug. 6521 (sizes >= 65536 were failing) 6522 6523Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]> 6524 6525 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested 6526 by Christopher Lawton <[email protected]> 6527 6528Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]> 6529 6530 * Added IRIX/gcc, and OSF/1 4.x support on behalf of 6531 Albert Chin-A-Young <[email protected]> 6532 6533 * Added TIFFReassignTagToIgnore() API on behalf of 6534 Bruce Cameron <[email protected]>. Man page still pending. 6535 6536Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]> 6537 6538 * Added test target in Makefile, test_pics.sh script and pics/*.rpt 6539 files to provide for a rudimentary testsuite. 6540 6541 * Added contrib/tags back from old distribution ... fixed up a bit. 6542 65431999-08-16 <warmerda@CS46980-B> 6544 6545 * Added simple makefile.vc makefiles for building with MS VC++ 6546 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give 6547 better solutions for some users. 6548 6549Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]> 6550 6551 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't 6552 put it in tools since part of it is in C++. 6553 65541999-08-16 Michael L. Welles <[email protected]> 6555 6556 * Updated html/index.html with anon CVS instructions. 6557 6558Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]> 6559 6560 * pre-remove so link before softlink in LINUXdso action in 6561 libtiff/Makefile.in to avoid failure on LINUXdso builds other than 6562 the first. 6563 6564 * Fixed problem with cvtcmap() in tif_getimage.c modifying the 6565 colormaps owned by the TIFF handle itself when trying to fixup wrong 6566 (eight bit) colormaps. Corrected by maintaining a private copy of 6567 the colormap. 6568 6569 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in 6570 tif_getimage.c. 6571 6572 * CVS Repository placed at remotesensing.org. ChangeLog added. 6573