Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/ChangeLog

raw
1 2024-09-11 Even Rouault <[email protected]>
2
3 libtiff v4.7.0rc2 preparation
4
5 2024-09-11 Even Rouault <[email protected]>
6
7 configure.ac: make a provision to look for up to python 3.16 ...
8 hopefully we'll have ditched autoconf support at that point...
9
10 Fix test dependency on tiff2rgba-32BPP that breaks 'make check -jX'
11
12 test/tiff2ps*.sh scripts: try to use POSIX only diff flags.
13
14 2024-09-11 Even Rouault <[email protected]>
15
16 Merge branch 'automake_doc_fix' into 'master'
17 doc/Makefile.am: make sure that 'doc-html' and 'doc-man' targets have dependencies to avoid them to be rebuilt by successive make
18
19 See merge request libtiff/libtiff!657
20
21 2024-09-10 Even Rouault <[email protected]>
22
23 Merge branch '4_7_0_rst_rgb2ycbcr_thumbnail' into 'master'
24 v4.7.0.rst: clarify that rgb2ycbcr and thumbnail are not installed
25
26 See merge request libtiff/libtiff!659
27
28 2024-09-10 Even Rouault <[email protected]>
29
30 v4.7.0.rst: clarify that rgb2ycbcr and thumbnail are not installed.
31
32 2024-09-08 Even Rouault <[email protected]>
33
34 doc/Makefile.am: make sure that 'doc-html' and 'doc-man' targets have dependencies to avoid them to be rebuilt by successive make
35
36 doc/Makefile.am: move rst_sources and EXTRA_DIST variables on top of file
37
38 2024-09-07 Even Rouault <[email protected]>
39
40 Merge branch 'index_rst_formatting_issue' into 'master'
41 index.rst: fix formatting issue
42
43 See merge request libtiff/libtiff!656
44
45 2024-09-07 Even Rouault <[email protected]>
46
47 index.rst: fix formatting issue.
48
49 2024-09-07 Even Rouault <[email protected]>
50
51 Merge branch 'prepare_release_4_7_0' into 'master'
52 Prepare release 4.7.0
53
54 See merge request libtiff/libtiff!654
55
56 2024-09-07 Even Rouault <[email protected]>
57
58 Doc: remove 'Master' terminlogy.
59
60 v4.7.0.rst: remove mention about autoconf-archive since that change has been reverted
61
62 Revert "autotools: allow pulling in updated macros from autoconf-archive"
63 This reverts commit c820d16c30c27b3be6c3d10834b6d75607ae9d77.
64
65 Revert "HOWTO-RELEASE: document the necessary dependencies for producing dist tarballs"
66 This reverts commit f1a91e42b3f23641cb5559fb60e1d73d201275eb.
67
68 Revert "configure.ac: fix HAVE_OPENGL determination due to recent changes"
69 This reverts commit c370e67f7fd9320674544113218b7fbca4f65c2b.
70
71 configure.ac: fix HAVE_OPENGL determination due to recent changes.
72
73 Update version numbers for 4.7.0.
74
75 Update ChangeLog and create release notes for v4.7.0.
76
77 2024-09-06 Even Rouault <[email protected]>
78
79 typo fixes.
80
81 2024-09-06 Even Rouault <[email protected]>
82
83 Merge branch 'autoconf-archive' into 'master'
84 autotools: allow pulling in updated macros from autoconf-archive
85
86 See merge request libtiff/libtiff!645
87
88 2024-09-06 Even Rouault <[email protected]>
89
90 Merge branch 'remove_last_usage_of_get_field_type' into 'master'
91 Change last usage of get_field_type at TIFFWriteDirectorySec() to set_field_type
92
93 See merge request libtiff/libtiff!653
94
95 2024-09-06 Even Rouault <[email protected]>
96
97 libtiff v4.7.0rc1 preparation
98
99 2024-09-06 Even Rouault <[email protected]>
100
101 Merge branch 'autoconf-archive' into 'master'
102 autotools: allow pulling in updated macros from autoconf-archive
103
104 See merge request libtiff/libtiff!645
105
106 2024-09-06 Even Rouault <[email protected]>
107
108 Merge branch 'remove_last_usage_of_get_field_type' into 'master'
109 Change last usage of get_field_type at TIFFWriteDirectorySec() to set_field_type
110
111 See merge request libtiff/libtiff!653
112
113 2024-09-05 Su_Laus <[email protected]>
114
115 Change last usage of get_field_type at TIFFWriteDirectorySec() for codec related tags to set_field_type.
116
117 2024-09-03 Eli Schwartz <[email protected]>
118
119 HOWTO-RELEASE: document the necessary dependencies for producing dist tarballs
120
121 autogen.sh: actually return failure if any step failed.
122 Previously, it exited with failure if and only if the wget calls failed.
123 But it is possible for any command to fail, e.g. if the autotools are
124 broken, misconfigured, or missing dependencies.
125
126 2024-09-03 Eli Schwartz <[email protected]>
127
128 autotools: allow pulling in updated macros from autoconf-archive.
129 Instead of inlining a few macros in acinclude.m4 and forgetting about
130 them, teach aclocal to install the macros to m4/ when autoreconf is run.
131 They are no longer tracked in one big file, nor tracked at all in git,
132 but producing dist tarballs will bundle them up just like `configure`
133 and `Makefile.in`.
134
135 Note: previous behavior of AX_CHECK_GL* was to simply ignore support and
136 proceed, if it was asked for and not found. The updated macros expect to
137 opt into this by specifying action-if-not-found.
138
139 VL_* is obsolete. Upgrade to AX_CFLAGS_WARN_ALL.
140
141 2024-09-03 Even Rouault <[email protected]>
142
143 Merge branch 'XZY2RGB' into 'master'
144 Fixes #644 Index comparison as size_t to avoid overflow in TIFFXYZToRGB
145
146 Closes #644
147
148 See merge request libtiff/libtiff!649
149
150 2024-09-03 Nicolas Badoux <[email protected]>
151
152 Fixes #644 Index comparison as size_t to avoid overflow in TIFFXYZToRGB.
153
154 2024-09-01 Even Rouault <[email protected]>
155
156 Merge branch 'ci_werror' into 'master'
157 CI: build with -Wall -Wextra -Werror
158
159 See merge request libtiff/libtiff!652
160
161 2024-08-30 Even Rouault <[email protected]>
162
163 configure.ac: avoid -Werror passed to CFLAGS to interfere with feature detection
164
165 CI: build with -Wall -Wextra -Werror.
166
167 2024-08-30 Roger Leigh <[email protected]>
168
169 Merge branch 'ci-old-update' into 'master'
170 ci: Update "old" build jobs to use Ubuntu 22.04
171
172 See merge request libtiff/libtiff!651
173
174 2024-08-30 Roger Leigh <[email protected]>
175
176 ci: Update "old" build jobs to use Ubuntu 22.04.
177
178 2024-08-30 Even Rouault <[email protected]>
179
180 Merge branch 'ci-ubuntu-22.04' into 'master'
181 ci: Update to use Ubuntu 24.04 CI images
182
183 See merge request libtiff/libtiff!650
184
185 2024-08-30 Roger Leigh <[email protected]>
186
187 ci: Update to use Ubuntu 24.04 CI images.
188
189 2024-08-28 Even Rouault <[email protected]>
190
191 Merge branch 'uv_encode' into 'master'
192 Fix #645 by using unsigned int for variable indexing an array in uv_decode() and uv_encode()
193
194 Closes #645
195
196 See merge request libtiff/libtiff!648
197
198 2024-08-28 Nicolas Badoux <[email protected]>
199
200 Fix #645 by using unsigned int for variable indexing an array in uv_decode() and uv_encode()
201 Change `vi` to unsigned int in `uv_decode()` and `uv_encode()` to ensure that upper bound `UV_NVS` cannot be satisfied by a negative value which will overflow when cast to an unsigned value at array access time. This fixes issue #645 where a segmentation fault was caused.
202
203 2024-08-27 Even Rouault <[email protected]>
204
205 Merge branch 'fix_643_solitary_CustomDirectory_read' into 'master'
206 Fix #643 by initializing pointer to TIFFSetField() and TIFFGetField() before TIFFReadGPSDirectory
207
208 Closes #643
209
210 See merge request libtiff/libtiff!647
211
212 2024-08-27 Su Laus <[email protected]>
213
214 Fix #643 by initializing pointer to TIFFSetField() and TIFFGetField() before TIFFReadGPSDirectory
215 Initialize pointer to TIFFSetField() and TIFFGetField() (i.e. tif-\>tif_tagmethods.vsetfield and tif-\>tif_tagmethods.vgetfield) even if the file is opened with "h" option. This fixes issue #643 where a segmentation fault was caused.
216
217 2024-08-25 Even Rouault <[email protected]>
218
219 Merge branch 'tiff_strip' into 'master'
220 Add non-zero check before division in TIFFComputeStrip
221
222 See merge request libtiff/libtiff!646
223
224 2024-08-23 Nicolas Badoux <[email protected]>
225
226 Add non-zero check before division in TIFFComputeStrip.
227
228 2024-08-15 Even Rouault <[email protected]>
229
230 Merge branch 'fix_564' into 'master'
231 TIFFScanlineSize64(): revert merge request #564
232
233 See merge request libtiff/libtiff!644
234
235 2024-08-15 Even Rouault <[email protected]>
236
237 TIFFScanlineSize64(): revert merge request #564.
238 https://gitlab.com/libtiff/libtiff/-/merge_requests/564 broke decoding of: "tools/tiffcp -c none in.tif out.tif"
239 with [in.tif](/uploads/0475a88cf6e66652b030a0a3a0c47313/in.tif)
240 leading to shift each line of the target image by one extra pixel at each line.
241 Unfortunately, this cancels what https://gitlab.com/libtiff/libtiff/-/merge_requests/564 tried to fix. I'll let @caolanm propose an alternative fix in a follow-up merge request
242
243 2024-08-15 Even Rouault <[email protected]>
244
245 Merge branch 'coverity_fix_from_MR_634' into 'master'
246 Fix some Coverity Scan issues introduced by MR 634.
247
248 See merge request libtiff/libtiff!643
249
250 2024-08-14 Su_Laus <[email protected]>
251
252 Fix some Coverity Scan issues introduced by MR 634.
253
254 2024-08-11 Even Rouault <[email protected]>
255
256 Merge branch 'lerc-pkgconfig' into 'master'
257 libtiff-4.pc: Fix `Requires.private` missing `Lerc`.
258
259 See merge request libtiff/libtiff!633
260
261 2024-08-11 Even Rouault <[email protected]>
262
263 Merge branch 'manpage_update_directory_incrementing' into 'master'
264 Amend manpages for changes in current directory index behaviour.
265
266 See merge request libtiff/libtiff!639
267
268 2024-08-11 Su Laus <[email protected]>
269
270 Amend manpages for changes in current directory index behaviour.
271
272 2024-08-11 Even Rouault <[email protected]>
273
274 Merge branch 'tiffcrop_coverity_20240723' into 'master'
275 Attempt to address tiffcrop Coverity scan issues 1605444, 1605445, and 1605449.
276
277 See merge request libtiff/libtiff!642
278
279 2024-08-11 Lee Howard <[email protected]>
280
281 Attempt to address tiffcrop Coverity scan issues 1605444, 1605445, and 1605449.
282
283 2024-08-11 Even Rouault <[email protected]>
284
285 Merge branch 'fix_CurDir_wrong_incrementing' into 'master'
286 Fix cases where tif_curdir is set incorrectly
287
288 See merge request libtiff/libtiff!634
289
290 2024-08-11 Su Laus <[email protected]>
291
292 Fix cases where tif_curdir is set incorrectly.
293 Fix cases where the current directory number (tif_curdir) is set inconsistently or incorrectly, depending on the previous history.
294
295 See additional checks and tests in test/test_directory.c of this MR for intended setting of tif_curdir (i.e. TIFFCurrentDirectory(tif)).
296
297 2024-07-12 Even Rouault <[email protected]>
298
299 Merge branch 'coverity_fixes_tiff2pdf_#2' into 'master'
300 Try to fix additional Coverity issues in tiff2pdf
301
302 See merge request libtiff/libtiff!641
303
304 2024-07-12 Su Laus <[email protected]>
305
306 Try to fix additional Coverity issues in tiff2pdf.
307
308 2024-07-10 Even Rouault <[email protected]>
309
310 Merge branch 'fix_autoconf_diff_parameter_crlf' into 'master'
311 Add parameter for "diff" used in autoconf test scripts to ignore LF and CRLF differences.
312
313 See merge request libtiff/libtiff!640
314
315 2024-07-09 Even Rouault <[email protected]>
316
317 Merge branch 'coverity_fixes_tiff2pdf' into 'master'
318 Fix Coverity issues in tiff2pdf.
319
320 See merge request libtiff/libtiff!638
321
322 2024-07-09 Su Laus <[email protected]>
323
324 Fix Coverity issues in tiff2pdf.
325
326 2024-06-29 Su_Laus <[email protected]>
327
328 Add parameter for "diff" used in autoconf test scripts to ignore LF and CRLF differences.
329
330 2024-06-28 Even Rouault <[email protected]>
331
332 Merge branch 'coverity_fixes_test_thumbnail' into 'master'
333 Coverity Scan fixes in thumbnail.c and custom_dir_EXIF_231.c
334
335 See merge request libtiff/libtiff!637
336
337 2024-06-28 Su Laus <[email protected]>
338
339 Coverity Scan fixes in thumbnail.c and custom_dir_EXIF_231.c.
340
341 2024-06-25 Even Rouault <[email protected]>
342
343 Merge branch 'coverity_fixes' into 'master'
344 Try to silence new Coverity Scan false positives
345
346 See merge request libtiff/libtiff!636
347
348 2024-06-24 Even Rouault <[email protected]>
349
350 Try to silence new Coverity Scan false positives.
351 There are other warnings in tools/ that I'll let others deal with.
352
353 2024-06-24 Even Rouault <[email protected]>
354
355 Merge branch 'fix/make' into 'master'
356 fix: error when running make clean
357
358 Closes #630
359
360 See merge request libtiff/libtiff!635
361
362 2024-06-24 Kévin Dunglas <[email protected]>
363
364 fix: error when running make clean.
365
366 2024-06-15 Niklas Hambüchen <[email protected]>
367
368 libtiff-4.pc: Fix `Requires.private` missing `Lerc`.
369 It provides a `.pc` file starting from version 4 in:
370
371 https://github.com/Esri/lerc/blob/8d6e8251544bbe1379feb0fe0a0934e43ca1a6cd/Lerc.pc.in
372
373 libtiff's CMake build system already has support for this,
374 adding `Lerc` to `Requires.private` if Lerc is >= 4.
375
376 In contrast to the CMake build system, autoconf has no good way
377 to check for checking the Lerc version, we do it unconditionally
378 there.
379
380 2024-06-13 Even Rouault <[email protected]>
381
382 Merge branch 'rfc02_text__restore_tools' into 'master'
383 Text for RFC 2: Restoring needed libtiff tools
384
385 See merge request libtiff/libtiff!581
386
387 2024-06-13 Even Rouault <[email protected]>
388
389 Merge branch 'add_some_conversion_test_to_cmake' into 'master'
390 Port some basic sanity checks from autoconf to cmake.
391
392 See merge request libtiff/libtiff!630
393
394 2024-06-10 Even Rouault <[email protected]>
395
396 Merge branch 'tiffcp_coverity_check_malloc_return' into 'master'
397 tiffcp: Add check for limitMalloc return to fix Coverity CID 1603334
398
399 See merge request libtiff/libtiff!632
400
401 2024-06-10 Su_Laus <[email protected]>
402
403 tiffcp add check for limitMalloc return to fix Coverity CID 1603334.
404
405 2024-06-07 Even Rouault <[email protected]>
406
407 Merge branch 'aim-nara-master-patch-67955' into 'master'
408 Remove unnecessary `2` in tiffcmp name
409
410 See merge request libtiff/libtiff!631
411
412 2024-06-07 AIM | Nara <[email protected]>
413
414 Remove unnecessary `2` in tiffcmp name.
415
416 2024-05-30 Su_Laus <[email protected]>
417
418 Port some basic sanity checks from autoconf to cmake. Checks are for tiffcp and tiffcrop RGB->YCbCr JPEG conversions (see MR !611 / 'tiffcp_tiffcrop_RGB_YCbCr_tests')
419
420 2024-05-29 Even Rouault <[email protected]>
421
422 Merge branch 'ofz65182' into 'master'
423 an issue seen in putcontig8bitYCbCr22tile
424
425 See merge request libtiff/libtiff!564
426
427 2024-05-29 Caolán McNamara <[email protected]>
428
429 TIFFScanlineSize64(): fix computation in non-JPEG YCbCr case (#564)
430 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65182
431
432 2024-05-29 Even Rouault <[email protected]>
433
434 Merge branch 'fix_375' into 'master'
435 TIFFRead[Scanline/EncodedStrip/EncodeTile]: 0-initialize output buffer if setupdecode fails ; most codecs: zero-initialize (not-yet-written parts of) output buffer if failure
436
437 Closes #375
438
439 See merge request libtiff/libtiff!628
440
441 2024-05-29 Even Rouault <[email protected]>
442
443 Merge branch 'tiff2pdf-planar' into 'master'
444 Inconsistent PLANARCONFIG value for the input and output TIFF in tiff2pdf.c
445
446 See merge request libtiff/libtiff!629
447
448 2024-05-29 Timothy Lyanguzov <[email protected]>
449
450 Inconsistent PLANARCONFIG value for the input and output TIFF in tiff2pdf.c
451 Fixed a bug in tiff2pdf.c whereas the PLANARCONFIG for the output TIFF is set to a fixed value of PLANARCONFIG_CONTIG as opposed to match the value of the input TIFF.
452 This mainly manifest in the heap-buffer-overread due to the difference of sizes in the buffers (between input and output) allocated and read to the size of output buffer.
453
454 Reimplementation of !92
455
456 2024-05-27 Even Rouault <[email protected]>
457
458 tif_lzma/tif_lzw: add code comments.
459
460 2024-05-26 Even Rouault <[email protected]>
461
462 ZSTDDecode: zero-initialize (not-yet-written parts of) output buffer if failure
463
464 PixarLogDecode: zero-initialize output buffer if failure.
465
466 PackBitsDecode: zero-initialize (not-yet-written parts of) output buffer if failure
467
468 JPEGDecode: zero-initialize (not-yet-written parts of) output buffer if failure
469
470 LERCDecode: zero-initialize output buffer if failure.
471
472 LZMADecode: zero-initialize (not-yet-written parts of) output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occured
473
474 TWebPDecode: zero-initialize output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occured
475
476 ThunderDecode: zero-initialize (not-yet-written parts of) output buffer if failure
477
478 OJPEGDecode: zero-initialize output buffer if failure.
479
480 JBIGDecode: zero-initialize (not-yet-written parts of) output buffer if failure
481
482 ZIPDecode: zero-initialize (not-yet-written parts of) output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occured
483
484 LZWDecode: zero-initialize (not-yet-written parts of) output buffer if failure
485
486 TIFFRead[Scanline/EncodedStrip/EncodeTile]: 0-initialize output buffer if setupdecode fails
487 Fixes #375
488
489 2024-05-25 Su_Laus <[email protected]>
490
491 Text for RFC 2: Restoring needed libtiff tools - file added to doc/Makefile.am and rebased.
492
493 Text for RFC 2: Restoring needed libtiff tools - approved with voting history updated.
494
495 Text for RFC 2: Restoring needed libtiff tools - further amended.
496
497 Text for RFC 2: Restoring needed libtiff tools - amended.
498
499 Text for RFC 2: Restoring needed libtiff tools.
500
501 2024-05-23 Even Rouault <[email protected]>
502
503 Merge branch 'tiff2pdf_539' into 'master'
504 fix tiff2pdf issue #539; however, there certainly remain many JPEG-compressed...
505
506 See merge request libtiff/libtiff!597
507
508 2024-05-23 Lee Howard <[email protected]>
509
510 tiff2pdf: fix issue with JPEG restart-interval marker when converting from JPEG-compressed files
511 Fixes #539
512
513 however, there certainly remain many JPEG-compressed TIFFs which tiff2pdf will fumble without disabling data passthrough (using the -n option) - I supect that it has to do with the JPEG tables being removed from the JPEG and placed into the TIFF headers - as tiff2pdf would need to put these back into the JPEG instead of just passing the data through to the PDF
514
515 2024-05-22 Even Rouault <[email protected]>
516
517 Merge branch 'test_fix' into 'master'
518 test/Makefile.am: make sure that all test images are bundled by make dist even...
519
520 See merge request libtiff/libtiff!626
521
522 2024-05-22 Even Rouault <[email protected]>
523
524 Merge branch 'add_missing_rst_files' into 'master'
525 doc/Makefile.am: add rfcs/ files in rst_sources variable
526
527 See merge request libtiff/libtiff!624
528
529 2024-05-22 Even Rouault <[email protected]>
530
531 test/Makefile.am: make sure that all test images are bundled by make dist even if JPEG or JBIG is not available
532
533 2024-05-22 Even Rouault <[email protected]>
534
535 Merge branch 'timothyl/32bpp-cmake-test' into 'master'
536 Add new test to CMake
537
538 See merge request libtiff/libtiff!625
539
540 2024-05-22 Timothy Lyanguzov <[email protected]>
541
542 Add new test to CMake.
543 See previous merge request libtiff/libtiff!611
544
545 2024-05-22 Even Rouault <[email protected]>
546
547 doc/Makefile.am: add rfcs/ files in rst_sources variable.
548
549 2024-05-22 Even Rouault <[email protected]>
550
551 Merge branch 'tiffcp_tiffcrop_RGB_YCbCr_tests' into 'master'
552 Add some basic sanity checks for tiffcp and tiffcrop RGB->YCbCr JPEG conversions.
553
554 See merge request libtiff/libtiff!611
555
556 2024-05-22 Lee Howard <[email protected]>
557
558 Add some basic sanity checks for tiffcp and tiffcrop RGB->YCbCr JPEG conversions.
559
560 2024-05-21 Even Rouault <[email protected]>
561
562 Merge branch 'tiffcp_LZW_JBIG_test' into 'master'
563 Add basic sanity check for tiffcp LZW->JBIG conversion.
564
565 See merge request libtiff/libtiff!612
566
567 2024-05-21 Even Rouault <[email protected]>
568
569 Merge branch 'tiffcrop_masonwilde_fix' into 'master'
570 Apply "Fix heap-buffer-overflow in function extractImageSection"
571
572 See merge request libtiff/libtiff!613
573
574 2024-05-21 Lee Howard <[email protected]>
575
576 tiffcrop: Apply "Fix heap-buffer-overflow in function extractImageSection"
577 https://gitlab.com/masonwilde/libtiff/-/commit/848434a81c443f59ec90d41218eba6e48a450a11
578
579 authored by zhailiangliang commit 848434a81c443f59ec90d41218eba6e48a450a11
580
581 The overflow conditions were previously addressed, but this provides additional error messages.
582
583 2024-05-21 Even Rouault <[email protected]>
584
585 Merge branch 'fix_183_alternative' into 'master'
586 OJPEG: reset subsampling_convert_state =0 in OJPEGPreDecode (fixes tiff2pdf issue #183)
587
588 See merge request libtiff/libtiff!621
589
590 2024-05-21 Even Rouault <[email protected]>
591
592 Merge branch 'thunder-fix' into 'master'
593 A fix for Thunder RLE
594
595 See merge request libtiff/libtiff!623
596
597 2024-05-21 Timothy Lyanguzov <[email protected]>
598
599 A fix for Thunder RLE.
600 The commit https://gitlab.com/robinwatts/libtiff/-/commit/be0519ca3d222c19008fe160873f3b5c28e6b36b states:
601
602 Thunder RLE can fail to decode last run. Bug seen with GhostPDL. Decode of test tif file gives valgrind errors due to the "thunder decode" failing to extract the final run of compressed pixels.
603
604 The logic in the decoder, presumably intended to spot overruns of data, is incorrect in that runs that end at the end of a row (npixels == maxpixels) will not be decoded.
605
606 Fix this by limiting 'n', the number of pixels to copy. Note that npixels is updated by the 'unlimited' value to ensure the error reporting at the end of the loop still works.
607
608 2024-05-18 Even Rouault <[email protected]>
609
610 Merge branch 'tiff2ps_fax2tiff_476' into 'master'
611 fix fax2ps and fax2tiff bugs #476
612
613 See merge request libtiff/libtiff!598
614
615 2024-05-18 Lee Howard <[email protected]>
616
617 Fix fax2ps and fax2tiff memory leaks.
618 Fixes #476
619
620 2024-05-17 Even Rouault <[email protected]>
621
622 Merge branch 'tiff2rgba_469' into 'master'
623 fix tiff2rgba issue #469
624
625 See merge request libtiff/libtiff!600
626
627 2024-05-17 Even Rouault <[email protected]>
628
629 Merge branch 'formatting-fixes' into 'master'
630 Formatting fixes
631
632 See merge request libtiff/libtiff!622
633
634 2024-05-17 Even Rouault <[email protected]>
635
636 Formatting fixes.
637
638 2024-05-17 Even Rouault <[email protected]>
639
640 Merge branch 'coverity_fixes' into 'master'
641 3 Coverity Scan fixes in tools & contrib
642
643 See merge request libtiff/libtiff!592
644
645 2024-05-17 Even Rouault <[email protected]>
646
647 Merge branch 'tiff2pdf_596' into 'master'
648 tiff2pdf issue #596
649
650 See merge request libtiff/libtiff!594
651
652 2024-05-17 Even Rouault <[email protected]>
653
654 Merge branch 'tiffdither_473' into 'master'
655 fix tiffdither bug #473
656
657 See merge request libtiff/libtiff!599
658
659 2024-05-17 Even Rouault <[email protected]>
660
661 Merge branch 'fax2tiff_468' into 'master'
662 fix fax2tiff issue #468
663
664 See merge request libtiff/libtiff!601
665
666 2024-05-17 Even Rouault <[email protected]>
667
668 Merge branch 'tiff2rgba_background' into 'master'
669 Add background gradient option for tiff2rgba alpha compositing.
670
671 See merge request libtiff/libtiff!610
672
673 2024-05-17 Lee Howard <[email protected]>
674
675 Add background gradient option for tiff2rgba alpha compositing.
676
677 2024-05-17 Even Rouault <[email protected]>
678
679 Merge branch 'tiff2pdf_253' into 'master'
680 Fix tiff2pdf issue #253 - red and blue were being swapped for RGBA decoding
681
682 See merge request libtiff/libtiff!603
683
684 2024-05-17 Even Rouault <[email protected]>
685
686 Merge branch 'fax2tiff_249' into 'master'
687 Fix fax2tiff issue #249, unreasonable width input
688
689 See merge request libtiff/libtiff!604
690
691 2024-05-17 Even Rouault <[email protected]>
692
693 Merge branch 'tiffcp_tiffcrop_228' into 'master'
694 correct tiffcp and tiffcrop issue #228
695
696 See merge request libtiff/libtiff!605
697
698 2024-05-17 Even Rouault <[email protected]>
699
700 OJPEG: reset subsampling_convert_state =0 in OJPEGPreDecode (fixes tiff2pdf issue #183)
701
702 2024-05-17 Even Rouault <[email protected]>
703
704 Merge branch 'fax2tiff_191' into 'master'
705 Fix fax2tiff issue #191 - EOFB interpretation
706
707 See merge request libtiff/libtiff!606
708
709 2024-05-17 Even Rouault <[email protected]>
710
711 Merge branch 'tiff2pdf_98' into 'master'
712 Fix tiff2pdf documentation issue #98
713
714 See merge request libtiff/libtiff!608
715
716 2024-05-17 Even Rouault <[email protected]>
717
718 Merge branch 'tiffgt_warning' into 'master'
719 Avoids a warning regarding fallthrough.
720
721 See merge request libtiff/libtiff!609
722
723 2024-05-17 Even Rouault <[email protected]>
724
725 Merge branch 'tiffcrop_542_550_552' into 'master'
726 tiffcrop: fixes #542, #550, #552 (buffer overflows, use after free)
727
728 See merge request libtiff/libtiff!595
729
730 2024-05-17 Lee Howard <[email protected]>
731
732 tiffcrop: fixes #542, #550, #552 (buffer overflows, use after free)
733
734 2024-05-17 Even Rouault <[email protected]>
735
736 Merge branch 'Fedora_am_version' into 'master'
737 libtiff-am-version.patch from Fedora stating:
738
739 See merge request libtiff/libtiff!617
740
741 2024-05-17 Even Rouault <[email protected]>
742
743 Merge branch 'formatting-fixes' into 'master'
744 Code formatting fixes
745
746 See merge request libtiff/libtiff!620
747
748 2024-05-17 Even Rouault <[email protected]>
749
750 Code formatting fixes.
751 Result of running ``pre-commit run --all``
752
753 2024-05-17 Even Rouault <[email protected]>
754
755 Merge branch 'sphinx_quotes_dashes' into 'master'
756 Don't let Sphinx inconsistently alter quotes and dashes in rst files.
757
758 See merge request libtiff/libtiff!615
759
760 2024-05-17 Even Rouault <[email protected]>
761
762 Merge branch 'tiffmedian_599' into 'master'
763 tiffmedian issue #599
764
765 See merge request libtiff/libtiff!593
766
767 2024-05-17 Lee Howard <[email protected]>
768
769 tiffmedian: fix memory leaks.
770 Closes #599
771
772 2024-05-17 Even Rouault <[email protected]>
773
774 Merge branch 'more_spelling_corrections' into 'master'
775 Typo fixes following...
776
777 See merge request libtiff/libtiff!618
778
779 2024-05-17 Lee Howard <[email protected]>
780
781 Typo fixes following https://gitlab.com/libtiff/libtiff/-/commit/c95c77350820e19c8e273925bc97259727d19695
782
783 2024-05-16 Lee Howard <[email protected]>
784
785 libtiff-am-version.patch from Fedora stating: Back off the minimum required automake version to 1.11. There isn't anything in libtiff currently that actually requires 1.12, and changing this allows the package to be built on pre-F18 machines for easier testing.
786
787 Don't let Sphinx inconsistently alter quotes and dashes in rst files. Author: Laszlo Boszormenyi (GCS) <[email protected]> Bug-Debian: https://bugs.debian.org/1028456
788
789 Add basic sanity check for tiffcp LZW->JBIG conversion.
790
791 Avoids a warning regarding fallthrough.
792
793 Fix tiff2pdf documentation issue #98.
794
795 Fix fax2tiff issue #191 - EOFB interpretation.
796
797 Update tiffcp.c.
798
799 Correct tiffcrop output of RGB JPEG and tiffcp/tiffcrop documentation - issue #228
800
801 Fix tiffcp and tiffcrop issue 228 - step 1.
802
803 Fix fax2tiff issue #249, unreasonable width input.
804
805 Fix tiff2pdf issue #253 - red and blue were being swapped for RGBA decoding
806
807 fix fax2tiff issue #468.
808
809 fix tiff2rgba issue #469.
810
811 fix tiffdither bug #473.
812
813 tiff2pdf issue #596.
814
815 2024-05-16 Even Rouault <[email protected]>
816
817 contrib/addtiffo: validate return of TIFFWriteEncodedXXXX() calls (CID 1024680)
818
819 tiffdump.c: fix wrong printf formattre in error message (CID 1472932)
820
821 tiffset.c: avoid false positive Coverity Scan warning on 64-bit builds (CID 1518997)
822
823 2024-05-16 Even Rouault <[email protected]>
824
825 Merge branch 'master' into 'master'
826 Fix some Coverity warnings.
827
828 See merge request libtiff/libtiff!590
829
830 2024-05-16 Lee Howard <[email protected]>
831
832 Fix some Coverity warnings.
833
834 2024-05-13 Even Rouault <[email protected]>
835
836 Merge branch 'revert_tools_removement' into 'master'
837 Restore tools from archive and unsupported and tiffcp -i option with revert.
838
839 See merge request libtiff/libtiff!589
840
841 2024-05-11 Su_Laus <[email protected]>
842
843 Apply some newer changes to the reverted code and prepare note for 4.7.0.
844
845 Revert "Remove -i option (ignore errors) from tiffcp, because almost all fuzzer issues were consequential errors from ignored errors because of the "-i" option."
846 This reverts commit 280a568ae887c27a422a5da862398ffdbcd9b84d.
847
848 2024-05-11 Su_Laus <[email protected]>
849
850 Revert "Move most TIFF tools to archive and keep some as unsupported (see #580)."
851 This reverts commit eab89a627f0a65e9a1a47c4b30b4802c80b1ac45.
852
853 # Conflicts:
854 # tools/unsupported/CMakeLists.txt
855 # tools/unsupported/tif_tools-unsupported_versioninfo.rc
856
857 2024-05-10 Even Rouault <[email protected]>
858
859 Merge branch 'calloc-transposed-args' into 'master'
860 Fix -Werror=calloc-transposed-args with gcc 14
861
862 See merge request libtiff/libtiff!588
863
864 2024-05-10 Even Rouault <[email protected]>
865
866 Fix -Werror=calloc-transposed-args with gcc 14.
867
868 2024-05-09 Even Rouault <[email protected]>
869
870 Merge branch 'EvaluateIFDdatasizeReading_ossfuzz_68327' into 'master'
871 EvaluateIFDdatasizeReading(): avoid unsigned integer overflow (master only)
872
873 See merge request libtiff/libtiff!586
874
875 2024-04-27 Even Rouault <[email protected]>
876
877 EvaluateIFDdatasizeReading(): avoid unsigned integer overflow (master only)
878 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68327
879
880 2024-04-25 Even Rouault <[email protected]>
881
882 Merge branch 'ci-appveyor-cygwin-upgrade' into 'master'
883 appveyor: Upgrade cygwin packages
884
885 See merge request libtiff/libtiff!585
886
887 2024-04-25 Roger Leigh <[email protected]>
888
889 appveyor: Upgrade cygwin packages.
890
891 2024-04-25 Even Rouault <[email protected]>
892
893 Merge branch 'libjpeg_turbo_3_0' into 'master'
894 Change messages/comments refering libjpeg-turbo 2.2 to 3.0
895
896 See merge request libtiff/libtiff!584
897
898 2024-04-24 Even Rouault <[email protected]>
899
900 Change messages/comments refering libjpeg-turbo 2.2 to 3.0.
901 libjpeg-turbo 2.2 was actually released as 3.0. Reflect that
902
903 2024-04-22 Even Rouault <[email protected]>
904
905 Merge branch 'EvaluateIFDdatasizeReading_unsigned_int_overflow_fix' into 'master'
906 EvaluateIFDdatasizeReading(): avoid potential unsigned integer overflow on corrupted tag
907
908 See merge request libtiff/libtiff!582
909
910 2024-04-22 Even Rouault <[email protected]>
911
912 EvaluateIFDdatasizeReading(): avoid potential unsigned integer overflow on corrupted tag
913
914 2024-04-22 Even Rouault <[email protected]>
915
916 Merge branch 'tif_dir_logging-627' into 'master'
917 tif_dir.c: Log source file, line number, and input tif for directory count error.
918
919 Closes #627
920
921 See merge request libtiff/libtiff!583
922
923 2024-04-22 Kurt Schwehr <[email protected]>
924
925 tif_dir.c: Log source file, line number, and input tif for directory count error.
926
927 2024-04-14 Even Rouault <[email protected]>
928
929 Merge branch 'fix_readrgbastrip_fpe' into 'master'
930 Avoiding FPEs (division by zero) in tif_getimage.c
931
932 See merge request libtiff/libtiff!580
933
934 2024-04-09 Zurab Tsinadze <[email protected]>
935
936 Avoid FPEs (division by zero) in tif_getimage.c.
937
938 2024-04-06 Even Rouault <[email protected]>
939
940 Merge branch 'appveyor-vs2022' into 'master'
941 appveyor: Add VS2022 builds
942
943 See merge request libtiff/libtiff!579
944
945 2024-04-06 Roger Leigh <[email protected]>
946
947 appveyor: Add VS2022 builds.
948
949 2024-04-04 Roger Leigh <[email protected]>
950
951 Merge branch 'appveyor-mingw-fix' into 'master'
952 appveyor: Use MinGW-w64
953
954 See merge request libtiff/libtiff!578
955
956 2024-04-04 Roger Leigh <[email protected]>
957
958 appveyor: Use MinGW-w64.
959
960 2024-04-03 Even Rouault <[email protected]>
961
962 Merge branch 'update_rfc1_status' into 'master'
963 RFC1: update status to adopted
964
965 See merge request libtiff/libtiff!577
966
967 2024-04-03 Even Rouault <[email protected]>
968
969 RFC1: update status to adopted.
970
971 2024-04-03 Even Rouault <[email protected]>
972
973 Merge branch 'rfc1_psc' into 'master'
974 Doc: add 'RFC 1: Project Steering Committee Guidelines' and a PSC page
975
976 See merge request libtiff/libtiff!566
977
978 2024-04-03 Even Rouault <[email protected]>
979
980 Doc: add 'RFC 1: Project Steering Committee Guidelines' and a PSC page.
981
982 2024-04-02 Even Rouault <[email protected]>
983
984 Merge branch 'fix_coverity_test_directory_expansion' into 'master'
985 Fix coverity scan issue in test_directory.c
986
987 See merge request libtiff/libtiff!576
988
989 2024-04-02 Su_Laus <[email protected]>
990
991 Fix coverity scan issue in test_directory.c.
992
993 2024-04-02 Even Rouault <[email protected]>
994
995 Merge branch 'typo_fixes' into 'master'
996 Various typo fixes
997
998 See merge request libtiff/libtiff!575
999
1000 2024-04-02 Even Rouault <[email protected]>
1001
1002 Various typo fixes.
1003
1004 2024-03-31 Even Rouault <[email protected]>
1005
1006 Merge branch 'test_directory_expansion_endianness' into 'master'
1007 Enhance test_directory.c with big-endian and little-endian test cases
1008
1009 See merge request libtiff/libtiff!574
1010
1011 2024-03-30 Su_Laus <[email protected]>
1012
1013 Enhance test/test_directory.c with big-endian and little-endian test cases.
1014 Insert testcase into test_directory.c for #618 "Failure in TIFFSetSubDirectory() will break subsequent TIFFSetDirectory() calls".
1015
1016 2024-03-29 Even Rouault <[email protected]>
1017
1018 Merge branch 'correct_coverity_issues_from_avoid_IFD_overwriting' into 'master'
1019 Correct some coverity issues from "avoid IFD overwriting"
1020
1021 See merge request libtiff/libtiff!573
1022
1023 2024-03-29 Su_Laus <[email protected]>
1024
1025 Correct some coverity issues from "avoid IFD overwriting".
1026
1027 2024-03-28 Even Rouault <[email protected]>
1028
1029 Merge branch 'fix_gdal_9548' into 'master'
1030 LERC codec: deal with issues with multi-band PlanarConfig=Contig and NaN values
1031
1032 See merge request libtiff/libtiff!572
1033
1034 2024-03-26 Even Rouault <[email protected]>
1035
1036 Merge branch 'avoid_IFD_overwriting_other_data_TIFFWriteDirectory' into 'master'
1037 TIFFWriteDirectory: Avoid overwriting following data if an IFD is enlarged.
1038
1039 See merge request libtiff/libtiff!565
1040
1041 2024-03-26 Su Laus <[email protected]>
1042
1043 TIFFWriteDirectory: Avoid overwriting following data if an IFD is enlarged.
1044 Avoid overwriting other data if an IFD that has already been written is enlarged. If entries are to be changed in an IFD that has already been written to the file, the memory area can be overwritten as long as the IFD data volume has not increased. Otherwise, the IFD must be written to a different location in the file. Up to now, LibTIFF has simply overwritten the IFD and other data areas in the file.
1045
1046 With this MR, the size of the IFD, and location of IFD data, is tracked and checked if the IFD can be safely overwritten or has to be re-written to another location.
1047
1048 2024-03-24 Even Rouault <[email protected]>
1049
1050 LERC codec: deal with issues with multi-band PlanarConfig=Contig and NaN values
1051 Fixes https://github.com/OSGeo/gdal/issues/9530.
1052 Cf https://github.com/OSGeo/gdal/pull/9548 for the GDAL specific fix.
1053
1054 The LERC codec up-to-now didn't do any special processing when writing a strile
1055 in a multi-band PlanarConfig=Contig file, resulting in corruptions. Now we
1056 generate a mask buffer in that situation. Actually, if the NaN values are not
1057 at the same location accross bands, we need to write one mask-per-band, which
1058 requires liblerc >= 3.0, and in that situation change the LERC blob to
1059 multi-band instead of multi-depth/dim, with liblerc >= 3.0. When all bands have
1060 NaN values at the same location, we generate a single mask, which is compatible
1061 of liblerc < 3.0, but requires at last this version of libtiff to be read. This
1062 is the best solution we come with to fix the issue while having the maximum
1063 backward compatibility.
1064
1065 2024-03-24 Even Rouault <[email protected]>
1066
1067 Merge branch 'harmonize_TIFFheader_swapping' into 'master'
1068 Correct and harmonize swapping of internal 'tif_header' parameters.
1069
1070 See merge request libtiff/libtiff!571
1071
1072 2024-03-24 Su Laus <[email protected]>
1073
1074 Correct and harmonize swapping of internal 'tif_header' parameters.
1075
1076 2024-03-19 Even Rouault <[email protected]>
1077
1078 Merge branch 'chore/printf-format-specifiers' into 'master'
1079 chore: use correct format specifiers
1080
1081 See merge request libtiff/libtiff!570
1082
1083 2024-03-19 Tom <[email protected]>
1084
1085 chore: use correct format specifiers.
1086 When building on my Mac, I get the following warnings:
1087
1088 libtiff/tools/tiffcp.c:154:24: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
1089 comma, nextImage);
1090 ^~~~~~~~~
1091 libtiff/tools/tiffcp.c:1295:39: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
1092 TIFFFileName(bias), TIFFCurrentDirectory(bias),
1093 ^~~~~~~~~~~~~~~~~~~~~~~~~~
1094 libtiff/tools/tiffcp.c:1296:37: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
1095 TIFFFileName(in), TIFFCurrentDirectory(in));
1096 ^~~~~~~~~~~~~~~~~~~~~~~~
1097 libtiff/tools/tiffcp.c:1303:37: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
1098 TIFFFileName(in), TIFFCurrentDirectory(in));
1099 ^~~~~~~~~~~~~~~~~~~~~~~~
1100 libtiff/tools/tiffsplit.c:174:21: warning: format specifies type 'long long' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
1101 path_len);
1102 ^~~~~~~~
1103
1104 This updates the format specifiers from `PRIu16` to `PRIu32` for `tdir_t`
1105 (which is a `typdef`ed `uint32_t`) and from `TIFF_SSIZE_FORMAT` to
1106 `TIFF_SIZE_FORMAT` for `size_t`, which makes sense given that it's an unsigned
1107 type.
1108
1109 2024-03-16 Even Rouault <[email protected]>
1110
1111 Merge branch 'fix_628_FPE_at_TIFFhowmany' into 'master'
1112 Avoiding FPE (division by zero) for TIFFhowmany_32() and TIFFhowmany_64()...
1113
1114 Closes #628
1115
1116 See merge request libtiff/libtiff!568
1117
1118 2024-03-15 Su_Laus <[email protected]>
1119
1120 Avoiding FPE (division by zero) for TIFFhowmany_32() and TIFFhowmany_64() macros by checking for denominator not zero before macros are executed. Fixes #628.
1121
1122 2024-03-14 Even Rouault <[email protected]>
1123
1124 Merge branch 'fix_wrong_return_TIFFIsBigTIFF_if_swapping_case' into 'master'
1125 Fix wrong return of TIFFIsBigTIFF() in case byte-swapping is acitve
1126
1127 See merge request libtiff/libtiff!567
1128
1129 2024-03-13 Su_Laus <[email protected]>
1130
1131 Fix wrong return of TIFFIsBigTIFF() in case byte-swapping is acitve (i.e. little endian image on a big endian machine).
1132
1133 2024-01-30 Even Rouault <[email protected]>
1134
1135 Merge branch 'master' into 'master'
1136 Setting the TIFFFieldInfo field `set_field_type` should consider `field_writecount` not `field_readcount`
1137
1138 See merge request libtiff/libtiff!544
1139
1140 2024-01-30 Timo Stüber <[email protected]>
1141
1142 Setting the TIFFFieldInfo field `set_field_type` should consider `field_writecount` not `field_readcount`
1143 In most of the cases the field_writecount and field_readcount of the TIFFFieldInfo are equal. But they do not have to be the same.
1144
1145 I encountered this issues when using an older release of Pillow. Since they use custom fields for decoding only, they set the readcount value to 0. As the result _TIFFSetGetType can not identify the type correctly and set TIFF_SETGET_UNDEFINED.
1146
1147 Error Message:
1148 ```
1149 TIFFLib: _TIFFWriteDirectorySec(): Rational2Double: .set_field_type is not 4 but 1.
1150 ```
1151
1152 During the execution of TIFFMergeFieldInfo the fields get_field_type and set_field_type set. I guess the set_field_type should dependent on the field_writecount.
1153
1154 2024-01-24 Even Rouault <[email protected]>
1155
1156 Merge branch 'avoid_memory_leaks_using_TIFFCreateDirectory' into 'master'
1157 Avoiding memory leaks when using TIFFCreateDirectory()
1158
1159 See merge request libtiff/libtiff!563
1160
1161 2024-01-24 Su_Laus <[email protected]>
1162
1163 Avoiding memory leaks when using TIFFCreateDirectory() by releasing the allocated memory in the tif-structure.
1164
1165 2024-01-10 Even Rouault <[email protected]>
1166
1167 Merge branch 'WIN32' into 'master'
1168 Use #ifdef _WIN32 to test for Windows, and tiffio.h: remove definition of __WIN32__
1169
1170 See merge request libtiff/libtiff!562
1171
1172 2024-01-08 Even Rouault <[email protected]>
1173
1174 test/raw_decode.c: remove likely ifdef tricks related to old compilers or unusual setups
1175
1176 tif_jpeg.c/tif_ojpeg.c: remove likely ifdef tricks related to old compilers or unusual setups
1177
1178 Remove _TIFFUInt64ToFloat() and _TIFFUInt64ToDouble()
1179
1180 Remove support for _MSC_VER < 1500.
1181
1182 2024-01-07 Even Rouault <[email protected]>
1183
1184 Use #ifdef _WIN32 to test for Windows, and tiffio.h: remove definition of __WIN32__
1185
1186 2023-12-20 Even Rouault <[email protected]>
1187
1188 Merge branch 'fix_579_non_terminated_ASCII_deletes_one_byte' into 'master'
1189 Fixed issue with non-terminated ASCII arrays where the last character is overwritten (fixes #579)
1190
1191 Closes #579
1192
1193 See merge request libtiff/libtiff!561
1194
1195 2023-12-20 Su_Laus <[email protected]>
1196
1197 For non-terminated ASCII arrays, the buffer is first enlarged before a NULL is set at the end to avoid deleting the last character. Fixes #579. Some editorials in tif_dir.c.
1198
1199 2023-12-09 Even Rouault <[email protected]>
1200
1201 Merge branch 'fix_624_check_TIFFCreateAnonField_return' into 'master'
1202 Fix 624: Check return value of _TIFFCreateAnonField()
1203
1204 Closes #624
1205
1206 See merge request libtiff/libtiff!560
1207
1208 2023-12-01 Su_Laus <[email protected]>
1209
1210 Check return value of _TIFFCreateAnonField().
1211 Fixes #624
1212
1213 2023-11-27 Even Rouault <[email protected]>
1214
1215 Merge branch 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' into 'master'
1216 Add TIFFOpenOptionsSetMaxCumulatedMemAlloc()
1217
1218 See merge request libtiff/libtiff!556
1219
1220 2023-11-27 Even Rouault <[email protected]>
1221
1222 Add TIFFOpenOptionsSetMaxCumulatedMemAlloc()
1223 This function complements ``TIFFOpenOptionsSetMaxSingleMemAlloc()`` to define the maximum cumulated memory allocations in byte, for a given TIFF handle, that libtiff internal memory allocation functions are allowed.
1224
1225 2023-11-23 Even Rouault <[email protected]>
1226
1227 Merge branch 'unity_clang_fixes' into 'master'
1228 Fixes to avoid CLang warnings on unity builds
1229
1230 See merge request libtiff/libtiff!558
1231
1232 2023-11-23 Even Rouault <[email protected]>
1233
1234 Fixes to avoid CLang warnings on unity builds.
1235
1236 2023-11-22 Even Rouault <[email protected]>
1237
1238 Merge branch 'cmake_UNITY_BUILD' into 'master'
1239 Changes to allow building with cmake -DCMAKE_UNITY_BUILD=ON
1240
1241 See merge request libtiff/libtiff!557
1242
1243 2023-11-22 Even Rouault <[email protected]>
1244
1245 CI: test -DCMAKE_UNITY_BUILD=ON.
1246
1247 Changes to allow building with cmake -DCMAKE_UNITY_BUILD=ON.
1248
1249 2023-11-22 Even Rouault <[email protected]>
1250
1251 Merge branch 'manpage_506_TIFFClose_check_with_TIFFFlush' into 'master'
1252 manpage: Note on using TIFFFlush() before TIFFClose()
1253
1254 Closes #506
1255
1256 See merge request libtiff/libtiff!555
1257
1258 2023-11-16 Su_Laus <[email protected]>
1259
1260 manpage: Note on using TIFFFlush() before TIFFClose() to check that the data has been successfully written to the file.
1261 Closes #506
1262
1263 2023-11-11 Even Rouault <[email protected]>
1264
1265 Merge branch 'manpage_621_TIFFOpenOptionsSetMaxSingleMemAlloc' into 'master'
1266 manpage: Update TIFF documentation about TIFFOpenOptions.rst and memory limitting.
1267
1268 Closes #621
1269
1270 See merge request libtiff/libtiff!553
1271
1272 2023-11-11 Even Rouault <[email protected]>
1273
1274 Merge branch 'rectify_some_shadowed_declarations' into 'master'
1275 Rectify some shadowed declarations and warnings in tools and test modules.
1276
1277 See merge request libtiff/libtiff!552
1278
1279 2023-11-11 Even Rouault <[email protected]>
1280
1281 Merge branch 'fix_TIFFRealloc_usage_to_TIFFReallocExt' into 'master'
1282 Change internally used _TIFFRealloc() to _TIFFReallocExt()
1283
1284 See merge request libtiff/libtiff!554
1285
1286 2023-11-11 Su_Laus <[email protected]>
1287
1288 Change internally used _TIFFRealloc() to _TIFFReallocExt(), which respects the TIFFOpenOptionsSetMaxSingleMemAlloc() limit.
1289
1290 2023-11-11 Timothy Lyanguzov <[email protected]>
1291
1292 Fix typo.
1293
1294 2023-11-09 Su_Laus <[email protected]>
1295
1296 manpage: Update TIFF documentation about TIFFOpenOptions.rst and TIFFOpenOptionsSetMaxSingleMemAlloc() usage and some other small fixes.
1297
1298 2023-11-08 Su_Laus <[email protected]>
1299
1300 Rectify some shadowed declarations and warnings in tools and test modules.
1301
1302 2023-11-04 Even Rouault <[email protected]>
1303
1304 Merge branch 'fix_583' into 'master'
1305 tif_fax3.c: error out after a number of times end-of-file has been reached (fixes #583)
1306
1307 Closes #583
1308
1309 See merge request libtiff/libtiff!547
1310
1311 2023-11-04 Even Rouault <[email protected]>
1312
1313 Merge branch 'fix_622' into 'master'
1314 TIFFReadRGBAStrip/TIFFReadRGBATile: add more validation of col/row (fixes #622)
1315
1316 Closes #622
1317
1318 See merge request libtiff/libtiff!546
1319
1320 2023-10-31 Even Rouault <[email protected]>
1321
1322 Merge branch 'extra_limit_getfilesize' into 'master'
1323 tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
1324
1325 See merge request libtiff/libtiff!551
1326
1327 2023-10-31 Even Rouault <[email protected]>
1328
1329 tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
1330
1331 2023-10-31 Even Rouault <[email protected]>
1332
1333 Merge branch 'TIFFFetchDirectory_remove_useless_check' into 'master'
1334 TIFFFetchDirectory(): remove useless allocsize vs filesize check
1335
1336 See merge request libtiff/libtiff!550
1337
1338 2023-10-31 Even Rouault <[email protected]>
1339
1340 TIFFFetchDirectory(): remove useless allocsize vs filesize check.
1341 CoverityScan rightly points that the max value for dircount16 * dirsize
1342 is 4096 * 20. That's small enough not to do any check
1343
1344 2023-10-31 Even Rouault <[email protected]>
1345
1346 Merge branch 'limit_getfilesize' into 'master'
1347 tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
1348
1349 See merge request libtiff/libtiff!549
1350
1351 2023-10-31 Even Rouault <[email protected]>
1352
1353 tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
1354 Ammends 5320c9d89c054fa805d037d84c57da874470b01a
1355
1356 This fixes a performance regression caught by the GDAL regression test
1357 suite.
1358
1359 2023-10-31 Even Rouault <[email protected]>
1360
1361 Merge branch 'tif_dirread-typo' into 'master'
1362 tif_dirread.c: Fix typo: greather -> greater
1363
1364 See merge request libtiff/libtiff!548
1365
1366 2023-10-31 Kurt Schwehr <[email protected]>
1367
1368 tif_dirread.c: Fix typo: greather -> greater.
1369
1370 2023-10-31 Even Rouault <[email protected]>
1371
1372 Merge branch 'fix_614_check_mem_allocation_vs_filelength' into 'master'
1373 Prevent some out-of-memory attacks
1374
1375 See merge request libtiff/libtiff!545
1376
1377 2023-10-31 Su Laus <[email protected]>
1378
1379 Prevent some out-of-memory attacks.
1380 Some small fuzzer files fake large amounts of data and provoke out-of-memory situations. For non-compressed data content / tags, out-of-memory can be prevented by comparing with the file size.
1381
1382 At image reading, data size of some tags / data structures (StripByteCounts, StripOffsets, StripArray, TIFF directory) is compared with file size to prevent provoked out-of-memory attacks.
1383
1384 See issue https://gitlab.com/libtiff/libtiff/-/issues/614#note_1602683857
1385
1386 2023-10-31 Even Rouault <[email protected]>
1387
1388 tif_fax3.c: error out after a number of times end-of-file has been reached (fixes #583)
1389
1390 TIFFReadRGBAStrip/TIFFReadRGBATile: add more validation of col/row (fixes #622)
1391
1392 2023-10-30 Even Rouault <[email protected]>
1393
1394 Merge branch 'fix_failed_subdirectory_read' into 'master'
1395 #618: ensure absolute seeking is forced independent
1396
1397 See merge request libtiff/libtiff!543
1398
1399 2023-10-25 Manuel Massing <[email protected]>
1400
1401 #618: ensure absolute seeking is forced independent of TIFFReadDirectory success.
1402 This fixes TIFFSetDirectory calls for the case where
1403 TIFFReadDirectory was unsuccessful.
1404
1405 2023-10-17 Even Rouault <[email protected]>
1406
1407 Merge branch 'cmake' into 'master'
1408 CMake: Fix TIFF_INCLUDE_DIRS
1409
1410 See merge request libtiff/libtiff!541
1411
1412 2023-10-12 Even Rouault <[email protected]>
1413
1414 Merge branch 'fix_616' into 'master'
1415 tif_lzw.c: avoid warning about misaligned address with UBSAN (fixes #616)
1416
1417 Closes #616
1418
1419 See merge request libtiff/libtiff!542
1420
1421 2023-10-12 Even Rouault <[email protected]>
1422
1423 Merge branch 'tiffcp_cancel_ycbcr' into 'master'
1424 tiffcp: replace PHOTOMETRIC_YCBCR with PHOTOMETRIC_RGB when outputing to...
1425
1426 See merge request libtiff/libtiff!540
1427
1428 2023-10-12 Even Rouault <[email protected]>
1429
1430 tif_lzw.c: avoid warning about misaligned address with UBSAN (fixes #616)
1431 The branch suppressed by this commit wasn't useful as I've verified that
1432 with -O2 and -O3 and gcc or clang, doing a memcpy() + _byteswap_uint64()
1433 generates exactly the same code as _byteswap_uint64(*ptr).
1434 The warning with UBSAN thus only comes from UBSAN generating special code
1435 to catch the misalignment, but is unlikely to cause any issue in
1436 practice given the above observation.
1437
1438 2023-10-12 Julien Schueller <[email protected]>
1439
1440 CMake: Fix TIFF_INCLUDE_DIRS.
1441
1442 2023-10-08 Even Rouault <[email protected]>
1443
1444 tiffcp: preserve TIFFTAG_REFERENCEBLACKWHITE when doing YCbCr JPEG -> YCbCr JPEG
1445
1446 2023-10-07 Even Rouault <[email protected]>
1447
1448 tiffcp: replace PHOTOMETRIC_YCBCR with PHOTOMETRIC_RGB when outputing to compression != JPEG (refs #571)
1449
1450 2023-10-05 Even Rouault <[email protected]>
1451
1452 Merge branch 'kmilos-master-patch-42063' into 'master'
1453 CMake: MinGW compilers don't need a .def file for shared library
1454
1455 See merge request libtiff/libtiff!448
1456
1457 2023-10-05 Even Rouault <[email protected]>
1458
1459 Merge branch 'kmilos-master-patch-64997' into 'master'
1460 CMake: move libdeflate and Lerc to Requires.private
1461
1462 See merge request libtiff/libtiff!536
1463
1464 2023-10-05 Even Rouault <[email protected]>
1465
1466 Merge branch 'clarify_archive' into 'master'
1467 Doc: clarify unsupported (still in tarball) and archived (only in git) utilities
1468
1469 See merge request libtiff/libtiff!532
1470
1471 2023-10-05 Even Rouault <[email protected]>
1472
1473 Merge branch 'fix_571_alternative' into 'master'
1474 tiffcp: Setting the correct photometric interpretation for the output image...
1475
1476 Closes #571
1477
1478 See merge request libtiff/libtiff!539
1479
1480 2023-10-04 Even Rouault <[email protected]>
1481
1482 tiffcp: do not copy tags YCBCRCOEFFICIENTS, YCBCRSUBSAMPLING, YCBCRPOSITIONING, REFERENCEBLACKWHITE. Only set TIFFTAG_YCBCRSUBSAMPLING when generating YCbCr JPEG
1483
1484 tiffcp: Setting the correct photometric interpretation for the output image when converting JPEG-YCBCR to JPEG-RGB images.
1485 Closes #571
1486
1487 2023-09-28 Miloš Komarčević <[email protected]>
1488
1489 CMake: move libdeflate and Lerc to Requires.private.
1490
1491 2023-09-27 Even Rouault <[email protected]>
1492
1493 Merge branch 'kmilos-windres' into 'master'
1494 CMake: enable resource compilation on all Windows
1495
1496 See merge request libtiff/libtiff!537
1497
1498 2023-09-27 Miloš Komarčević <[email protected]>
1499
1500 CMake: enable resource compilation on all Windows.
1501
1502 2023-09-15 Even Rouault <[email protected]>
1503
1504 Merge branch 'fix_608' into 'master'
1505 tif_dirinfo.c: re-enable TIFFTAG_EP_CFAREPEATPATTERNDIM and TIFFTAG_EP_CFAPATTERN tags (fixes #608)
1506
1507 Closes #608
1508
1509 See merge request libtiff/libtiff!534
1510
1511 2023-09-15 Even Rouault <[email protected]>
1512
1513 tif_dirinfo.c: re-enable TIFFTAG_EP_CFAREPEATPATTERNDIM and TIFFTAG_EP_CFAPATTERN tags (fixes #608)
1514
1515 2023-09-09 Even Rouault <[email protected]>
1516
1517 Merge branch 'fix_606_tiffcp_check_also_input_compression_codec' into 'master'
1518 tiffcp: Fixes #606. Check also codec of input image, not only from output image.
1519
1520 Closes #606
1521
1522 See merge request libtiff/libtiff!533
1523
1524 2023-09-09 Su_Laus <[email protected]>
1525
1526 Check also if codec of input image is available, independently from codec check of output image and return with error if not. Fixes #606.
1527
1528 2023-09-08 Even Rouault <[email protected]>
1529
1530 Doc: clarify unsupported (still in tarball) and archived (only in git) utilities
1531
1532 2023-09-08 Even Rouault <[email protected]>
1533
1534 Merge branch 'update_release_date' into 'master'
1535 Update RELEASE-DATE
1536
1537 See merge request libtiff/libtiff!531
1538
1539 2023-09-08 Even Rouault <[email protected]>
1540
1541 Update RELEASE-DATE.
1542
1543 2023-09-08 Even Rouault <[email protected]>
1544
1545 Merge branch 'fix_605' into 'master'
1546 autoconf.ac: fix detection of windows.h for mingw (fixes #605)
1547
1548 Closes #605
1549
1550 See merge request libtiff/libtiff!530
1551
1552 2023-09-07 Even Rouault <[email protected]>
1553
1554 autoconf.ac: fix detection of windows.h for mingw (fixes #605)
1555
1556 2023-09-06 Even Rouault <[email protected]>
1557
1558 Merge branch 'prepare_v4_6_0' into 'master'
1559 Prepare for libtiff 4.6.0 release
1560
1561 See merge request libtiff/libtiff!528
1562
1563 2023-09-05 Even Rouault <[email protected]>
1564
1565 doc/index.rst: add warning about tools removal.
1566
1567 2023-09-05 Even Rouault <[email protected]>
1568
1569 Merge branch 'fix_603_readme_doc_reference_update' into 'master'
1570 Update documentation reference within README.md. Fixes #603.
1571
1572 Closes #603
1573
1574 See merge request libtiff/libtiff!529
1575
1576 2023-09-05 Su_Laus <[email protected]>
1577
1578 Update documentation reference within README.md. Fixes #603.
1579
1580 2023-09-05 Even Rouault <[email protected]>
1581
1582 Fix references to mailing list.
1583
1584 2023-09-05 Even Rouault <[email protected]>
1585
1586 libtiff v4.6.0 released
1587
1588 2023-09-05 Even Rouault <[email protected]>
1589
1590 Merge branch 'fix_600' into 'master'
1591 CMake: fix build with -Dstrip-chopping=off (fixes #600)
1592
1593 See merge request libtiff/libtiff!527
1594
1595 2023-09-05 Even Rouault <[email protected]>
1596
1597 Merge branch 'georgthegreat-master-patch-87447' into 'master'
1598 Fix using __attribute__ libtiff with clang-for-windows
1599
1600 See merge request libtiff/libtiff!525
1601
1602 2023-09-05 Yuriy Chernyshov <[email protected]>
1603
1604 Fix using __attribute__ libtiff with clang-for-windows.
1605
1606 2023-09-05 Even Rouault <[email protected]>
1607
1608 Merge branch 'manpage_TIFFField_docu_update' into 'master'
1609 manpages: TiffField functions documentation updated with return behaviour for...
1610
1611 See merge request libtiff/libtiff!526
1612
1613 2023-09-05 Even Rouault <[email protected]>
1614
1615 CMake: fix build with -Dstrip-chopping=off (fixes #600)
1616
1617 2023-09-03 Even Rouault <[email protected]>
1618
1619 Merge branch 'consistently_update_TIFF-version_from_configure-ac' into 'master'
1620 Update CMake and autoconf scripts to consistently update LibTIFF version...
1621
1622 See merge request libtiff/libtiff!456
1623
1624 2023-09-03 Su Laus <[email protected]>
1625
1626 Update CMake and autoconf scripts to consistently update LibTIFF version defines and references in various files when version definition in configure.ac has been changed.
1627 - Move in tiffvers.h from .\libtiff source directory to .\libtiff build directory.
1628 - Remove unused version information from tif_config.h
1629 - With every CMake build the version defines (e.g. 4.5.1) within tiffvers.h are consistently updated from configure.ac. The version release-date is taken from file RELEASE-DATE.
1630 - The files VERSION and RELEASE-DATE are only updated with a special CMake target build: cmake --build . --target tiff_release.
1631
1632 - For autotools, version information is updated from configure.ac with ./autogen.sh. LIBTIFF_RELEASE_DATE is taken form file RELEASE-DATE.
1633 - ./configure generates tiffvers.h with the cached version information and LIBTIFF_RELEASE_DATE.
1634 - "make release" updates tiffvers.h and VERSION file with cached version info and RELEASE-DATE file and tiffves.h with the current date.
1635
1636 2023-08-28 Su_Laus <[email protected]>
1637
1638 manpages: TiffField functions documentation updated with return behaviour for not defined tags and determination of write-/read-count size.
1639
1640 2023-08-22 Even Rouault <[email protected]>
1641
1642 Merge branch 'change_long_to_int32_t_in_two_test_apps' into 'master'
1643 Change "long" to "int32_t" in two test apps, because can be either int32_t or...
1644
1645 See merge request libtiff/libtiff!524
1646
1647 2023-08-21 Su_Laus <[email protected]>
1648
1649 Change "long" to "int32_t" in two test apps, because can be either int32_t or int64_t, depending on compiler and system.
1650
1651 2023-08-16 Even Rouault <[email protected]>
1652
1653 Merge branch 'CI_CMake_static_build' into 'master'
1654 Add static build for CI/CD to run testcases which need private interface functions.
1655
1656 See merge request libtiff/libtiff!521
1657
1658 2023-08-16 Even Rouault <[email protected]>
1659
1660 Merge branch 'fix_#597_tiffset_different_signedness' into 'master'
1661 tiffset fix #597: warning: comparison of integer expressions of different signedness.
1662
1663 Closes #597
1664
1665 See merge request libtiff/libtiff!523
1666
1667 2023-08-16 Even Rouault <[email protected]>
1668
1669 Merge branch 'tiffcp_remove_i_option' into 'master'
1670 tiffcp: remove -i option (ignore errors)
1671
1672 See merge request libtiff/libtiff!522
1673
1674 2023-08-16 Even Rouault <[email protected]>
1675
1676 Merge branch 'move_tools_to_unsupported_a_archive' into 'master'
1677 Move most TIFF tools to archive and keep some as unsupported (see #580).
1678
1679 See merge request libtiff/libtiff!520
1680
1681 2023-08-16 Su Laus <[email protected]>
1682
1683 Move most TIFF tools to archive and keep some as unsupported (see #580).
1684
1685 2023-08-12 Su_Laus <[email protected]>
1686
1687 Add static build for CI/CD to run testcases which need private interface functions.
1688
1689 tiffset fix #597: warning: comparison of integer expressions of different signedness.
1690
1691 Remove -i option (ignore errors) from tiffcp, because almost all fuzzer issues were consequential errors from ignored errors because of the "-i" option.
1692
1693 2023-08-11 Even Rouault <[email protected]>
1694
1695 Merge branch 'fix_585_test_write_read_tags_autoconf' into 'master'
1696 Add missing test_write_read_tags.c and test_transferfunction_write_read.c in...
1697
1698 Closes #585
1699
1700 See merge request libtiff/libtiff!519
1701
1702 2023-07-24 Even Rouault <[email protected]>
1703
1704 Fix copy paste error.
1705
1706 2023-07-23 Su_Laus <[email protected]>
1707
1708 Add missing test_write_read_tags.c and test_transferfunction_write_read.c in tarball (fixes #585) and correct „long“ issue.
1709 Don't use "long" because can be int32_t or int64_t, depending on compiler and system.
1710
1711 2023-07-20 Even Rouault <[email protected]>
1712
1713 Merge branch 'clang-format-tools' into 'master'
1714 Automatically format with clang-format
1715
1716 See merge request libtiff/libtiff!518
1717
1718 2023-07-20 Timothy Lyanguzov <[email protected]>
1719
1720 Automatically format with clang-format.
1721
1722 2023-07-20 Even Rouault <[email protected]>
1723
1724 Merge branch 'fix_589' into 'master'
1725 TiffConfig.cmake.in: set TIFF_INCLUDE_DIR, TIFF_INCLUDE_DIRS and...
1726
1727 Closes #589
1728
1729 See merge request libtiff/libtiff!514
1730
1731 2023-07-20 Even Rouault <[email protected]>
1732
1733 TiffConfig.cmake.in: set TIFF_INCLUDE_DIR, TIFF_INCLUDE_DIRS and...
1734
1735 2023-07-19 Even Rouault <[email protected]>
1736
1737 Merge branch 'master-patch-6fc6' into 'master'
1738 raw2tiff: fix integer overflow and bypass of the check (fixes #592)
1739
1740 See merge request libtiff/libtiff!516
1741
1742 2023-07-19 Arie Haenel <[email protected]>
1743
1744 raw2tiff: fix integer overflow and bypass of the check (fixes #592)
1745
1746 2023-07-19 Even Rouault <[email protected]>
1747
1748 Merge branch 'master-patch-05a4' into 'master'
1749 tiffcp: fix memory corruption (overflow) on hostile images (fixes #591)
1750
1751 See merge request libtiff/libtiff!515
1752
1753 2023-07-19 Arie Haenel <[email protected]>
1754
1755 tiffcp: fix memory corruption (overflow) on hostile images (fixes #591)
1756
1757 2023-07-17 Even Rouault <[email protected]>
1758
1759 Merge branch 'fix-numtrunc' into 'master'
1760 fix numtrunc at tiff_dirread.c
1761
1762 See merge request libtiff/libtiff!512
1763
1764 2023-07-17 headshog <[email protected]>
1765
1766 TIFFReadDirectoryCheckOrder: avoid integer overflow.
1767 When it occurs, it should be harmless in practice though
1768
1769 2023-07-17 Even Rouault <[email protected]>
1770
1771 Merge branch 'webp_lossless_exact' into 'master'
1772 WebP codec: turn exact mode when creating lossless files to avoid altering...
1773
1774 See merge request libtiff/libtiff!511
1775
1776 2023-07-11 Even Rouault <[email protected]>
1777
1778 WebP codec: turn exact mode when creating lossless files to avoid altering R,G,B values in areas where alpha=0
1779 Fixes https://github.com/OSGeo/gdal/issues/8038
1780
1781 2023-07-05 Even Rouault <[email protected]>
1782
1783 Merge branch 'webp_reg_fix' into 'master'
1784 WebP decoder: fix error when reading a 3-band blob in a RGBA image
1785
1786 See merge request libtiff/libtiff!510
1787
1788 2023-07-05 Even Rouault <[email protected]>
1789
1790 WebP decoder: fix error when reading a 3-band blob in a RGBA image.
1791 Fixes regression of 350ff161c8a61b6483a1e4689e09cd47dd0dd5f9 (master only)
1792
1793 2023-06-26 Even Rouault <[email protected]>
1794
1795 Merge branch 'appveyor_fix' into 'master'
1796 .appveyor.yml: workaround build error
1797
1798 See merge request libtiff/libtiff!509
1799
1800 2023-06-26 Even Rouault <[email protected]>
1801
1802 .appveyor.yml: workaround build error.
1803
1804 2023-06-26 Even Rouault <[email protected]>
1805
1806 Merge branch 'tif_webp_warning_fixes' into 'master'
1807 tif_webp.c: fix signed vs unsigned comparison warnings (fix previous commit)
1808
1809 See merge request libtiff/libtiff!508
1810
1811 2023-06-26 Even Rouault <[email protected]>
1812
1813 tif_webp.c: fix signed vs unsigned comparison warnings (fix previous commit)
1814
1815 2023-06-26 Even Rouault <[email protected]>
1816
1817 Merge branch 'fix_TransferFunction_writing' into 'master'
1818 Fix TransferFunction writing of only two transfer functions.
1819
1820 See merge request libtiff/libtiff!502
1821
1822 2023-06-26 Even Rouault <[email protected]>
1823
1824 Merge branch 'fix_581_582' into 'master'
1825 WebP decoder: validate WebP blob width, height, band count against TIFF parameters
1826
1827 Closes #582 et #581
1828
1829 See merge request libtiff/libtiff!507
1830
1831 2023-06-19 Even Rouault <[email protected]>
1832
1833 Merge branch 'warning_cmake_config_file' into 'master'
1834 v4.5.1 release note: add warning about CMake config file being preview
1835
1836 See merge request libtiff/libtiff!506
1837
1838 2023-06-17 Even Rouault <[email protected]>
1839
1840 WebP decoder: validate WebP blob width, height, band count against TIFF parameters
1841 to avoid use of uninitialized variable, or decoding corrupted content
1842 without explicit error
1843
1844 Fixes #581, fixes #582
1845
1846 2023-06-15 Even Rouault <[email protected]>
1847
1848 v4.5.1 release note: add warning about CMake config file being preview.
1849
1850 2023-06-14 Even Rouault <[email protected]>
1851
1852 Merge branch 'HOWTO-RELEASE-gitlab-release' into 'master'
1853 HOWTO-RELEASE: mention creating a gitlab release
1854
1855 See merge request libtiff/libtiff!505
1856
1857 2023-06-14 Even Rouault <[email protected]>
1858
1859 HOWTO-RELEASE: mention creating a gitlab release.
1860
1861 2023-06-10 Even Rouault <[email protected]>
1862
1863 Merge branch 'TIFFOpenWExt_O_RDWR' into 'master'
1864 TIFFOpenWExt(): mode r+ in the Windows implementation adjusted to that of Linux
1865
1866 See merge request libtiff/libtiff!504
1867
1868 2023-06-10 Even Rouault <[email protected]>
1869
1870 TIFFOpenWExt(): mode r+ in the Windows implementation adjusted to that of Linux
1871
1872 2023-06-10 Even Rouault <[email protected]>
1873
1874 Merge branch 'fix_ossfuzz_59751' into 'master'
1875 TIFFReadDirectory(): fix crash when reading tag TIFFTAG_EP_BATTERYLEVEL
1876
1877 See merge request libtiff/libtiff!503
1878
1879 2023-06-10 Even Rouault <[email protected]>
1880
1881 TIFFReadDirectory(): fix crash when reading tag TIFFTAG_EP_BATTERYLEVEL.
1882 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59751
1883
1884 In 738e0409 (refs #575), we disabled DNG / EP tags, but there was a
1885 special processing for TIFFTAG_EP_BATTERYLEVEL that must be disabled
1886 since the tag is no longer defined.
1887
1888 2023-06-09 Su_Laus <[email protected]>
1889
1890 Fix TransferFunction writing of only two transfer functions. The TIFFWriteDirectoryTagTransferfunction() function writes in some cases only two transfer functions, although only exactly one or exactly three transfer functions are allowed. This then leads to an error when reading. --> TIFFReadDirectory: Warning, Incorrect count for "TransferFunction"; tag ignored.
1891 This MR corrects the behaviour of TIFFWriteDirectoryTagTransferfunction() accordingly. Furthermore, a possible buffer overflow is avoided.
1892
1893 2023-06-09 Even Rouault <[email protected]>
1894
1895 Merge branch 'fix_win_build' into 'master'
1896 Fix Windows build
1897
1898 Closes #578
1899
1900 See merge request libtiff/libtiff!501
1901
1902 2023-06-09 Even Rouault <[email protected]>
1903
1904 cmake/PkgConfig.cmake: avoid CMake error when prefix or suffix is empty.
1905
1906 Add tif_win32_versioninfo.rc and tif_tools_versioninfo.rc to EXTRA_DIST.
1907
1908 2023-06-09 Even Rouault <[email protected]>
1909
1910 Merge branch 'fix_coverity_build' into 'master'
1911 build/gitlab-ci: fix coverity_build()
1912
1913 See merge request libtiff/libtiff!499
1914
1915 2023-06-09 Even Rouault <[email protected]>
1916
1917 build/gitlab-ci: fix coverity_build()
1918
1919 2023-06-09 Even Rouault <[email protected]>
1920
1921 Merge branch 'v4.5.1rc1_preparation' into 'master'
1922 Prepare release 4.5.1
1923
1924 See merge request libtiff/libtiff!498
1925
1926 2023-06-09 Even Rouault <[email protected]>
1927
1928 Prepare for v4.5.1 release.
1929
1930 Merge remote-tracking branch 'sulaus/Rel_4.5.1_preparation'
1931
1932 2023-06-09 Even Rouault <[email protected]>
1933
1934 Merge branch 'disable_dng_tags' into 'master'
1935 tif_dirinfo.c: disable DNG 1.2->1.6 tags
1936
1937 Closes #575
1938
1939 See merge request libtiff/libtiff!497
1940
1941 2023-06-09 Even Rouault <[email protected]>
1942
1943 Merge branch 'fix_577' into 'master'
1944 CMake related fixes
1945
1946 Closes #577
1947
1948 See merge request libtiff/libtiff!496
1949
1950 2023-06-09 Even Rouault <[email protected]>
1951
1952 libtiff v4.5.1 released
1953
1954 2023-06-09 Even Rouault <[email protected]>
1955
1956 Merge remote-tracking branch 'sulaus/Rel_4.5.1_preparation'
1957
1958 2023-06-09 Even Rouault <[email protected]>
1959
1960 Merge branch 'disable_dng_tags' into 'master'
1961 tif_dirinfo.c: disable DNG 1.2->1.6 tags
1962
1963 Closes #575
1964
1965 See merge request libtiff/libtiff!497
1966
1967 2023-06-09 Even Rouault <[email protected]>
1968
1969 Merge branch 'fix_577' into 'master'
1970 CMake related fixes
1971
1972 Closes #577
1973
1974 See merge request libtiff/libtiff!496
1975
1976 2023-06-07 Even Rouault <[email protected]>
1977
1978 tif_dirinfo.c: disable DNG 1.2->1.6 tags.
1979 They were added per b90b20d36d7833f54a1f3014c324f6c21b988006 but it has
1980 been found in https://gitlab.com/libtiff/libtiff/-/issues/575 that it
1981 could cause compatibility issues with libtiff users, so this addition
1982 should be deferred for a feature release (likely 4.6.0) and not a patch one.
1983
1984 Fixes #575
1985
1986 2023-06-06 Timothy Lyanguzov <[email protected]>
1987
1988 Apply 1 suggestion(s) to 1 file(s)
1989
1990 2023-06-05 Even Rouault <[email protected]>
1991
1992 CI: add testing of find_package(Tiff CONFIG)
1993
1994 CMake: export TiffConfig.cmake and TiffConfigVersion.cmake files.
1995
1996 libtiff/CMakeLists.txt: fix export of INTERFACE_INCLUDE_DIRECTORIES.
1997
1998 libtiff/CMakeLists.txt: correctly define TIFF::tiff alias (fixes #577)
1999
2000 2023-06-05 Even Rouault <[email protected]>
2001
2002 Merge branch 'TIFFField_downgrade_errors_to_warnings' into 'master'
2003 TIFFFieldWithName() and TIFFFieldWithTag() downgrade errors to warnings.
2004
2005 See merge request libtiff/libtiff!495
2006
2007 2023-05-28 Su_Laus <[email protected]>
2008
2009 TIFFFieldWithName() and TIFFFieldWithTag() downgrade errors to warnings. see https://gitlab.com/libtiff/libtiff/-/issues/575#note_1407633888
2010
2011 2023-05-25 Even Rouault <[email protected]>
2012
2013 Merge branch 'bebuch-master-patch-58347' into 'master'
2014 check if upstream lzma (xz) config was used and bind to it if so
2015
2016 See merge request libtiff/libtiff!494
2017
2018 2023-05-25 Benjamin Buch <[email protected]>
2019
2020 check if upstream lzma (xz) config was used and bind to it if so.
2021
2022 2023-05-25 Even Rouault <[email protected]>
2023
2024 Merge branch 'upstream-zstd-config' into 'master'
2025 check if upstream zstd config was used and bind to it if so
2026
2027 See merge request libtiff/libtiff!493
2028
2029 2023-05-25 Even Rouault <[email protected]>
2030
2031 Merge branch 'cmake_FindDeflate_bugs_see_526' into 'master'
2032 CMake: FindDeflate several errors fixed (see #526)
2033
2034 See merge request libtiff/libtiff!491
2035
2036 2023-05-24 Su_Laus <[email protected]>
2037
2038 CMake: FindDeflate several errors (see #526)
2039 There are CMake issues if the library is not included in the environment path and only set with CMake -D option.
2040 - For FindDeflate.cmake, FindJBIG.cmake, FindLERC.cmake, FindWebP.cmake, FindZSTD.cmake:
2041 Set IMPORTED_LOCATION (without debug or release) if neither <library>_LIBRARY_RELEASE nor <library>_LIBRARY_DEBUG were set.
2042 - FindDeflate.cmake: Correct code to retrieve library version information from libdeflate.h
2043 - FindLERC.cmake version string return added.
2044
2045 2023-05-24 Benjamin Buch <[email protected]>
2046
2047 prefer shared over static.
2048
2049 check if upstream zstd config was used and bind to it if so.
2050
2051 2023-05-24 Even Rouault <[email protected]>
2052
2053 Merge branch 'master' into 'master'
2054 make WebP component name compatible with upstream ConfigWebP.cmake
2055
2056 See merge request libtiff/libtiff!492
2057
2058 2023-05-24 Benjamin Buch <[email protected]>
2059
2060 CMake: make WebP component name compatible with upstream ConfigWebP.cmake
2061
2062 2023-05-18 Su_Laus <[email protected]>
2063
2064 Prepare release 4.5.1 - Update till 18.05.23 after fix_559_DNG_1.6_passcount_error
2065
2066 Prepare release 4.5.1.
2067
2068 2023-05-18 Even Rouault <[email protected]>
2069
2070 Merge branch 'fix_559_DNG_1.6_passcount_error' into 'master'
2071 Fix #559 DNG 1.6 passcount assertion
2072
2073 Closes #574 et #559
2074
2075 See merge request libtiff/libtiff!489
2076
2077 2023-05-18 Even Rouault <[email protected]>
2078
2079 Merge branch 'fix_557_TagExtender_for_CustomDirectories_not_possible' into 'master'
2080 manpage: TIFFSetTagExtender() cannot add tags to custom directories. Closes #557.
2081
2082 Closes #557
2083
2084 See merge request libtiff/libtiff!490
2085
2086 2023-05-18 Even Rouault <[email protected]>
2087
2088 Merge branch 'fix_559_DNG_1.6_passcount_error' into 'master'
2089 Fix #559 DNG 1.6 passcount assertion
2090
2091 Closes #574 et #559
2092
2093 See merge request libtiff/libtiff!489
2094
2095 2023-05-18 Even Rouault <[email protected]>
2096
2097 Merge branch 'fix_557_TagExtender_for_CustomDirectories_not_possible' into 'master'
2098 manpage: TIFFSetTagExtender() cannot add tags to custom directories. Closes #557.
2099
2100 Closes #557
2101
2102 See merge request libtiff/libtiff!490
2103
2104 2023-05-17 Su_Laus <[email protected]>
2105
2106 Documentation update: TIFFSetTagExtender() cannot add tags to custom directories.
2107 Closes #557.
2108
2109 2023-05-16 Even Rouault <[email protected]>
2110
2111 Merge branch 'fix_558' into 'master'
2112 Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of TIFFOpen()...
2113
2114 See merge request libtiff/libtiff!488
2115
2116 2023-05-16 Su_Laus <[email protected]>
2117
2118 Fix #559 DNG 1.6 passcount assertion.
2119 Amend DNG tags definition introduced with MR 482:
2120 - DNG 1.6 tags specified as UTF-8 strings are defined as variable TIFF_BYTE with passcount=TRUE.
2121 - For all tags with TIFF_SETGET_C32_UINT8 the readcount and writecount were corrected to -3 (TIFF_VARIABLE2).
2122
2123 Testprogram to write and read all tags defined within LibTIFF is introduced.
2124 It also checks for valid passcount flag setting for the defined tags but some special tags are excluded from that check.
2125
2126 Closes #559.
2127
2128 2023-05-09 Even Rouault <[email protected]>
2129
2130 Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of TIFFOpen() to warn and an alias of FILLORDER_MSB2LSB
2131
2132 tif_lerc.c: use WORDS_BIGENDIAN instead of HOST_BIGENDIAN.
2133
2134 2023-05-07 Even Rouault <[email protected]>
2135
2136 Merge branch 'fix_484_TIFFDirectory_32_64_bit' into 'master'
2137 Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 bits.
2138
2139 Closes #484
2140
2141 See merge request libtiff/libtiff!471
2142
2143 2023-05-07 Even Rouault <[email protected]>
2144
2145 Merge branch 'DNG_1.6_EP_tags' into 'master'
2146 Add DNG tags up to version 1.6.0.0 and some TIFF/EP tags and update documentation
2147
2148 See merge request libtiff/libtiff!482
2149
2150 2023-05-07 Even Rouault <[email protected]>
2151
2152 Merge branch 'issue547' into 'master'
2153 do not install libtiff-4.pc when tiff-install is reset
2154
2155 Closes #547
2156
2157 See merge request libtiff/libtiff!481
2158
2159 2023-05-06 Even Rouault <[email protected]>
2160
2161 Merge branch 'fix_548' into 'master'
2162 LZWDecode(): avoid crash when trying to read again from a strip with a...
2163
2164 Closes #548
2165
2166 See merge request libtiff/libtiff!484
2167
2168 2023-05-06 Even Rouault <[email protected]>
2169
2170 Merge branch 'tiffcrop_fix_553_multi-image-errors' into 'master'
2171 tiffcrop: fix 553 by considering error return of writeSelections()
2172
2173 Closes #553
2174
2175 See merge request libtiff/libtiff!485
2176
2177 2023-05-06 Even Rouault <[email protected]>
2178
2179 Merge branch 'tif_ojpeg_fix-554_FPE' into 'master'
2180 tif_ojpeg.c fix 554 by checking for division by zero
2181
2182 Closes #554
2183
2184 See merge request libtiff/libtiff!486
2185
2186 2023-05-06 Su Laus <[email protected]>
2187
2188 tif_ojpeg.c fix 554 by checking for division by zero.
2189
2190 2023-05-05 Su_Laus <[email protected]>
2191
2192 Consider error return of writeSelections(). Fixes #553.
2193
2194 2023-04-29 Even Rouault <[email protected]>
2195
2196 LZWDecode(): avoid crash when trying to read again from a strip with a missing end-of-information marker (fixes #548)
2197
2198 2023-04-25 Su_Laus <[email protected]>
2199
2200 Add DNG tags up to version 1.6.0.0 and some TIFF/EP tags and update documentation
2201 Amend MR !337 'Add support for DNG tags up to version 1.6.0.0 and some TIFF/EP tags' from Sami Liedes:
2202 - Set most tags to OkToChange=1.
2203 - Define BATTERYLEVEL tag as ASCII and convert values of rational variant to ASCII.
2204 - TIFF documentation updated for tags recognized by LibTiff (DNG 1.6 and others).
2205 - TIFF/EP tags added, which are equivalent to EXIF tags. This addresses part of #418 as well.
2206 - Definition of tags reformatted (clang-format off) for better readability of tag comments in tiff.h and tif_dirinfo.c
2207
2208 2023-04-23 Roman <[email protected]>
2209
2210 do not install libtiff-4.pc when tiff-install is reset.
2211
2212 2023-04-21 Even Rouault <[email protected]>
2213
2214 Merge branch 'mymaster1' into 'master'
2215 fix runtime error: applying zero offset to null pointer
2216
2217 See merge request libtiff/libtiff!479
2218
2219 2023-04-21 xiaoxiaoafeifei <[email protected]>
2220
2221 countInkNamesString(): fix `UndefinedBehaviorSanitizer`: applying zero offset to null pointer
2222
2223 2023-03-26 Even Rouault <[email protected]>
2224
2225 Merge branch 'tif_ovrcache_TIFFSetSubDirectory' into 'master'
2226 tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573)
2227
2228 See merge request libtiff/libtiff!478
2229
2230 2023-03-26 Even Rouault <[email protected]>
2231
2232 tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573)
2233
2234 2023-03-26 Even Rouault <[email protected]>
2235
2236 Merge branch 'even_faster_setdirectory_with_IFDlist' into 'master'
2237 Even faster TIFFSetDirectory() using IFD list.
2238
2239 See merge request libtiff/libtiff!477
2240
2241 2023-03-26 Su Laus <[email protected]>
2242
2243 Even faster TIFFSetDirectory() using IFD list.
2244
2245 2023-03-12 Even Rouault <[email protected]>
2246
2247 Merge branch 'faster-setdirectory_newMR' into 'master'
2248 Optimize relative seeking with TIFFSetDirectory
2249
2250 See merge request libtiff/libtiff!474
2251
2252 2023-03-12 Su Laus <[email protected]>
2253
2254 Optimize relative seeking with TIFFSetDirectory.
2255
2256 2023-03-11 Even Rouault <[email protected]>
2257
2258 Merge branch 'master' into 'master'
2259 Fix memory leak in tiffcrop.c
2260
2261 See merge request libtiff/libtiff!475
2262
2263 2023-03-08 zhailiangliang <[email protected]>
2264
2265 Fix memory leak in tiffcrop.c.
2266
2267 2023-02-23 Even Rouault <[email protected]>
2268
2269 Merge branch 'skip-thumbnail-test' into 'master'
2270 test: avoid running tool tests if not built
2271
2272 Closes #421
2273
2274 See merge request libtiff/libtiff!334
2275
2276 2023-02-22 Sam James <[email protected]>
2277
2278 test (cmake): skip script tests if tools aren't built.
2279 In Gentoo, we avoid building the tools for multilib (32-bit, x86) builds on
2280 amd64/x86_64 because we only need the library to keep binary applications working.
2281
2282 This causes a test failure in e.g. tiffcp-thumbnail.sh as the 'thumbnail'
2283 binary isn't built. Skip it if unavailable.
2284
2285 Fixes: https://gitlab.com/libtiff/libtiff/-/issues/421
2286
2287 2023-02-22 Sam James <[email protected]>
2288
2289 test (autotools): skip script tests if tools aren't built.
2290 In Gentoo, we avoid building the tools for multilib (32-bit, x86) builds on
2291 amd64/x86_64 because we only need the library to keep binary applications working.
2292
2293 This causes a test failure in e.g. tiffcp-thumbnail.sh as the 'thumbnail'
2294 binary isn't built. Skip it if unavailable.
2295
2296 Fixes: https://gitlab.com/libtiff/libtiff/-/issues/421
2297
2298 2023-02-16 Even Rouault <[email protected]>
2299
2300 Merge branch 'fix_Unlink_first_directory_0' into 'master'
2301 Fix TIFFUnlinkDirectory(0) case and unlink of first directory.
2302
2303 See merge request libtiff/libtiff!460
2304
2305 2023-02-16 Even Rouault <[email protected]>
2306
2307 Merge branch 'tif_luv_check_NaN_fix_#530' into 'master'
2308 tif_luv: Check and correct for NaN data in uv_encode().
2309
2310 Closes #530
2311
2312 See merge request libtiff/libtiff!473
2313
2314 2023-02-16 Su_Laus <[email protected]>
2315
2316 tif_luv: Check and correct for NaN data in uv_encode().
2317 Closes #530
2318
2319 See merge request !473
2320
2321 2023-02-14 Even Rouault <[email protected]>
2322
2323 Merge branch 'tiffcrop_dont_reuse_input_buffer_fix_527' into 'master'
2324 tiffcrop: Do not reuse input buffer for subsequent images. Fix issue 527
2325
2326 Closes #527
2327
2328 See merge request libtiff/libtiff!472
2329
2330 2023-02-14 Su_Laus <[email protected]>
2331
2332 tiffcrop: Do not reuse input buffer for subsequent images. Fix issue 527
2333 Reuse of read_buff within loadImage() from previous image is quite unsafe, because other functions (like rotateImage() etc.) reallocate that buffer with different size without updating the local prev_readsize value.
2334
2335 Closes #527
2336
2337 2023-02-08 Su_Laus <[email protected]>
2338
2339 Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 bits.
2340 Closes #484
2341
2342 2023-02-08 Even Rouault <[email protected]>
2343
2344 Merge branch 'test_ifd_loop_detection_fix_CoverityScan_ln_55' into 'master'
2345 test_ifd_loop_detection: fix Coverity Scan issue CID 1520750: Null pointer...
2346
2347 See merge request libtiff/libtiff!470
2348
2349 2023-02-08 Su_Laus <[email protected]>
2350
2351 test_ifd_loop_detection: fix Coverity Scan issue CID 1520750: Null pointer dereferences (NULL_RETURNS) line 55.
2352
2353 2023-02-06 Even Rouault <[email protected]>
2354
2355 Merge branch 'tiffcrop_fix_CoverityScan_line_9676' into 'master'
2356 Fix Coverity Scan issue CID 1520761: Integer handling issues...
2357
2358 See merge request libtiff/libtiff!469
2359
2360 2023-02-06 Su_Laus <[email protected]>
2361
2362 Fix Coverity Scan issue CID 1520761: Integer handling issues (OVERFLOW_BEFORE_WIDEN) tiffcrop.c: 9676 in rotateImage()
2363
2364 2023-02-05 Even Rouault <[email protected]>
2365
2366 Merge branch 'tiffcrop_R270_fix#492' into 'master'
2367 tiffcrop: Amend rotateImage() not to toggle the input (main) image width and...
2368
2369 Closes #519, #518, #499, #495, #494, #493 et #492
2370
2371 See merge request libtiff/libtiff!465
2372
2373 2023-02-05 Su_Laus <[email protected]>
2374
2375 tiffcrop: Amend rotateImage() not to toggle the input (main) image width and length parameters when only cropped image sections are rotated. Remove buffptr from region structure because never used.
2376 Closes #492 #493 #494 #495 #499 #518 #519
2377
2378 2023-02-05 Even Rouault <[email protected]>
2379
2380 Merge branch 'tiffcrop_correctly_update_buffersize_after_rotate_fix#520' into 'master'
2381 tiffcrop correctly update buffersize after rotateImage() fix#520
2382
2383 Closes #520
2384
2385 See merge request libtiff/libtiff!467
2386
2387 2023-02-05 Even Rouault <[email protected]>
2388
2389 Merge branch 'tiffcrop_composite_image_assumption_test_fix#496' into 'master'
2390 tiffcrop: added check for assumption on composite images (fixes #496)
2391
2392 Closes #501, #500, #498, #497 et #496
2393
2394 See merge request libtiff/libtiff!466
2395
2396 2023-02-05 Su Laus <[email protected]>
2397
2398 tiffcrop: added check for assumption on composite images (fixes #496)
2399 tiffcrop: For composite images with more than one region, the combined_length or combined_width always needs to be equal, respectively. Otherwise, even the first section/region copy action might cause buffer overrun. This is now checked before the first copy action.
2400
2401 Closes #496, #497, #498, #500, #501.
2402
2403 2023-02-04 Su_Laus <[email protected]>
2404
2405 tiffcrop correctly update buffersize after rotateImage() fix#520 -- enlarge buffsize and check integer overflow within rotateImage().
2406
2407 2023-02-04 Even Rouault <[email protected]>
2408
2409 Merge branch 'test_subidf_loop' into 'master'
2410 test_ifd_loop_detection: Added test to check loops in SubIFDs that are chained.
2411
2412 See merge request libtiff/libtiff!464
2413
2414 2023-02-04 Su Laus <[email protected]>
2415
2416 test_ifd_loop_detection: Added test to check loops in SubIFDs that are chained.
2417
2418 2023-02-04 Su_Laus <[email protected]>
2419
2420 Fix TIFFUnlinkDirectory(0) case and unlink of first directory.
2421 If directory number 0 is unlinked, then the base offset variables within LibTiff are not updated. As a result, a subsequent TIFFSetDirectory() first goes to the unlinked former directory number 0.
2422
2423 In addition, the error case for dirn=0 is handled.
2424
2425 This MR fixes that by updating the base offset variables tif->tif_header.classic.tiff_diroff and tif->tif_header.big.tiff_diroff.
2426
2427 2023-02-03 Even Rouault <[email protected]>
2428
2429 Merge branch 'TiffClose_NULL_ptr_dereferencing_fix_515' into 'master'
2430 TIFFClose() avoid NULL pointer dereferencing. fix#515
2431
2432 Closes #515
2433
2434 See merge request libtiff/libtiff!468
2435
2436 2023-02-03 Su_Laus <[email protected]>
2437
2438 TIFFClose() avoid NULL pointer dereferencing. fix#515.
2439 Closes #515
2440
2441 tiffcrop correctly update buffersize after rotateImage() fix#520 rotateImage() set up a new buffer and calculates its size individually. Therefore, seg_buffs[] size needs to be updated accordingly. Before this fix, the seg_buffs buffer size was calculated with a different formula than within rotateImage().
2442 Closes #520.
2443
2444 2023-01-25 Even Rouault <[email protected]>
2445
2446 Merge branch 'add_windows_DLL_versioninfo' into 'master'
2447 Add versioninfo resource files for DLL and tools compiled with Windows MSVC and MINGW.
2448
2449 See merge request libtiff/libtiff!455
2450
2451 2023-01-25 Su Laus <[email protected]>
2452
2453 Add versioninfo resource files for DLL and tools compiled with Windows MSVC and MINGW.
2454
2455 2023-01-22 Even Rouault <[email protected]>
2456
2457 Merge branch 'tif_hash_set_order_include' into 'master'
2458 tif_hash_set.c: include tif_hash_set.h after tif_config.h to let a chance for...
2459
2460 See merge request libtiff/libtiff!462
2461
2462 2023-01-22 Even Rouault <[email protected]>
2463
2464 tif_hash_set.c: include tif_hash_set.h after tif_config.h to let a chance for GDAL symbol renaming trick
2465
2466 2023-01-22 Even Rouault <[email protected]>
2467
2468 Merge branch 'fix_513' into 'master'
2469 Fax3: fix failure to decode some fax3 images (fixes #513)
2470
2471 Closes #513
2472
2473 See merge request libtiff/libtiff!461
2474
2475 2023-01-21 Even Rouault <[email protected]>
2476
2477 Add test for Fax3 decoding issues (refs #513)
2478
2479 2023-01-21 Even Rouault <[email protected]>
2480
2481 Merge branch 'tiffcrop_fix_#488' into 'master'
2482 tiffcrop: Correct simple copy paste error. Fix #488.
2483
2484 Closes #488
2485
2486 See merge request libtiff/libtiff!459
2487
2488 2023-01-21 Su Laus <[email protected]>
2489
2490 tiffcrop: Correct simple copy paste error. Fix #488.
2491
2492 2023-01-21 Even Rouault <[email protected]>
2493
2494 Fax3: fix failure to decode some fax3 images (fixes #513)
2495 Patch by @jsummers26
2496
2497 2023-01-12 Even Rouault <[email protected]>
2498
2499 Merge branch 'tiffmedian_fix_#477' into 'master'
2500 tiffmedian: avoid zero num_colors, fixes #477
2501
2502 Closes #477
2503
2504 See merge request libtiff/libtiff!458
2505
2506 2023-01-12 Even Rouault <[email protected]>
2507
2508 Merge branch 'fax2ps_fixes_#475' into 'master'
2509 fax2ps: fixes #475 buffer overflow in qsort function pcompar.
2510
2511 Closes #475
2512
2513 See merge request libtiff/libtiff!457
2514
2515 2023-01-12 Su_Laus <[email protected]>
2516
2517 tiffmedian: avoid zero num_colors, fixes #477.
2518
2519 fax2ps: fixes #475 buffer overflow in qsort function pcompar.
2520
2521 2023-01-09 Even Rouault <[email protected]>
2522
2523 Merge branch 'fix_241_tiffset_file_size_limit' into 'master'
2524 tiffset: get filesize to allocate only the required memory. Fixes issue #241
2525
2526 Closes #241
2527
2528 See merge request libtiff/libtiff!451
2529
2530 2023-01-09 Su Laus <[email protected]>
2531
2532 tiffset: get filesize to allocate only the required memory. Fixes issue #241
2533
2534 2023-01-09 Even Rouault <[email protected]>
2535
2536 Merge branch '_TIFFCleanupIFDOffsetAndNumberMaps' into 'master'
2537 Add _TIFFCleanupIFDOffsetAndNumberMaps() and call it from TIFFUnlinkDirectory()
2538
2539 See merge request libtiff/libtiff!454
2540
2541 2023-01-06 Even Rouault <[email protected]>
2542
2543 Remove use of tif_dirnumber.
2544
2545 TIFFSetSubDirectory(): call _TIFFCleanupIFDOffsetAndNumberMaps()
2546
2547 struct tiff: remove unused tif_dirlistoff.
2548
2549 TIFFUnlinkDirectory(): reset tif_dirnumber.
2550
2551 Add _TIFFCleanupIFDOffsetAndNumberMaps() and call it from TIFFUnlinkDirectory()
2552
2553 2022-12-29 Even Rouault <[email protected]>
2554
2555 Merge branch 'cmake_in_files_formatting_sensitive' into 'master'
2556 Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in...
2557
2558 See merge request libtiff/libtiff!452
2559
2560 2022-12-28 Su_Laus <[email protected]>
2561
2562 Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in because sensitive for CMake scripts. - explanation added
2563
2564 2022-12-26 Su_Laus <[email protected]>
2565
2566 Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in because sensitive for CMake scripts.
2567
2568 2022-12-19 Even Rouault <[email protected]>
2569
2570 Merge branch 'manpage_multi-page-TIFF' into 'master'
2571 manpage: Add multi page TIFF and SubIFDs description and read / write example.
2572
2573 See merge request libtiff/libtiff!450
2574
2575 2022-12-19 Su Laus <[email protected]>
2576
2577 manpage: Add multi page TIFF and SubIFDs description and read / write example.
2578
2579 2022-12-18 Even Rouault <[email protected]>
2580
2581 Merge branch 'TIFFOpen_r+_windows_behaviour' into 'master'
2582 Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux.
2583
2584 See merge request libtiff/libtiff!449
2585
2586 2022-12-16 Su_Laus <[email protected]>
2587
2588 Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux.
2589
2590 2022-12-15 Even Rouault <[email protected]>
2591
2592 Merge branch 'ossfuzz_54343' into 'master'
2593 TIFFSetDirectory: avoid harmless unsigned-integer-overflow
2594
2595 See merge request libtiff/libtiff!447
2596
2597 2022-12-15 Even Rouault <[email protected]>
2598
2599 TIFFSetDirectory: avoid harmless unsigned-integer-overflow.
2600 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54343
2601
2602 2022-12-14 Even Rouault <[email protected]>
2603
2604 Merge branch 'ossfuzz_54311' into 'master'
2605 TIFFWriteDirectorySec(): avoid harmless unsigned-integer-overflow
2606
2607 See merge request libtiff/libtiff!446
2608
2609 2022-12-14 Even Rouault <[email protected]>
2610
2611 TIFFWriteDirectorySec(): avoid harmless unsigned-integer-overflow.
2612 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54311
2613
2614 2022-12-14 Even Rouault <[email protected]>
2615
2616 libtiff v4.5.0rc2 preparation
2617
2618 2022-12-14 Su_Laus <[email protected]>
2619
2620 tiffinfo: update curdir from uint16_t to tdir_t for more than 64k IFD handling.
2621
2622 2022-12-13 Even Rouault <[email protected]>
2623
2624 Merge branch 'fix_502' into 'master'
2625 Make TIFFSetDirectory(tiff, 65534) work again (fixes #502)
2626
2627 Closes #502
2628
2629 See merge request libtiff/libtiff!436
2630
2631 2022-12-13 Even Rouault <[email protected]>
2632
2633 Add tests for IFD loop detection.
2634
2635 Fix IFD loop detection.
2636
2637 Use UINT_MAX.
2638
2639 Make TIFF_MAX_DIR_COUNT a autoconf/CMake setting.
2640
2641 2022-12-13 Even Rouault <[email protected]>
2642
2643 Merge branch 'build-shared-by-default' into 'master'
2644 Restore shared libraries by default
2645
2646 See merge request libtiff/libtiff!437
2647
2648 2022-12-13 shaun walbridge <[email protected]>
2649
2650 CMake: restore shared libraries by default for top-level build.
2651
2652 2022-12-12 Even Rouault <[email protected]>
2653
2654 Add a TIFF_MAX_DIR_COUNT public #define.
2655
2656 TIFFCurrentDirectory(), TIFFNumberOfDirectories(), TIFFSetDirectory(), TIFFUnlinkDirectory(): use tdir_t that is now a uint32_t, and raise limit of IFDs to 1048576
2657
2658 IFD loop checking: use hashmap to avoid quadratic performance.
2659
2660 Add a hashset/hashmap implementation (ported from GDAL's CPLHashSet)
2661
2662 Make TIFFSetDirectory(tiff, 65534) work again (fixes #502)
2663
2664 2022-12-11 Even Rouault <[email protected]>
2665
2666 Merge branch 'do_not_format_tiffvers_h' into 'master'
2667 Revert formatting of tiffvers.h and add TIFFLIB_MAJOR_VERSION, TIFFLIB_MINOR_VERSION, TIFFLIB_MICRO_VERSION defines
2668
2669 See merge request libtiff/libtiff!434
2670
2671 2022-12-11 Even Rouault <[email protected]>
2672
2673 Merge branch 'tiffcrop_exclude_some_comment_from_clang-format' into 'master'
2674 tiffcrop: Exclude some comments from clang-format
2675
2676 See merge request libtiff/libtiff!435
2677
2678 2022-12-11 Su Laus <[email protected]>
2679
2680 tiffcrop: Exclude some comments from clang-format.
2681
2682 2022-12-11 Even Rouault <[email protected]>
2683
2684 tiffvers.h.in: add clang-format off/on.
2685
2686 2022-12-10 Even Rouault <[email protected]>
2687
2688 tiffvers.h: add TIFFLIB_MAJOR_VERSION, TIFFLIB_MINOR_VERSION, TIFFLIB_MICRO_VERSION defines
2689 Also add a TIFFLIB_AT_LEAST() macro
2690
2691 tiffvers.h: revert formatting.
2692
2693 Exclude reformatting of tiffvers.h which breaks version detection for FindTIFF.cmake
2694
2695 2022-12-09 Even Rouault <[email protected]>
2696
2697 Merge branch 'release_4_5_0' into 'master'
2698 Prepare v4.5.0 release
2699
2700 See merge request libtiff/libtiff!433
2701
2702 2022-12-09 Even Rouault <[email protected]>
2703
2704 libtiff v4.5.0rc1 preparation
2705
2706 2022-12-08 Even Rouault <[email protected]>
2707
2708 Merge branch 'reformat' into 'master'
2709 Whole code-base reformatting
2710
2711 See merge request libtiff/libtiff!431
2712
2713 2022-12-08 Even Rouault <[email protected]>
2714
2715 Add .git-blame-ignore-revs.
2716
2717 tiffcrop: remove version_id and rev_date.
2718
2719 2022-12-08 pre-commit run by Even Rouault <[email protected]>
2720
2721 Reformatting in all other directories using 'pre-commit run'
2722
2723 Reformatting in test/ using 'pre-commit run'
2724
2725 Reformatting in tools/ using 'pre-commit run'
2726
2727 Reformatting in libtiff/ using 'pre-commit run'
2728
2729 2022-12-08 Even Rouault <[email protected]>
2730
2731 Add .clang-format, .pre-commit-config.yaml and CONTRIBUTING.md.
2732
2733 Remove vim/emacs formatting footers.
2734
2735 2022-11-29 Even Rouault <[email protected]>
2736
2737 Merge branch 'fix_489' into 'master'
2738 TIFFWriteRawStrip(): restore capabilities to append data in the current strip (fixes #489)
2739
2740 Closes #489
2741
2742 See merge request libtiff/libtiff!430
2743
2744 2022-11-29 Even Rouault <[email protected]>
2745
2746 Add test case for scenario of issue #489.
2747
2748 TIFFWriteRawStrip(): restore capabilities to append data in the current strip (fixes #489)
2749 This fixes a regression of libtiff 4.4.0
2750
2751 2022-11-29 Even Rouault <[email protected]>
2752
2753 Merge branch 'manpage_re-entrant_error_handler' into 'master'
2754 manpage update for re-entrant error handler TIFFErrorExtR(), TIFFOpenExt() and...
2755
2756 See merge request libtiff/libtiff!427
2757
2758 2022-11-29 Su Laus <[email protected]>
2759
2760 manpage update for re-entrant error handler TIFFErrorExtR(), TIFFOpenExt() and...
2761
2762 2022-11-27 Even Rouault <[email protected]>
2763
2764 Merge branch 'tiffcrop_fix_#169' into 'master'
2765 tiffcrop: Add check if (bps != 1) in writeSingleSection() for...
2766
2767 Closes #169
2768
2769 See merge request libtiff/libtiff!429
2770
2771 2022-11-27 Su Laus <[email protected]>
2772
2773 tiffcrop: Add check if (bps != 1) in writeSingleSection() for...
2774
2775 2022-11-26 Even Rouault <[email protected]>
2776
2777 Merge branch 'TIFFErrorExtR_fix_missing_calls' into 'master'
2778 TIFFErrorExt() was not replaced with TIFFErrorExtR() everywhere in libtiff....
2779
2780 See merge request libtiff/libtiff!428
2781
2782 2022-11-26 Su Laus <[email protected]>
2783
2784 TIFFErrorExt() was not replaced with TIFFErrorExtR() everywhere in libtiff....
2785
2786 2022-11-25 Even Rouault <[email protected]>
2787
2788 Merge branch 'tif_jpeg_build_fix' into 'master'
2789 tif_jpeg.c: fix compilation with MSVC (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
2790
2791 See merge request libtiff/libtiff!426
2792
2793 2022-11-25 Even Rouault <[email protected]>
2794
2795 tif_jpeg.c: fix compilation with MSVC (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
2796
2797 2022-11-25 Even Rouault <[email protected]>
2798
2799 Merge branch 'fix_0fd1a81d3547acb8f5be50bbbc3e44bde01c014b' into 'master'
2800 JPEGEncode(): fix wrong pointer data type with libjpeg-turbo 2.2dev in 12-bit mode
2801
2802 See merge request libtiff/libtiff!425
2803
2804 2022-11-25 Even Rouault <[email protected]>
2805
2806 JPEGEncode(): fix wrong pointer data type with libjpeg-turbo 2.2dev in 12-bit mode
2807 (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
2808
2809 2022-11-25 Even Rouault <[email protected]>
2810
2811 Merge branch 'libjpegturbo_dual' into 'master'
2812 Add support for libjpeg-turbo 2.2-dev 8/12 bit dual mode
2813
2814 See merge request libtiff/libtiff!422
2815
2816 2022-11-25 Even Rouault <[email protected]>
2817
2818 Add support for libjpeg-turbo 2.2-dev 8/12 bit dual mode.
2819
2820 2022-11-23 Even Rouault <[email protected]>
2821
2822 Merge branch 'windows-fix' into 'master'
2823 libtiff: Fix TIFFOpen* for the Windows platform in tif_unix.c
2824
2825 See merge request libtiff/libtiff!424
2826
2827 2022-11-23 Francois Bleibel <[email protected]>
2828
2829 libtiff: Fix TIFFOpen* for the Windows platform in tif_unix.c.
2830 I'm not sure where this change was made, but it must have been in a recent update. TIFFOpenWEx is now TIFFOpenWExt, and _TIFFgetMode takes additional arguments.
2831
2832 Verified: Tested libtiff on a local Windows build.
2833
2834 2022-11-23 Even Rouault <[email protected]>
2835
2836 Merge branch 'tiffcrop_signed_vs_unsigned' into 'master'
2837 tiffcrop.c: fix warning about signed vs unsigned comparison
2838
2839 See merge request libtiff/libtiff!423
2840
2841 2022-11-23 Even Rouault <[email protected]>
2842
2843 tiffcrop.c: fix warning about signed vs unsigned comparison.
2844
2845 2022-11-23 Even Rouault <[email protected]>
2846
2847 Merge branch 'TIFFClientOpenExt_warning_fix' into 'master'
2848 TIFFClientOpenExt(): fix warning on 32-bit platforms (master only)
2849
2850 See merge request libtiff/libtiff!421
2851
2852 2022-11-23 Even Rouault <[email protected]>
2853
2854 TIFFClientOpenExt(): fix warning on 32-bit platforms (master only)
2855
2856 2022-11-23 Even Rouault <[email protected]>
2857
2858 Merge branch 'tiffcp_TIFFOpenOptionsFree_memleak_fix' into 'master'
2859 tiffcp: fix leak of TIFFOpenOptionsAlloc() introduced in latest commit (master only)
2860
2861 See merge request libtiff/libtiff!420
2862
2863 2022-11-23 Even Rouault <[email protected]>
2864
2865 tiffcp: fix leak of TIFFOpenOptionsAlloc() introduced in latest commit (master only)
2866 Fixes Coverity CID 1517032
2867
2868 2022-11-23 Even Rouault <[email protected]>
2869
2870 Merge branch 'TIFFOpenOptionsSetMaxSingleMemAlloc' into 'master'
2871 Add TIFFOpenOptionsSetMaxSingleMemAlloc() to define a limit in bytes for a single memory allocation done by libtiff
2872
2873 See merge request libtiff/libtiff!419
2874
2875 2022-11-23 Even Rouault <[email protected]>
2876
2877 Emit explicit error message when tif_max_single_mem_alloc is exceeded.
2878
2879 test_open_options: test TIFFOpenOptionsSetMaxSingleMemAlloc()
2880
2881 Rename test_error_handlers to test_open_options.
2882
2883 tiffinfo, tiffcp, tiffcrop, tiffsplit, tiff2rgba, tiff2ps: use TIFFOpenOptionsSetMaxSingleMemAlloc()
2884
2885 Convert uses of _TIFFmalloc/realloc/calloc/free to the Ext functions.
2886
2887 2022-11-22 Even Rouault <[email protected]>
2888
2889 Add TIFFOpenOptionsSetMaxSingleMemAlloc()
2890 to define a limit in bytes for a single memory allocation done by libtiff.
2891
2892 Also add internal functions used in replacement of the non Ext ones:
2893 void* _TIFFmallocExt(TIFF* tif, tmsize_t s);
2894 void* _TIFFcallocExt(TIFF* tif, tmsize_t nmemb, tmsize_t siz);
2895 void* _TIFFreallocExt(TIFF* tif, void* p, tmsize_t s);
2896 void _TIFFfreeExt(TIFF* tif, void* p);
2897
2898 2022-11-22 Even Rouault <[email protected]>
2899
2900 Merge branch 'TIFFOpenEx' into 'master'
2901 Add TIFFOpenExt(), TIFFOpenWExt() and TIFFFdOpenExt() with re-entrant error handlers
2902
2903 See merge request libtiff/libtiff!413
2904
2905 2022-11-21 Even Rouault <[email protected]>
2906
2907 Remove TIFFSetErrorHandlerExtR() and TIFFSetWarningHandlerExtR() that were temporarily added in master
2908
2909 Add a _TIFFErrorEarly() function to be able to use the re-entrant error handler, even before TIFF* is valid
2910
2911 Rework TIFFOpenExt() and similar to use an opaque TIFFOpenOptions* opts argument, with alloc, free and setters
2912
2913 Document TIFFOpenExt, TIFFOpenWExt, TIFFFdOpenExt, TIFFClientOpenExt, TIFFSetErrorHandlerExtR, TIFFSetWarningHandlerExtR
2914
2915 2022-11-21 Even Rouault <[email protected]>
2916
2917 Add TIFFOpenExt(), TIFFOpenWExt() and TIFFFdOpenExt() with re-entrant error handlers
2918 Rename TIFFClientOpenEx() to TIFFClientOpenExt()
2919
2920 Rework signature of the re-entrant error handlers and of
2921 TIFFSetWarningHandlerExt() and TIFFSetErrorHandlerExt()
2922
2923 Use structures that can be extended as extra argument.
2924
2925 Leverages and amends https://gitlab.com/libtiff/libtiff/-/merge_requests/409
2926
2927 2022-11-21 Even Rouault <[email protected]>
2928
2929 Merge branch 'manpage_fix485_file-descriptor_clientdata' into 'master'
2930 manpage: Correct description of file handle/descriptors tif_fd and tif_clientdata. Closes #485.
2931
2932 Closes #485
2933
2934 See merge request libtiff/libtiff!418
2935
2936 2022-11-21 Su Laus <[email protected]>
2937
2938 manpage: Correct description of file handle/descriptors tif_fd and tif_clientdata. Closes #485.
2939
2940 2022-11-20 Even Rouault <[email protected]>
2941
2942 Merge branch 'manpage_fix440_fix28_TIFFOpen_SubIFD_update' into 'master'
2943 manpage: fix28, fix440, update TIFFOpen and SubIFD
2944
2945 Closes #440 et #28
2946
2947 See merge request libtiff/libtiff!417
2948
2949 2022-11-20 Su Laus <[email protected]>
2950
2951 manpage: fix28, fix440, update TIFFOpen and SubIFD.
2952
2953 2022-11-17 Even Rouault <[email protected]>
2954
2955 Merge branch 'cmake_tiff_install_warning' into 'master'
2956 CMakeLists.txt: fix warning with -Wdev
2957
2958 See merge request libtiff/libtiff!416
2959
2960 2022-11-13 Even Rouault <[email protected]>
2961
2962 CMakeLists.txt: fix warning with -Wdev.
2963 ```
2964 CMake Warning (dev) at CMakeLists.txt:62 (option):
2965 Policy CMP0077 is not set: option() honors normal variables. Run "cmake
2966 --help-policy CMP0077" for policy details. Use the cmake_policy command to
2967 set the policy and suppress this warning.
2968
2969 For compatibility with older versions of CMake, option is clearing the
2970 normal variable 'tiff-install'.
2971 This warning is for project developers. Use -Wno-dev to suppress it.
2972 ```
2973
2974 2022-11-12 Even Rouault <[email protected]>
2975
2976 Merge branch 'fix_479' into 'master'
2977 _TIFFReadEncodedTileAndAllocBuffer(): avoid excessive memory allocation on...
2978
2979 See merge request libtiff/libtiff!412
2980
2981 2022-11-12 Even Rouault <[email protected]>
2982
2983 Merge branch 'typo_fix' into 'master'
2984 tif_dirread.c: fix typo in comment
2985
2986 See merge request libtiff/libtiff!414
2987
2988 2022-11-12 Even Rouault <[email protected]>
2989
2990 tif_dirread.c: fix typo in comment.
2991
2992 2022-11-11 Even Rouault <[email protected]>
2993
2994 _TIFFReadEncodedTileAndAllocBuffer(): avoid excessive memory allocation on broken files (fixes #479)
2995
2996 2022-11-10 Even Rouault <[email protected]>
2997
2998 Merge branch 'bugfix/tiff2pdf-stdout' into 'master'
2999 tiff2pdf Don't try to seek into stdout.
3000
3001 See merge request libtiff/libtiff!367
3002
3003 2022-11-10 Claus-Justus Heine <[email protected]>
3004
3005 tiff2pdf: Don't try to seek into stdout.
3006 Fixes #441
3007
3008 2022-11-08 Even Rouault <[email protected]>
3009
3010 Merge branch 'fix_coverity_1516759' into 'master'
3011 TIFFErrorExtR(): fix Dereference after null check (CID 1516759)
3012
3013 See merge request libtiff/libtiff!411
3014
3015 2022-11-08 Even Rouault <[email protected]>
3016
3017 Merge branch 'fix_ossfuzz_53137' into 'master'
3018 TIFFReadRGBATileExt(): fix (unsigned) integer overflow on strips/tiles > 2 GB
3019
3020 See merge request libtiff/libtiff!410
3021
3022 2022-11-08 Even Rouault <[email protected]>
3023
3024 TIFFErrorExtR(): fix Dereference after null check (CID 1516759)
3025
3026 2022-11-08 Even Rouault <[email protected]>
3027
3028 Merge branch 'no_sprintf' into 'master'
3029 Replace sprintf calls with snprintf
3030
3031 See merge request libtiff/libtiff!408
3032
3033 2022-11-08 Mark Mentovai <[email protected]>
3034
3035 Replace sprintf calls with snprintf.
3036 This makes it possible to build libtiff without warnings using the macOS
3037 13 SDK. Calls to sprintf are replaced with snprintf, passing appropriate
3038 buffer sizes.
3039
3040 It doesn’t appear that any of the changed uses of sprintf were actually
3041 unsafe, so no behavior change is expected aside from SDK compatibility.
3042
3043 The macOS 13 SDK deprecates sprintf as it’s difficult to use safely. The
3044 deprecation warning message is visible when building C++, but it is not
3045 normally visible when building plain C code due to a quirk in how
3046 sprintf is declared in the SDK. However, the deprecation message is
3047 visible when building plain C under Address Sanitizer
3048 (-fsanitize=address). This discrepancy was discovered at
3049 https://crbug.com/1381706 and reported to Apple with a copy at
3050 https://openradar.appspot.com/FB11761475.
3051
3052 The macOS 13 SDK is packaged in Xcode 14.1, released on 2022-11-01. This
3053 also affects the iOS 16 SDK and other 2022-era Apple OS SDKs packaged in
3054 Xcode 14.0, released on 2022-09-12.
3055
3056 libtiff is visible to the Chromium build via PDFium, and this change is
3057 needed to allow Chromium to move forward to the macOS 13 SDK.
3058
3059 This change is limited to the libtiff directory. Other uses of sprintf
3060 were found in contrib, test, and tools.
3061
3062 2022-11-08 Even Rouault <[email protected]>
3063
3064 Merge branch 'reentrant' into 'master'
3065 Add reentrant error functions
3066
3067 See merge request libtiff/libtiff!409
3068
3069 2022-11-08 Even Rouault <[email protected]>
3070
3071 TIFFReadRGBATileExt(): fix (unsigned) integer overflow on strips/tiles > 2 GB
3072 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53137
3073
3074 2022-11-08 Laramie Leavitt <[email protected]>
3075
3076 Add reentrant error functions.
3077 Prior to this change, libtiff relied on global error handlers,
3078 which is problematic when libtiff used by multiple independent
3079 libraries from within the same process, as they may unwittingly
3080 clobber the error handling, introduce race conditions when setting
3081 handlers, or otherwise have unintended side effects.
3082
3083 This change adds error handlers to the TIFF struct, which are
3084 used preferentially when available. The error handlers are invoked
3085 when the re-entrant error functions are called:
3086
3087 void TIFFErrorExtR(TIFF*, const char* module, const char* fmt, ...)
3088 void TIFFWarningExtR(TIFF*, const char* module, const char* fmt, ...)
3089
3090 The handlers have a similar signature to the existing extended
3091 handlers, additionally returning an int:
3092
3093 int TIFFErrorHandlerExtR(thandle_t, const char*, const char*, va_list)
3094
3095 thandle_t is the userdata passed to TIFFOpen
3096 When the handler returns 1, the global handlers are not called.
3097
3098 Custom error/warning handlers may be installed on a per-file
3099 basis by calling the Set functions:
3100
3101 TIFF* tif = TIFFOpen(...);
3102 TIFFSetErrorHandlerExtR(tif, MyErrorHandler);
3103 TIFFSetWarningHandlerExtR(tif, MyWarningHandler);
3104
3105 Additionally, the callsites to TIFFErrorExt and TIFFWarningExt
3106 have been updated to call the reentrant versions.
3107
3108 2022-11-08 Even Rouault <[email protected]>
3109
3110 Merge branch 'tiffcrop_fix_CoverityScan_tmsize_issue' into 'master'
3111 tiffcrop: should fix some Coverity Scan issues OVERFLOW_BEFORE_WIDEN
3112
3113 See merge request libtiff/libtiff!403
3114
3115 2022-11-08 Su Laus <[email protected]>
3116
3117 tiffcrop: should fix some Coverity Scan issues OVERFLOW_BEFORE_WIDEN.
3118
3119 2022-11-02 Even Rouault <[email protected]>
3120
3121 Merge branch 'typo_fix' into 'master'
3122 tif_dirread.c: fix typo in comment
3123
3124 See merge request libtiff/libtiff!407
3125
3126 2022-11-02 Even Rouault <[email protected]>
3127
3128 tif_dirread.c: fix typo in comment.
3129
3130 2022-10-23 Even Rouault <[email protected]>
3131
3132 Merge branch 'tiffcrop_formatting_fix' into 'master'
3133 tiffcrop: add casts in TIFFError() to fix compiler warnings
3134
3135 See merge request libtiff/libtiff!406
3136
3137 2022-10-23 Even Rouault <[email protected]>
3138
3139 Merge branch 'fix_482' into 'master'
3140 CMake: correctly set default value of 'lzma' option when liblzma is detected (fixes #482)
3141
3142 Closes #482
3143
3144 See merge request libtiff/libtiff!404
3145
3146 2022-10-23 Even Rouault <[email protected]>
3147
3148 tiffcrop: add casts in TIFFError() to fix compiler warnings.
3149
3150 CMake: correctly set default value of 'lzma' option when liblzma is detected (fixes #482)
3151
3152 2022-10-20 Even Rouault <[email protected]>
3153
3154 Merge branch 'fix_480' into 'master'
3155 Fix incorrect printf() formatters introduced in recent commits (fixes #480)
3156
3157 Closes #480
3158
3159 See merge request libtiff/libtiff!401
3160
3161 2022-10-19 Even Rouault <[email protected]>
3162
3163 Fix incorrect printf() formatters introduced in recent commits (fixes #480)
3164
3165 2022-10-13 Even Rouault <[email protected]>
3166
3167 Merge branch 'CLIPPATH_tags_corrected' into 'master'
3168 CLIPPATH tags defined twice but differently and also wrongly (#439) - corrected
3169
3170 Closes #439
3171
3172 See merge request libtiff/libtiff!366
3173
3174 2022-10-13 Even Rouault <[email protected]>
3175
3176 Merge branch 'FIELD_IGNORE_warning-messages' into 'master'
3177 Warning messages for FIELD_IGNORE tags for writing and for TIFF_SETGET_UNDEFINED for reading added. (#438)
3178
3179 Closes #438
3180
3181 See merge request libtiff/libtiff!365
3182
3183 2022-10-13 Su Laus <[email protected]>
3184
3185 Warning messages for FIELD_IGNORE tags for writing and for TIFF_SETGET_UNDEFINED for reading added. (#438)
3186
3187 2022-10-13 Even Rouault <[email protected]>
3188
3189 Merge branch 'tag-def_COMPRESSION_corrected' into 'master'
3190 tif_dirinfo.c TIFFTAG_COMPRESSION and _BITSPERSAMPLE definition corrected
3191
3192 See merge request libtiff/libtiff!364
3193
3194 2022-10-13 Even Rouault <[email protected]>
3195
3196 Merge branch 'fix_getopt_included_twice' into 'master'
3197 Fix including module getopt.c twice with CMake and HAVE_GETOPT=false
3198
3199 See merge request libtiff/libtiff!381
3200
3201 2022-10-13 Even Rouault <[email protected]>
3202
3203 Merge branch 'tiffcrop_CoverityScan_fix_PRINTF_ARGS' into 'master'
3204 tiffcrop: fix Coverity Scan issues about PRINTF_ARGS.
3205
3206 See merge request libtiff/libtiff!400
3207
3208 2022-10-13 Su_Laus <[email protected]>
3209
3210 tiffcrop fix Coverity Scan issues about PRINTF_ARGS.
3211
3212 2022-10-13 Even Rouault <[email protected]>
3213
3214 Merge branch 'tiffcrop_fix_#450_too-many-mode-options' into 'master'
3215 tiffcrop: fix #450 too many 'mode' options on command line.
3216
3217 Closes #470 et #450
3218
3219 See merge request libtiff/libtiff!384
3220
3221 2022-10-13 Su Laus <[email protected]>
3222
3223 tiffcrop: fix #450 too many 'mode' options on command line.
3224
3225 2022-10-13 Even Rouault <[email protected]>
3226
3227 Merge branch 'tiffcrop_fix_#435' into 'master'
3228 tiffcrop subroutines require a larger buffer (fixes #271, #381, #386, #388, #389, #435)
3229
3230 Closes #465, #464, #435, #389, #388, #386, #381 et #271
3231
3232 See merge request libtiff/libtiff!382
3233
3234 2022-10-13 Su Laus <[email protected]>
3235
3236 tiffcrop subroutines require a larger buffer (fixes #271, #381, #386, #388, #389, #435)
3237
3238 2022-10-12 Even Rouault <[email protected]>
3239
3240 Merge branch 'InkNames_NumberOfInks_handling_revised' into 'master'
3241 Revised handling of TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value (fixes #149, #150, #152, #168, #250, #269, #398 and #456)
3242
3243 Closes #474, #463, #387, #456, #398, #269, #250, #168, #152, #150 et #149
3244
3245 See merge request libtiff/libtiff!385
3246
3247 2022-10-12 Even Rouault <[email protected]>
3248
3249 Merge branch 'tiffcrop_fix_#411_#413' into 'master'
3250 tiffcrop: disable incompatibility of -Z, -X, -Y, -z options with any PAGE_MODE_x option (fixes #411, #413 and #426)
3251
3252 Closes #426, #413 et #411
3253
3254 See merge request libtiff/libtiff!383
3255
3256 2022-10-10 Even Rouault <[email protected]>
3257
3258 Merge branch 'TIFFAdvanceDirectory_mapped_uio' into 'master'
3259 TIFFAdvanceDirectory(): fix unsigned-integer-overflow in mapped case
3260
3261 See merge request libtiff/libtiff!398
3262
3263 2022-10-10 Even Rouault <[email protected]>
3264
3265 TIFFAdvanceDirectory(): fix unsigned-integer-overflow in mapped case.
3266 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52309
3267
3268 2022-10-08 Even Rouault <[email protected]>
3269
3270 Merge branch 'tiffinfo_parse_SubIFDs' into 'master'
3271 tiffinfo: Updated to parse through SubIFDs and show their tags.
3272
3273 See merge request libtiff/libtiff!396
3274
3275 2022-10-08 Su Laus <[email protected]>
3276
3277 tiffinfo: Updated to parse through SubIFDs and show their tags.
3278
3279 2022-10-07 Roger Leigh <[email protected]>
3280
3281 Merge branch 'master' into 'master'
3282 Moved linking of CMath::CMath into CMath_LIBRARY check
3283
3284 See merge request libtiff/libtiff!397
3285
3286 2022-10-07 Frei Herr <[email protected]>
3287
3288 Moved linking of CMath::CMath into CMath_LIBRARY check.
3289
3290 2022-10-06 Even Rouault <[email protected]>
3291
3292 Merge branch 'rational_precision2double_coverity-fix' into 'master'
3293 rational_precision2double.c: Fix issue from Coverity Scan.
3294
3295 See merge request libtiff/libtiff!395
3296
3297 2022-10-06 Su_Laus <[email protected]>
3298
3299 rational_precision2double.c: Fix issue from Coverity Scan.
3300
3301 Fix including module getopt.c twice with CMake and HAVE_GETOPT=false.
3302 The "make-files" for the tools- and test- programmes include the module getopt.c once directly as additional source and then again by including port.lib.
3303 This can be avoided by including getopt.c as source in port.lib within port\CMakeLists.txt not with PUBLIC but with PRIVATE.
3304
3305 2022-10-06 Even Rouault <[email protected]>
3306
3307 Merge branch 'fix-455_Improved-IFD-loop-handling' into 'master'
3308 Improved IFD-Loop Handling (fixes #455)
3309
3310 Closes #455
3311
3312 See merge request libtiff/libtiff!386
3313
3314 2022-10-06 Su Laus <[email protected]>
3315
3316 Improved IFD-Loop Handling (fixes #455)
3317 IFD infinite looping was not fixed by MR 20 (see #455).
3318 An improved IFD loop handling is proposed.
3319
3320 Basic approach:
3321
3322 - The order in the entire chain must be checked, and not only whether an offset has already been read once.
3323 - To do this, pairs of directory number and offset are stored and checked.
3324 - The offset of a directory number can change.
3325 - TIFFAdvanceDirectory() must also perform an IFD loop check.
3326 - TIFFCheckDirOffset() is replaced by _TIFFCheckDirNumberAndOffset().
3327
3328 Rules for the check:
3329
3330 - If an offset is already in the list, it must have the same IFD number. Otherwise it is an IDF loop.
3331 - If the offset is not in the list and the IFD number is greater than there are list entries, a new list entry is added.
3332 - Otherwise, the offset of the IFD number is updated.
3333
3334 Reference is also made to old bugzilla bug 2772 and MR 20, which did not solve the general issue.
3335 This MR closes #455
3336
3337 2022-10-05 Roger Leigh <[email protected]>
3338
3339 Merge branch 'fix-cmake-subproject' into 'master'
3340 Fix CMake build to be compatible with FetchContent
3341
3342 See merge request libtiff/libtiff!394
3343
3344 2022-10-04 Timothy Lyanguzov <[email protected]>
3345
3346 Apply 9 suggestion(s) to 3 file(s)
3347
3348 2022-10-04 Jeremy Maitin-Shepard <[email protected]>
3349
3350 Fix CMake build to be compatible with FetchContent.
3351 Recent versions of CMake have improved support for including
3352 dependencies, using the FetchContent module, which allows a dependency
3353 to be imported as a subproject and then later found automatically by
3354 calls to `find_package`.
3355
3356 This change makes libtiff's CMake better behaved when used as a
3357 sub-project:
3358
3359 - CMake has a single global namespace for all target names in all
3360 sub-projects. This commit renames the following CMake targets:
3361
3362 - port -> tiff_port
3363 - mkg3states -> tiff_mkg3states
3364 - faxtable -> tiff_faxtable
3365 - release -> tiff_release
3366
3367 - When building TIFF as a sub-project, it is not normally useful to
3368 create install rules for its targets. This commit adds a
3369 `tiff-install` option that controls whether the install rules are
3370 added and defaults to OFF when libtiff is included as a sub-project.
3371
3372 - Previously, libtiff set `BUILD_SHARED_LIBS` to ON by default. With
3373 this commit, that default is only set if libtiff is the top-level
3374 project.
3375
3376 - When using `find_package(TIFF)`, the targets `TIFF::TIFF` and
3377 `TIFF::CXX` are defined. This commit makes libtiff itself define
3378 those targets as aliases, to allow other cmake projects to use
3379 either `find_package` or `FetchContent` interchangeably.
3380
3381 - Adds ZSTD_HAVE_DECOMPRESS_STREAM variable which may be set to bypass
3382 `check_symbol_exists` call. Fixes
3383 https://gitlab.com/libtiff/libtiff/-/issues/472.
3384
3385 2022-09-27 Even Rouault <[email protected]>
3386
3387 Merge branch 'getimage_overflow' into 'master'
3388 Update getimage to support reading large raster images
3389
3390 See merge request libtiff/libtiff!389
3391
3392 2022-09-26 Even Rouault <[email protected]>
3393
3394 Merge branch 'MinGW-warnings_ipctutil' into 'master'
3395 Fix #458: MinGW Windows 64: warning because 'long' is a 32 bits type in...
3396
3397 Closes #458
3398
3399 See merge request libtiff/libtiff!391
3400
3401 2022-09-26 Su Laus <[email protected]>
3402
3403 Fix #458: MinGW Windows 64: warning because 'long' is a 32 bits type in...
3404
3405 2022-09-16 Eric Siegel <[email protected]>
3406
3407 Update getimage to support large raster images.
3408
3409 2022-09-08 Even Rouault <[email protected]>
3410
3411 Merge branch 'typo_fix' into 'master'
3412 tif_lzw.c: fix typo in code comment
3413
3414 See merge request libtiff/libtiff!387
3415
3416 2022-09-08 Even Rouault <[email protected]>
3417
3418 tif_lzw.c: fix typo in code comment.
3419
3420 2022-08-30 Su_Laus <[email protected]>
3421
3422 Revised handling of TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value
3423 In order to solve the buffer overflow issues related to TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value, a revised handling of those tags within LibTiff is proposed:
3424
3425 Behaviour for writing:
3426 `NumberOfInks` MUST fit to the number of inks in the `InkNames` string.
3427 `NumberOfInks` is automatically set when `InkNames` is set.
3428 If `NumberOfInks` is different to the number of inks within `InkNames` string, that will be corrected and a warning is issued.
3429 If `NumberOfInks` is not equal to samplesperpixel only a warning will be issued.
3430
3431 Behaviour for reading:
3432 When reading `InkNames` from a TIFF file, the `NumberOfInks` will be set automatically to the number of inks in `InkNames` string.
3433 If `NumberOfInks` is different to the number of inks within `InkNames` string, that will be corrected and a warning is issued.
3434 If `NumberOfInks` is not equal to samplesperpixel only a warning will be issued.
3435
3436 This allows the safe use of the NumberOfInks value to read out the InkNames without buffer overflow
3437
3438 This MR will close the following issues: #149, #150, #152, #168 (to be checked), #250, #269, #398 and #456.
3439
3440 It also fixes the old bug at http://bugzilla.maptools.org/show_bug.cgi?id=2599, for which the limitation of `NumberOfInks = SPP` was introduced, which is in my opinion not necessary and does not solve the general issue.
3441
3442 2022-08-25 Su_Laus <[email protected]>
3443
3444 tiffcrop: disable incompatibility of -Z, -X, -Y, -z options with any PAGE_MODE_x option (fixes #411 and #413)
3445 tiffcrop does not support –Z, -z, -X and –Y options together with any other PAGE_MODE_x options like -H, -V, -P, -J, -K or –S.
3446
3447 Code analysis:
3448
3449 With the options –Z, -z, the crop.selections are set to a value > 0. Within main(), this triggers the call of processCropSelections(), which copies the sections from the read_buff into seg_buffs[].
3450 In the following code in main(), the only supported step, where that seg_buffs are further handled are within an if-clause with if (page.mode == PAGE_MODE_NONE) .
3451
3452 Execution of the else-clause often leads to buffer-overflows.
3453
3454 Therefore, the above option combination is not supported and will be disabled to prevent those buffer-overflows.
3455
3456 The MR solves issues #411 and #413.
3457
3458 2022-08-21 Even Rouault <[email protected]>
3459
3460 Merge branch 'tiffcrop_S-option_mutually_exclusive' into 'master'
3461 tiffcrop: -S option mutually exclusive (fixes #349, #414, #422, #423, #424)
3462
3463 Closes #424, #423, #422, #414 et #349
3464
3465 See merge request libtiff/libtiff!378
3466
3467 2022-08-20 Su_Laus <[email protected]>
3468
3469 tiffcrop -S option: Make decision simpler.
3470
3471 2022-08-20 Even Rouault <[email protected]>
3472
3473 Merge branch 'remove_death_commented_code' into 'master'
3474 Remove dead code from tif_dirread.c, tif_dirwrite.c and tif_getimage.c
3475
3476 See merge request libtiff/libtiff!380
3477
3478 2022-08-20 Su Laus <[email protected]>
3479
3480 Remove dead code from tif_dirread.c, tif_dirwrite.c and tif_getimage.c.
3481
3482 2022-08-16 Even Rouault <[email protected]>
3483
3484 Merge branch 'coverity_fixes' into 'master'
3485 Silence Coverity Scan false positive warnings about out-of-bounds access
3486
3487 See merge request libtiff/libtiff!379
3488
3489 2022-08-16 Even Rouault <[email protected]>
3490
3491 tif_zip.c: silence Coverity Scan false positive warnings about out-of-bounds access (CID 1491190, 1491197, 1491201)
3492
3493 tif_dirread.c: silence Coverity Scan false positive warnings about out-of-bounds access (CID 1491182, 1491186)
3494
3495 2022-08-16 Even Rouault <[email protected]>
3496
3497 Merge branch 'default_tag_values_extended' into 'master'
3498 Presetting of default tag values extended (e.g. PlanarConfig). (fixes #449)
3499
3500 Closes #449
3501
3502 See merge request libtiff/libtiff!377
3503
3504 2022-08-16 Su Laus <[email protected]>
3505
3506 Presetting of default tag values extended (e.g. PlanarConfig). (fixes #449)
3507
3508 2022-08-15 Su_Laus <[email protected]>
3509
3510 According to Richard Nolde https://gitlab.com/libtiff/libtiff/-/issues/401#note_877637400 the tiffcrop option „-S“ is also mutually exclusive to the other crop options (-X|-Y), -Z and -z.
3511 This is now checked and ends tiffcrop if those arguments are not mutually exclusive.
3512
3513 This MR will fix the following tiffcrop issues: #349, #414, #422, #423, #424
3514
3515 2022-08-09 Even Rouault <[email protected]>
3516
3517 Merge branch 'warning_fix' into 'master'
3518 Fix warning about shadowing
3519
3520 See merge request libtiff/libtiff!376
3521
3522 2022-08-09 Even Rouault <[email protected]>
3523
3524 Fix warning about shadowing.
3525
3526 2022-08-09 Even Rouault <[email protected]>
3527
3528 Merge branch 'fix_225' into 'master'
3529 Deal with RichTIFFIPTC tag written with LONG type (fixes #225)
3530
3531 Closes #225
3532
3533 See merge request libtiff/libtiff!374
3534
3535 2022-08-09 Even Rouault <[email protected]>
3536
3537 Merge branch 'Writing_IFD8_to_ClassicTIFF_bugfix' into 'master'
3538 Correcting defects reported by Coverity Scan for MR !369
3539
3540 See merge request libtiff/libtiff!375
3541
3542 2022-08-09 Su Laus <[email protected]>
3543
3544 Correcting defects reported by Coverity Scan for MR !369.
3545
3546 2022-08-09 Even Rouault <[email protected]>
3547
3548 Merge branch 'fix_442_Writing_IFD8_to_ClassicTIFF' into 'master'
3549 TIFFSetValue(): Writing IFD8 & LONG8 tags to ClassicTIFF corrected (fixes #442)
3550
3551 Closes #442
3552
3553 See merge request libtiff/libtiff!369
3554
3555 2022-08-09 Su Laus <[email protected]>
3556
3557 TIFFSetValue(): Writing IFD8 & LONG8 tags to ClassicTIFF corrected (fixes #442)
3558
3559 2022-08-09 Even Rouault <[email protected]>
3560
3561 Deal with RichTIFFIPTC tag written with LONG type (fixes #225)
3562
3563 2022-08-07 Roger Leigh <[email protected]>
3564
3565 Merge branch 'manpage-functions-added' into 'master'
3566 doc: Missing public functions added to TIFF documentation in Sphinx
3567
3568 See merge request libtiff/libtiff!372
3569
3570 2022-08-07 Su Laus <[email protected]>
3571
3572 doc: Missing public functions added to TIFF documentation in Sphinx.
3573
3574 2022-07-29 Even Rouault <[email protected]>
3575
3576 Merge branch 'tifjpeg_version_check' into 'master'
3577 tif_jpeg.c: allow to pass -DEXPECTED_JPEG_LIB_VERSION=number to do optional...
3578
3579 See merge request libtiff/libtiff!373
3580
3581 2022-07-29 Even Rouault <[email protected]>
3582
3583 tif_jpeg.c: allow to pass -DEXPECTED_JPEG_LIB_VERSION=number to do optional compile-time version check
3584
3585 2022-07-21 Even Rouault <[email protected]>
3586
3587 Merge branch 'TIFFReadFromUserBuffer_fix' into 'master'
3588 TIFFReadFromUserBuffer(): fix clearing of TIFF_CODERSETUP flag that could...
3589
3590 See merge request libtiff/libtiff!371
3591
3592 2022-07-21 Even Rouault <[email protected]>
3593
3594 TIFFReadFromUserBuffer(): fix clearing of TIFF_CODERSETUP flag that could cause issues with reading JPEG compressed files
3595
3596 2022-07-21 Roger Leigh <[email protected]>
3597
3598 Merge branch 'vs2022-fixes' into 'master'
3599 cmake: Correct duplicate definition of _CRT_SECURE_NO_WARNINGS
3600
3601 Closes #443
3602
3603 See merge request libtiff/libtiff!370
3604
3605 2022-07-13 Roger Leigh <[email protected]>
3606
3607 cmake: Correct duplicate definition of _CRT_SECURE_NO_WARNINGS.
3608
3609 2022-07-13 Even Rouault <[email protected]>
3610
3611 Merge branch 'vs2022-fixes' into 'master'
3612 cmake: Fixes for Visual Studio 2022
3613
3614 See merge request libtiff/libtiff!368
3615
3616 2022-07-13 Roger Leigh <[email protected]>
3617
3618 cmake: Fixes for Visual Studio 2022.
3619
3620 2022-07-03 Roger Leigh <[email protected]>
3621
3622 Merge branch 'elf-symbol-export' into 'master'
3623 Explicit export of versioned ELF symbols
3624
3625 Closes #437
3626
3627 See merge request libtiff/libtiff!361
3628
3629 2022-07-03 Even Rouault <[email protected]>
3630
3631 Merge branch 'fix_433' into 'master'
3632 _TIFFCheckFieldIsValidForCodec(): return FALSE when passed a codec-specific...
3633
3634 Closes #433
3635
3636 See merge request libtiff/libtiff!363
3637
3638 2022-07-01 Su_Laus <[email protected]>
3639
3640 CLIPPATH tags defined twice but differently and also wrongly.
3641 In tif_dirinfo.c the tags for clippath are wrongly defined and the tag TIFFTAG_XCLIPPATHUNITS is even different twice. Therefore, those tags cannot be written / read correctly and may even lead to buffer overflow.
3642 E.g.: In the case of TIFFSetField(YCLIPPATHUNITS), a 1 byte storage space is allocated because of TIFF_SETGET_UNDEFINED, in which an int32_t value should be stored because of TIFF_SLONG type definition. Then, an int32_t value is read from that 1 byte storage location.
3643
3644 The current definition is:
3645
3646 { TIFFTAG_CLIPPATH, -1, -3, TIFF_BYTE, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 1, "ClipPath", NULL },
3647 { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_SLONG, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
3648 { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_SBYTE, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
3649 { TIFFTAG_YCLIPPATHUNITS, 1, 1, TIFF_SLONG, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "YClipPathUnits", NULL },
3650
3651 Whereas the correct definition according to TIFF Specification Supplement 1 (https://www.awaresystems.be/imaging/tiff/specification/TIFFPM6.pdf) should be:
3652
3653 { TIFFTAG_CLIPPATH, -3, -3, TIFF_BYTE, 0, TIFF_SETGET_C32_UINT8, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 1, "ClipPath", NULL },
3654 { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_LONG, 0, TIFF_SETGET_UINT32, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
3655 { TIFFTAG_YCLIPPATHUNITS, 1, 1, TIFF_LONG, 0, TIFF_SETGET_UINT32, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "YClipPathUnits", NULL },
3656
3657 Also the set_get_field of the following tag should be corrected from
3658
3659 { TIFFTAG_INTEROPERABILITYIFD, 1, 1, TIFF_IFD8, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "InteroperabilityIFDOffset", NULL },
3660 to
3661 { TIFFTAG_INTEROPERABILITYIFD, 1, 1, TIFF_IFD8, 0, TIFF_SETGET_IFD8, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "InteroperabilityIFDOffset", NULL },
3662
3663 However, if those tags should not be handled by LibTiff because they are deemed as abandoned or unwanted tags, those tags need to be defined with FIELD_IGNORE instead of FIELD_CUSTOM and keeping set_field_type = TIFF_SETGET_UNDEFINED
3664
3665 2022-07-01 Su_Laus <[email protected]>
3666
3667 In tif_dirinfo.c the definition for TIFFTAG_COMPRESSION has different settings of field_readcount=TIFF_VARIABLE (-1) and field_writecount=1. The tag is defined with Count=1, thus field_readcount is wrong and should also be 1. Although TIFFTAG_BITSPERSAMPLE is defined with Count:N=SamplesPerPixel, only ONE uint16_t value is passed with TIFFSetField() and TIFFGetField(). However, an array with N=SamplesPerPixel equal values is written into the TIFF file. Shouldn't field_readcount = field_writecount = 1 then? The behaviour of TiffLib does not change, because the handling is coded directly.
3668
3669 2022-06-27 Even Rouault <[email protected]>
3670
3671 _TIFFCheckFieldIsValidForCodec(): return FALSE when passed a codec-specific tag and the codec is not configured (fixes #433)
3672 This avoids crashes when querying such tags
3673
3674 2022-06-27 Even Rouault <[email protected]>
3675
3676 Merge branch '16bit_cielab' into 'master'
3677 add basic 16bit-cielab support
3678
3679 See merge request libtiff/libtiff!336
3680
3681 2022-06-27 Caolán McNamara <[email protected]>
3682
3683 Add basic 16bit-cielab support.
3684 just a copy of putcontig8bitCIELab that reads 16bit vals but divide l by
3685 257, a and b by 256 before passing to TIFFCIELabToXYZ
3686
3687 motivation: https://bugs.documentfoundation.org/show_bug.cgi?id=131199
3688 the "clavijo16bitlab.tiff" example where tiffinfo says:
3689 ```
3690 Image Width: 2601 Image Length: 3503
3691 Resolution: 96, 96 pixels/inch
3692 Bits/Sample: 16
3693 Compression Scheme: AdobeDeflate
3694 Photometric Interpretation: CIE L*a*b*
3695 Orientation: row 0 top, col 0 lhs
3696 Samples/Pixel: 3
3697 Rows/Strip: 1
3698 Planar Configuration: single image plane
3699 DateTime: 2020:03:07 10:20:42
3700 ```
3701
3702 2022-06-24 Roger Leigh <[email protected]>
3703
3704 Merge branch 'manpage-fixes' into 'master'
3705 Sphinx documentation fixes
3706
3707 See merge request libtiff/libtiff!362
3708
3709 2022-06-24 Roger Leigh <[email protected]>
3710
3711 doc: Correct types and cross-references.
3712
3713 doc: Correct manual page path.
3714
3715 build: Make rational2double static only for automake.
3716 This copies the same logic as used by CMake.
3717
3718 build: Update autoconf version to 4.5.0 and soname to 6.0.0.
3719
3720 build: Update autoconf ld-version-script default.
3721
3722 libtiff: Correct version script for changes since v4.4.0.
3723
3724 libtiff: Update version script documentation.
3725
3726 libtiff: Add symbol versioning of all exported symbols.
3727
3728 2022-06-24 Even Rouault <[email protected]>
3729
3730 Merge branch 'webp_mem_improvements' into 'master'
3731 WEBP codec: avoid temporary buffer and memcpy() on whole tile/strip decoding
3732
3733 See merge request libtiff/libtiff!360
3734
3735 2022-06-24 Roger Leigh <[email protected]>
3736
3737 build: Enable symbol versioning by default.
3738
3739 2022-06-24 Roger Leigh <[email protected]>
3740
3741 Merge branch 'sphinx-manpages' into 'master'
3742 doc: Add Sphinx conversion of all manpages
3743
3744 Closes #361
3745
3746 See merge request libtiff/libtiff!356
3747
3748 2022-06-24 Roger Leigh <[email protected]>
3749
3750 Merge branch 'remove-wince' into 'master'
3751 Remove obsolete WinCE source file
3752
3753 See merge request libtiff/libtiff!357
3754
3755 2022-06-23 Even Rouault <[email protected]>
3756
3757 WEBP codec: avoid temporary buffer and memcpy() on whole tile/strip decoding
3758
3759 2022-06-22 Even Rouault <[email protected]>
3760
3761 Merge branch 'horAcc8_fix' into 'master'
3762 tif_predict.c: make horAcc8() work with icc (ICC) 2021.6.0 20220226 -O2
3763
3764 See merge request libtiff/libtiff!359
3765
3766 2022-06-22 Even Rouault <[email protected]>
3767
3768 tif_predict.c: make horAcc8() work with icc (ICC) 2021.6.0 20220226 -O2.
3769 For a reason I don't understand, recent ICC generates wrong code in -O2
3770 mode for the stride = 3 and 4 cases. The modified code is more
3771 straightforward, so go for it.
3772
3773 2022-06-19 Roger Leigh <[email protected]>
3774
3775 Merge branch 'ci-restore-old' into 'master'
3776 ci: Restore testing with Ubuntu 20.04
3777
3778 See merge request libtiff/libtiff!358
3779
3780 2022-06-19 Roger Leigh <[email protected]>
3781
3782 ci: Restore testing with Ubuntu 20.04.
3783
3784 Remove obsolete WinCE source file.
3785
3786 doc: Add missing punctuation.
3787
3788 doc: Remove semicolon from c:function definition.
3789
3790 doc: Remove remaining HTML entities.
3791
3792 doc: Improve the build page.
3793
3794 2022-06-18 Roger Leigh <[email protected]>
3795
3796 doc: Add Sphinx conversion of all manpages.
3797
3798 2022-06-18 Roger Leigh <[email protected]>
3799
3800 Merge branch 'dist-html' into 'master'
3801 build: Distribute and install HTML documentation
3802
3803 See merge request libtiff/libtiff!352
3804
3805 2022-06-13 Even Rouault <[email protected]>
3806
3807 Merge branch 'pkgconfig' into 'master'
3808 Adding Requires.private generation
3809
3810 See merge request libtiff/libtiff!355
3811
3812 2022-06-13 Yishen Miao <[email protected]>
3813
3814 Adding Requires.private generation.
3815 Adds Requires.private generation so that pkg-config can correctly find
3816 the dependencies of libtiff.
3817
3818 2022-06-11 Roger Leigh <[email protected]>
3819
3820 Merge branch 'ci-dist' into 'master'
3821 ci: Archive distribution tar and zip files
3822
3823 See merge request libtiff/libtiff!354
3824
3825 2022-06-11 Roger Leigh <[email protected]>
3826
3827 ci: Archive distribution tar and zip files.
3828
3829 2022-06-11 Even Rouault <[email protected]>
3830
3831 Merge branch 'export_TIFFClampDoubleToUInt32' into 'master'
3832 libtiff.def: export _TIFFClampDoubleToUInt32
3833
3834 See merge request libtiff/libtiff!353
3835
3836 2022-06-11 Even Rouault <[email protected]>
3837
3838 libtiff.def: export _TIFFClampDoubleToUInt32.
3839
3840 2022-06-11 Even Rouault <[email protected]>
3841
3842 Merge branch 'issue-415+427+428' into 'master'
3843 fix the FPE in tiffcrop (#415, #427, and #428)
3844
3845 Closes #428, #427 et #415
3846
3847 See merge request libtiff/libtiff!346
3848
3849 2022-06-11 4ugustus <[email protected]>
3850
3851 fix the FPE in tiffcrop (#415, #427, and #428)
3852
3853 2022-06-11 Roger Leigh <[email protected]>
3854
3855 build: Distribute and install HTML documentation.
3856
3857 2022-06-10 Even Rouault <[email protected]>
3858
3859 Merge branch 'tif_jpeg_warning_fix' into 'master'
3860 tif_jpeg.c: fix error message
3861
3862 See merge request libtiff/libtiff!351
3863
3864 2022-06-10 Even Rouault <[email protected]>
3865
3866 tif_jpeg.c: fix error message.
3867
3868 2022-06-10 Roger Leigh <[email protected]>
3869
3870 Merge branch 'android_libm' into 'master'
3871 Fix dependency on libm on Android
3872
3873 See merge request libtiff/libtiff!350
3874
3875 2022-06-09 Matthias Kuhn <[email protected]>
3876
3877 Always link to libm if available.
3878
3879 2022-06-05 Roger Leigh <[email protected]>
3880
3881 Merge branch 'vasyl5-master-patch-97651' into 'master'
3882 libtoolize: command not found on macOS.
3883
3884 See merge request libtiff/libtiff!289
3885
3886 2022-06-05 Roger Leigh <[email protected]>
3887
3888 Merge branch 'rst-docs' into 'master'
3889 Convert HTML documentation to Sphinx RST
3890
3891 See merge request libtiff/libtiff!349
3892
3893 2022-06-05 Roger Leigh <[email protected]>
3894
3895 Merge remote-tracking branch 'origin/master' into rst-docs.
3896
3897 2022-06-05 Roger Leigh <[email protected]>
3898
3899 Merge branch 'cmake-xc-faxtable' into 'master'
3900 cmake: Do not build faxtable target when cross-compiling
3901
3902 See merge request libtiff/libtiff!342
3903
3904 2022-06-05 Roger Leigh <[email protected]>
3905
3906 Merge branch 'cmake-disable-options' into 'master'
3907 Add options for disabling tools, tests, contrib and docs
3908
3909 See merge request libtiff/libtiff!343
3910
3911 2022-06-05 Roger Leigh <[email protected]>
3912
3913 Merge branch 'cmake-msvc-options' into 'master'
3914 cmake: Add MSVC options when building all libraries and executables
3915
3916 See merge request libtiff/libtiff!344
3917
3918 2022-06-05 Roger Leigh <[email protected]>
3919
3920 Merge branch 'cmake-win32-libtiffxx-static' into 'master'
3921 cmake: libtiffxx is static on win32
3922
3923 See merge request libtiff/libtiff!338
3924
3925 2022-06-05 Roger Leigh <[email protected]>
3926
3927 Merge branch 'licence-file' into 'master'
3928 Rename COPYRIGHT to LICENSE.md
3929
3930 See merge request libtiff/libtiff!345
3931
3932 2022-06-05 Roger Leigh <[email protected]>
3933
3934 Rename COPYRIGHT to LICENSE.md.
3935
3936 doc: Fix make distcheck.
3937
3938 doc: Update automake configuration.
3939
3940 doc: Do not pass srcdir and builddir to sphinx-build.
3941
3942 doc: Additional top-level tidying.
3943
3944 doc: Tidy top-level index.
3945
3946 doc: Move bugs to project.
3947
3948 doc: Move misc to project.
3949
3950 doc: Move all BigTIFF documentation into specification directory.
3951 * Remove the BigTIFF proposal since this has long been completed
3952 * Update the BigTIFF PR to note completion of the work and replace
3953 present with past tense.
3954
3955 doc: Split release history.
3956 This permits the newer releases to be included in the top-level
3957 toctree without polluting it with dozens of old releases.
3958
3959 doc: Correct accents.
3960
3961 doc: BigTIFF design markup improvements.
3962
3963 Add doc/_static.
3964
3965 doc: Move TIFF specification and design notes into subdirectory.
3966
3967 doc: Move releases into subdirectory.
3968
3969 doc: Mark up TIFF tech note 2.
3970
3971 doc: Use sphinxdox theme.
3972 The sphix_rtd_theme formats complex tables badly.
3973
3974 doc: Clean up HTML tags.
3975
3976 2022-06-04 Roger Leigh <[email protected]>
3977
3978 ci: Install Sphinx manual for use by GitLab pages.
3979
3980 doc: Use sphinx_rtd_theme.
3981
3982 Convert HTML documentation to Sphinx RST.
3983 * Add CMake build logic
3984 * Add Autotools build logic
3985 * Move from html/ to doc/
3986 * Manual pages are still generated HTML for the time being
3987
3988 git: Ignore common IDE build files.
3989
3990 2022-06-04 Roger Leigh <[email protected]>
3991
3992 Merge branch 'ci-ubuntu-22.04' into 'master'
3993 ci: Update to use Ubuntu 22.04 CI images
3994
3995 Closes #429
3996
3997 See merge request libtiff/libtiff!348
3998
3999 2022-06-04 Roger Leigh <[email protected]>
4000
4001 Merge branch 'opengl-option' into 'master'
4002 cmake: Add tiff-opengl option
4003
4004 See merge request libtiff/libtiff!340
4005
4006 2022-06-04 Roger Leigh <[email protected]>
4007
4008 tiffdump: Avoid overflow warning when reading.
4009
4010 ci: Update to use Ubuntu 22.04 CI images.
4011
4012 2022-06-04 Even Rouault <[email protected]>
4013
4014 Merge branch 'master' into 'master'
4015 Include stdlib.h in tif_lzw.c.
4016
4017 See merge request libtiff/libtiff!347
4018
4019 2022-06-04 Brian Ledger <[email protected]>
4020
4021 Merge branch 'master' of https://gitlab.com/libtiff/libtiff.
4022
4023 2022-06-04 Brian Ledger <[email protected]>
4024
4025 Include stdlib.h in tif_lzw.c.
4026 In `tif_lzw.c`, a call is made to `_byteswap_uint64`. This is declared in `stdlib.h`. `stdlib.h` is not included in `tib_lzw.c`, so a name error may occur.
4027
4028 This change adds `#include stdlib.h` to `tif_lzw.c`, to prevent a name error from occurring when `stdlib.h` is not included.
4029
4030 2022-05-29 Roger Leigh <[email protected]>
4031
4032 Add options for disabling tools, tests, contrib and docs.
4033
4034 cmake: Add MSVC options when building all libraries and executables.
4035
4036 cmake: Do not build faxtable target when cross-compiling.
4037
4038 cmake: Use add_compile_definitions and add_compile_options.
4039 It seems that some CMake versions can't export targets using PRIVATE
4040 linking, even though the private target is never used.
4041
4042 Merge remote-tracking branch 'origin/master' into cmake-msvc-options.
4043
4044 Merge remote-tracking branch 'origin/master' into cmake-win32-libtiffxx-static
4045
4046 2022-05-29 Roger Leigh <[email protected]>
4047
4048 Merge branch 'ci-x64' into 'master'
4049 ci: Remove arm64 temporarily
4050
4051 See merge request libtiff/libtiff!341
4052
4053 2022-05-29 Roger Leigh <[email protected]>
4054
4055 ci: Remove arm64 temporarily.
4056
4057 autoconf: Add --disable-opengl option.
4058
4059 cmake: Add tiff-opengl option.
4060
4061 cmake: Add MSVC options when building all libraries and executables.
4062
4063 cmake: libtiffxx is static on win32.
4064
4065 2022-05-22 Even Rouault <[email protected]>
4066
4067 html/Makefile.am: add v4.4.0.html to docfiles.
4068
4069 2022-05-20 Even Rouault <[email protected]>
4070
4071 Update HOWTO-RELEASE with .tar.xz.
4072
4073 Prepare for release 4.4.0.
4074
4075 2022-05-16 Even Rouault <[email protected]>
4076
4077 libtiff v4.4.0 released
4078
4079 2022-05-16 Even Rouault <[email protected]>
4080
4081 Merge branch 'pkgconf_abs_path' into 'master'
4082 Handle absolute paths in pkg-config file
4083
4084 See merge request libtiff/libtiff!333
4085
4086 2022-05-16 Miloš Komarčević <[email protected]>
4087
4088 Handle absolute paths in pkg-config file.
4089
4090 2022-05-15 Even Rouault <[email protected]>
4091
4092 Merge branch 'fix-tests-with-ro-source-dir' into 'master'
4093 cmake: allow running the tests with a read-only source directory
4094
4095 See merge request libtiff/libtiff!332
4096
4097 2022-05-15 Alex Richardson <[email protected]>
4098
4099 cmake: allow running the tests with a read-only source directory.
4100 Prior to this commit CTest would invoke all simple_tests tests with the
4101 current working directory set to the source directory. However, some of
4102 the tests (e.g. rewrite) will output files to the current working
4103 directory and will therefore fail when run with a read-only source
4104 directory. This can happen e.g. when testing a cross-compiled version of
4105 libtiff where the sources are mounted read-only in the virtual machine.
4106
4107 Simply changing the working directory to CMAKE_CURRENT_BINARY_DIR allows
4108 all but raw_decode to pass. The raw_decode test looks for files in the
4109 source directory, and uses the `srcdir` environment variable to find, so
4110 we also have to add a set_tests_properties() call to specify that env var.
4111
4112 2022-05-14 Even Rouault <[email protected]>
4113
4114 Merge branch 'tiffcrop_pipeline_error' into 'master'
4115 tiffcrop: Fixes complain of pipeline "cmake-ninja-arm64" about abs() on...
4116
4117 See merge request libtiff/libtiff!331
4118
4119 2022-05-14 Su Laus <[email protected]>
4120
4121 tiffcrop: Fixes complain of pipeline "cmake-ninja-arm64" about abs() on...
4122
4123 2022-05-14 Even Rouault <[email protected]>
4124
4125 Merge branch 'TIFFField_SetGetSize_CountSize' into 'master'
4126 Public functions TIFFFieldSetGetSize() and TIFFieldSetGetCountSize() added.
4127
4128 See merge request libtiff/libtiff!284
4129
4130 2022-05-14 Su Laus <[email protected]>
4131
4132 Public functions TIFFFieldSetGetSize() and TIFFieldSetGetCountSize() added.
4133
4134 2022-05-13 Even Rouault <[email protected]>
4135
4136 Merge branch 'jondo-master-patch-87274' into 'master'
4137 Replace add_compile_definitions for CMake versions before 3.12 (#238)
4138
4139 See merge request libtiff/libtiff!330
4140
4141 2022-05-13 Robert Pollak <[email protected]>
4142
4143 Replace add_compile_definitions for CMake versions before 3.12 (#238)
4144
4145 2022-05-13 Even Rouault <[email protected]>
4146
4147 Merge branch 'master' into 'master'
4148 Remove incorrect assert.
4149
4150 See merge request libtiff/libtiff!329
4151
4152 2022-05-13 Ben Laurie <[email protected]>
4153
4154 Remove incorrect assert.
4155
4156 2022-05-10 Even Rouault <[email protected]>
4157
4158 Merge branch 'Fix_Issue#330' into 'master'
4159 tiffcrop: Fix issue #330 and some more from 320 to 349
4160
4161 Closes #330
4162
4163 See merge request libtiff/libtiff!298
4164
4165 2022-05-10 Su Laus <[email protected]>
4166
4167 tiffcrop: Fix issue #330 and some more from 320 to 349.
4168
4169 2022-05-10 Even Rouault <[email protected]>
4170
4171 test_signed_tags.c: fix CID 1504376.
4172
4173 2022-05-10 Even Rouault <[email protected]>
4174
4175 Merge branch 'fix_#29_tiffcp_orientationTag' into 'master'
4176 tiffcp: Fix incomprehensible setting of orientation tag (fixes #29)
4177
4178 Closes #29
4179
4180 See merge request libtiff/libtiff!327
4181
4182 2022-05-10 Even Rouault <[email protected]>
4183
4184 Merge branch 'palette-8bit' into 'master'
4185 tiff2pdf: handle 8-bit palette colormap
4186
4187 See merge request libtiff/libtiff!328
4188
4189 2022-05-09 Jay Berkenbilt <[email protected]>
4190
4191 tiff2pdf: handle 8-bit palette colormap.
4192 If all the colors in a palette are in the range [0, 255], treat the
4193 palette as an 8-bit colormap. This workaround already exists elsewhere
4194 in the software including in tiff2ps.
4195
4196 2022-05-08 Even Rouault <[email protected]>
4197
4198 Merge branch 'fix_#40_ReadSignedTags' into 'master'
4199 Reading of signed tags added (fixes #40)
4200
4201 Closes #40
4202
4203 See merge request libtiff/libtiff!326
4204
4205 2022-05-08 Su Laus <[email protected]>
4206
4207 Reading of signed tags added (fixes #40)
4208
4209 2022-05-08 Even Rouault <[email protected]>
4210
4211 Fix typos in comments.
4212
4213 2022-05-08 Even Rouault <[email protected]>
4214
4215 Merge branch 'fix_400' into 'master'
4216 tiffcp: avoid buffer overflow in "mode" string (fixes #400)
4217
4218 Closes #400
4219
4220 See merge request libtiff/libtiff!323
4221
4222 2022-05-08 Even Rouault <[email protected]>
4223
4224 Merge branch 'CheckForBigTiff' into 'master'
4225 TIFFIsBigTiff() function added.
4226
4227 See merge request libtiff/libtiff!325
4228
4229 2022-05-08 Su Laus <[email protected]>
4230
4231 TIFFIsBigTiff() function added.
4232
4233 2022-05-01 Su_Laus <[email protected]>
4234
4235 tiffcp: Fix incomprehensible setting of orientation tag (fixes #29)
4236
4237 2022-04-23 Even Rouault <[email protected]>
4238
4239 Merge branch 'fix_#8_FreeAnonTag' into 'master'
4240 extra flag for anonymous (unknown) tags (fixes #8)
4241
4242 Closes #400 et #8
4243
4244 See merge request libtiff/libtiff!324
4245
4246 2022-04-22 Even Rouault <[email protected]>
4247
4248 tif_lzw.c: fix potential out-of-bounds error when trying to read in the same tile/strip after an error has occurred (fixes #410)
4249
4250 2022-04-06 Su_Laus <[email protected]>
4251
4252 extra flag for anonymous (unknown) tags (fixes #8)
4253
4254 2022-04-02 Su_Laus <[email protected]>
4255
4256 tiffcp: avoid buffer overflow in "mode" string (fixes #400)
4257
4258 2022-03-21 Even Rouault <[email protected]>
4259
4260 avoid hang in TIFFRewriteDirectory() if a classic file > 4 GB is attempted to be created
4261 Fixes https://github.com/OSGeo/gdal/issues/5479
4262
4263 2022-03-19 Even Rouault <[email protected]>
4264
4265 Merge branch 'Correct_tag_auto-registration_description' into 'master'
4266 Correct reading description for anonymous tag auto-registration in addingtags.html (closes 353)
4267
4268 Closes #353
4269
4270 See merge request libtiff/libtiff!320
4271
4272 2022-03-19 Su Laus <[email protected]>
4273
4274 Correct reading description for anonymous tag auto-registration in addingtags.html (closes 353)
4275
4276 2022-03-18 Even Rouault <[email protected]>
4277
4278 tif_lzw.c: avoid harmless unsigned-integer-overflow (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45741)
4279
4280 2022-03-17 Even Rouault <[email protected]>
4281
4282 Merge branch 'fix_396' into 'master'
4283 tiffcp: do not try to fetch compressor-specific tags when not appropriate (fixes #396)
4284
4285 Closes #396
4286
4287 See merge request libtiff/libtiff!316
4288
4289 2022-03-17 Even Rouault <[email protected]>
4290
4291 Merge branch 'Fix_cmake_warnings' into 'master'
4292 Fix some CMake warnings
4293
4294 See merge request libtiff/libtiff!319
4295
4296 2022-03-17 Su Laus <[email protected]>
4297
4298 Fix some CMake warnings.
4299
4300 2022-03-17 Even Rouault <[email protected]>
4301
4302 Merge branch 'lzw_decode_improvements' into 'master'
4303 LZWDecode(): major speed improvements
4304
4305 See merge request libtiff/libtiff!318
4306
4307 2022-03-16 Even Rouault <[email protected]>
4308
4309 LZWDecode(): major speed improvements.
4310 This mostly comes from dealing specifically with codes that expand to
4311 2, 3 and 4 bytes or more to avoid branches, and dealing with longer
4312 repeated sequences (e.g. lots of bytes to 0).
4313
4314 With the following bench.c, execution time is 32% faster on a 8000x8000
4315 4 bands uint16 predictor=2 image that has a 1.6x compression ratio. with
4316 gcc 9.4.0, on x86_64
4317
4318 bench.c:
4319 ```
4320 #include "tiffio.h"
4321 #include <stdlib.h>
4322 #include <stdint.h>
4323
4324 int main(int argc, char* argv[])
4325 {
4326 if( argc != 2 )
4327 {
4328 fprintf(stderr, "Usage: ./bench my.tif\n");
4329 exit(1);
4330 }
4331 TIFF* tif = TIFFOpen(argv[1], "r");
4332 if( tif == NULL )
4333 {
4334 fprintf(stderr, "Cannot open %s\n", argv[1]);
4335 exit(1);
4336 }
4337 if( !TIFFIsTiled(tif) )
4338 {
4339 fprintf(stderr, "Only tiled image supported\n");
4340 exit(1);
4341 }
4342 int tilesize = (int)TIFFTileSize(tif);
4343 char* c = malloc(tilesize);
4344 if( c == NULL )
4345 {
4346 fprintf(stderr, "Out of memory\n");
4347 exit(1);
4348 }
4349 const uint32_t numtiles = TIFFNumberOfTiles(tif);
4350 //int numloops = 4 * (int)(1e9 / ((double)tilesize * numtiles));
4351 //printf("Number of loops: %d\n", numloops);
4352 int numloops = 1;
4353 for(int i =0; i< numloops; i++)
4354 {
4355 for(uint32_t tileindex = 0; tileindex < numtiles; tileindex++ )
4356 {
4357 TIFFReadEncodedTile(tif, tileindex, c, tilesize);
4358 }
4359 }
4360 free(c);
4361 TIFFClose(tif);
4362 return 0;
4363 }
4364 ```
4365
4366 2022-03-16 Even Rouault <[email protected]>
4367
4368 LZWDecode(): modest speed improvement: fetch input data by chunks of the largest natural integer of the architecture
4369
4370 2022-03-14 Even Rouault <[email protected]>
4371
4372 Merge branch 'kmilos-master-patch-45885' into 'master'
4373 Correct fix for the pkgconf file relative paths
4374
4375 See merge request libtiff/libtiff!317
4376
4377 2022-03-10 Even Rouault <[email protected]>
4378
4379 tif_lzw.c: make LZW_CHECKEOS non-optional.
4380
4381 tiffsplit.c: fix compiler warning on 32-bit.
4382
4383 2022-03-10 Miloš Komarčević <[email protected]>
4384
4385 Correct fix for the pkgconf file relative paths.
4386
4387 2022-03-10 Even Rouault <[email protected]>
4388
4389 Merge branch 'issue-278' into 'master'
4390 fix heap buffer overflow in tiffcp (#278)
4391
4392 Closes #278
4393
4394 See merge request libtiff/libtiff!311
4395
4396 2022-03-10 4ugustus <[email protected]>
4397
4398 fix heap buffer overflow in tiffcp (#278)
4399
4400 2022-03-09 Even Rouault <[email protected]>
4401
4402 tiffcp: do not try to fetch compressor-specific tags when not appropriate (fixes #396)
4403
4404 2022-03-09 Even Rouault <[email protected]>
4405
4406 Merge branch 'i_am_a_unsympathetic_person' into 'master'
4407 index.html: make it clear that I'm a unsympathetic person
4408
4409 See merge request libtiff/libtiff!315
4410
4411 2022-03-09 Even Rouault <[email protected]>
4412
4413 index.html: make it clear that I'm a unsympathetic person.
4414
4415 2022-03-08 Even Rouault <[email protected]>
4416
4417 Merge branch 'Fix_Issue#395' into 'master'
4418 tiffcrop: fix issue #395: generation of strange section images.
4419
4420 Closes #395
4421
4422 See merge request libtiff/libtiff!312
4423
4424 2022-03-08 Su Laus <[email protected]>
4425
4426 tiffcrop: fix issue #395: generation of strange section images.
4427
4428 2022-03-08 Even Rouault <[email protected]>
4429
4430 Merge branch 'Fix_Issue#380' into 'master'
4431 tiffcrop: fix issue #380 and #382 heap buffer overflow in extractImageSection
4432
4433 Closes #382 et #380
4434
4435 See merge request libtiff/libtiff!307
4436
4437 2022-03-08 Su Laus <[email protected]>
4438
4439 tiffcrop: fix issue #380 and #382 heap buffer overflow in extractImageSection
4440
4441 2022-03-08 Even Rouault <[email protected]>
4442
4443 Merge branch 'issue-392' into 'master'
4444 add checks for return value of limitMalloc (#392)
4445
4446 Closes #392
4447
4448 See merge request libtiff/libtiff!314
4449
4450 2022-03-08 Even Rouault <[email protected]>
4451
4452 Merge branch 'issue-393' into 'master'
4453 fix the FPE in tiffcrop (#393)
4454
4455 Closes #393
4456
4457 See merge request libtiff/libtiff!310
4458
4459 2022-03-08 4ugustus <[email protected]>
4460
4461 fix the FPE in tiffcrop (#393)
4462
4463 2022-03-08 Even Rouault <[email protected]>
4464
4465 Merge branch 'kmilos-master-patch-56785' into 'master'
4466 Fix pkgconf file relative paths
4467
4468 Closes #394
4469
4470 See merge request libtiff/libtiff!309
4471
4472 2022-03-07 Augustus <[email protected]>
4473
4474 add checks for return value of limitMalloc (#392)
4475
4476 2022-03-02 Miloš Komarčević <[email protected]>
4477
4478 Fix pkgconf file relative paths.
4479
4480 2022-02-25 Even Rouault <[email protected]>
4481
4482 Merge branch 'fix_385' into 'master'
4483 tif_jbig.c: fix crash when reading a file with multiple IFD in memory-mapped...
4484
4485 Closes #385
4486
4487 See merge request libtiff/libtiff!306
4488
4489 2022-02-24 Even Rouault <[email protected]>
4490
4491 tif_jbig.c: fix crash when reading a file with multiple IFD in memory-mapped mode and when bit reversal is needed (fixes #385)
4492
4493 2022-02-24 Even Rouault <[email protected]>
4494
4495 Merge branch 'string_size_limit' into 'master'
4496 _TIFFVSetField(): when passing a string without explicit length, check that...
4497
4498 See merge request libtiff/libtiff!304
4499
4500 2022-02-24 Even Rouault <[email protected]>
4501
4502 Merge branch 'TIFFClientOpen_cleanup' into 'master'
4503 TIFFClientOpen(): remove useless initializations of tif_rawcc and tif_flags...
4504
4505 See merge request libtiff/libtiff!303
4506
4507 2022-02-20 Even Rouault <[email protected]>
4508
4509 Remove extra word in comment.
4510
4511 TIFFPrintDirectory(): avoid potential multi-threading issue when reading the DotRange tag
4512 The severity of the issue would be low (mix of values displayed) and the
4513 time window where that would occur would be short.
4514
4515 Constify signature of _TIFFsetXXXXArray() functions, and remove unused _TIFFsetString()
4516
4517 _TIFFVSetField(): when passing a string without explicit length, check that the length doesn't except the 1 << 31 maximum bytes we support
4518
4519 2022-02-19 Even Rouault <[email protected]>
4520
4521 tiffsplit.c: fix use after free introduced in master per commit 8ed97f401552a2b4300d3c489b03dcada86a21fd (related to #290)
4522
4523 2022-02-19 Even Rouault <[email protected]>
4524
4525 Merge branch 'Fix_Issue#284' into 'master'
4526 tiff2ps: In limitMalloc() check for negative size (fixes #284)
4527
4528 Closes #284
4529
4530 See merge request libtiff/libtiff!300
4531
4532 2022-02-19 Su Laus <[email protected]>
4533
4534 tiff2ps: In limitMalloc() check for negative size (fixes #284)
4535
4536 2022-02-19 Even Rouault <[email protected]>
4537
4538 Merge branch 'fix_288' into 'master'
4539 tiffinfo: limit more memory allocations using -M switch (fixes #288)
4540
4541 Closes #288
4542
4543 See merge request libtiff/libtiff!299
4544
4545 2022-02-19 Even Rouault <[email protected]>
4546
4547 Merge branch 'Fix_Issue#290' into 'master'
4548 tiffsplit: limitMalloc() and getopt() introduced and more error messages. (fixes #290)
4549
4550 Closes #290
4551
4552 See merge request libtiff/libtiff!301
4553
4554 2022-02-19 Su Laus <[email protected]>
4555
4556 tiffsplit: limitMalloc() and getopt() introduced and more error messages. (fixes #290)
4557
4558 2022-02-19 Even Rouault <[email protected]>
4559
4560 Merge branch 'Fix_Issue#273_#275' into 'master'
4561 tiffcrop: buffsize check formula in loadImage() amended (fixes #273,#275)
4562
4563 Closes #275 et #273
4564
4565 See merge request libtiff/libtiff!302
4566
4567 2022-02-19 Su Laus <[email protected]>
4568
4569 tiffcrop: buffsize check formula in loadImage() amended (fixes #273,#275)
4570
4571 2022-02-19 Even Rouault <[email protected]>
4572
4573 TIFFClientOpen(): remove useless initializations of tif_rawcc and tif_flags after TIFFReadDirectory()
4574 Those initializations date back to the initial commit of libtiff, but I
4575 strongly suspect there are no longer needed those days.
4576 Setting tif_rawcc to (tmsize_t)-1 is weird. AFAICS, nowhere else in the library
4577 -1 is used as a special markeri for that field. Immediately after TIFFReadDirectory()
4578 returns it is set to 0, and this is the value used in tif_read.c/tif_write.c to
4579 reset it.
4580 And setting the TIFF_BUFFERSETUP bit of tif_flags is even more
4581 suspicious as the only place where it is set otherwise is in
4582 TIFFWriteBufferSetup(). I suspect this bogus setting of the flag was the
4583 reason for commit dbf2339a1 where BUFFERCHECK() in addition to checking
4584 the bit also checked the tif_rawdata against nullptr.
4585
4586 If setting those 2 fields was needed, it would mean that TIFFClientOpen() with the
4587 'h' hint to disable automatic TIFFReadDirectory() would be broken,
4588 because someone issuing a manual TIFFReadDirectory() couldn't set them,
4589 as being private members.
4590
4591 The libtiff test suite is happy with that change, and the GDAL one too.
4592
4593 2022-02-19 Even Rouault <[email protected]>
4594
4595 TIFFFetchNormalTag(): speed optimization when reading a (very large) nul-terminated ASCII tag
4596
4597 TIFFWriteDirectoryTagData(): turn assertion on data length into a runtime check
4598 For example, the assertion could actually be triggered when writing an
4599 ASCII tag with more than 1 << 31 bytes.
4600
4601 2022-02-17 Even Rouault <[email protected]>
4602
4603 TIFFFetchNormalTag(): avoid calling memcpy() with a null source pointer and size of zero (fixes #383)
4604
4605 2022-02-15 Roger Leigh <[email protected]>
4606
4607 Merge branch 'tl/fix-cpack' into 'master'
4608 Fix packaging with CPack
4609
4610 See merge request libtiff/libtiff!292
4611
4612 2022-02-11 Even Rouault <[email protected]>
4613
4614 tiffinfo: limit more memory allocations using -M switch (fixes #288)
4615
4616 tif_dirwrite.c: take into account COMPRESSION_JXL.
4617
4618 2022-02-11 Even Rouault <[email protected]>
4619
4620 Merge branch 'predictor_2_64bit' into 'master'
4621 Predictor 2 (horizontal differentiation): support 64-bit
4622
4623 See merge request libtiff/libtiff!296
4624
4625 2022-02-10 Even Rouault <[email protected]>
4626
4627 Merge branch 'Fix_Issue#365' into 'master'
4628 tiff2pdf: Fixes issues #365, #258 and #257 related to initializing 't2p->pdf_compressionquality'.
4629
4630 Closes #257, #258 et #365
4631
4632 See merge request libtiff/libtiff!297
4633
4634 2022-02-10 Su Laus <[email protected]>
4635
4636 tiff2pdf: Fixes issues #365, #258 and #257 related to initializing 't2p->pdf_compressionquality'.
4637
4638 2022-02-09 Even Rouault <[email protected]>
4639
4640 Predictor 2 (horizontal differentiation): support 64-bit.
4641 There's no reason not to support 64-bit. The TIFF 6 specification
4642 doesn't say anything about that (and even mention 4-bit, which we don't
4643 support)
4644
4645 2022-02-09 Even Rouault <[email protected]>
4646
4647 Merge branch 'Fix_Issue#352' into 'master'
4648 tiffcrop.c: Fix issue #352 heap-buffer-overflow by correcting uint32_t underflow.
4649
4650 Closes #352
4651
4652 See merge request libtiff/libtiff!294
4653
4654 2022-02-09 Su Laus <[email protected]>
4655
4656 tiffcrop.c: Fix issue #352 heap-buffer-overflow by correcting uint32_t underflow.
4657
4658 2022-02-08 Even Rouault <[email protected]>
4659
4660 Merge branch 'custom_dir_EXIF_Coverity_fixes' into 'master'
4661 Fix Coverity Scan report issues for custom_dir_EXIF_231.c and test_directory.c
4662
4663 See merge request libtiff/libtiff!295
4664
4665 2022-02-08 Su Laus <[email protected]>
4666
4667 Fix Coverity Scan report issues for custom_dir_EXIF_231.c and test_directory.c
4668
4669 2022-02-06 Roger Leigh <[email protected]>
4670
4671 Merge branch 'cmake-test' into 'master'
4672 Correct CMake testing
4673
4674 Closes #317
4675
4676 See merge request libtiff/libtiff!291
4677
4678 2022-02-06 Even Rouault <[email protected]>
4679
4680 LogLuvEncode32(): avoid undefined behaviour of left shift on a signed integer
4681
4682 TIFFFetchStripThing(): avoid calling memcpy() with a null source pointer and size of zero (fixes #362)
4683
4684 2022-02-05 Even Rouault <[email protected]>
4685
4686 TIFFReadDirectory(): avoid calling memcpy() with a null source pointer and size of zero (fixes #362)
4687
4688 2022-01-29 Even Rouault <[email protected]>
4689
4690 Merge branch 'Jamaika1-master-patch-68264' into 'master'
4691 Added stdlib.h
4692
4693 See merge request libtiff/libtiff!293
4694
4695 2022-01-29 Jamaika <[email protected]>
4696
4697 tif_win32.c: include stdlib.h.
4698
4699 2022-01-28 Timothy Lyanguzov <[email protected]>
4700
4701 Fix packaging with CPack.
4702 Replace all CMAKE_INSTALL_FULL_<DIR> with CMAKE_INSTALL_<DIR> to allow CPack setting CMAKE_INSTALL_PREFIX
4703
4704 2022-01-25 Even Rouault <[email protected]>
4705
4706 Merge branch 'master' into 'master'
4707 Fix the global-buffer-overflow in tiffset
4708
4709 See merge request libtiff/libtiff!287
4710
4711 2022-01-25 4ugustus <[email protected]>
4712
4713 tiffset: fix global-buffer-overflow for ASCII tags where count is required (fixes #355)
4714
4715 2022-01-23 Roger Leigh <[email protected]>
4716
4717 Merge branch 'autogen' into 'master'
4718 Fix autogen.sh permissions issues during mv
4719
4720 See merge request libtiff/libtiff!290
4721
4722 2022-01-23 Roger Leigh <[email protected]>
4723
4724 Correct CMake testing.
4725 * Use functions rather than macros to avoid problems with variables in
4726 conditions (since macro arguments are not variables)
4727 * Conditionally add to file lists and test program lists based upon the
4728 configuration options (e.g. JPEG and old-JPEG availability)
4729 * Sync tests, files and option usage with current automake usage
4730
4731 2022-01-19 Will Cohen <[email protected]>
4732
4733 autogen.sh: mv -f for config.sub and config.guess.
4734
4735 2022-01-12 Even Rouault <[email protected]>
4736
4737 TIFFYCbCrToRGBInit(): avoid Integer-overflow in gdal_TIFFYCbCrToRGBInit. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43559
4738
4739 2022-01-10 Even Rouault <[email protected]>
4740
4741 Merge branch 'fix_TIFFFillStrip_wrong_check' into 'master'
4742 Fix sanity check in TIFFFillStrip()/TIFFFillStrile()
4743
4744 See merge request libtiff/libtiff!288
4745
4746 2022-01-10 Even Rouault <[email protected]>
4747
4748 TIFFFillStrip()/TIFFFillStrile(): remove useless test.
4749
4750 Fix sanity check in TIFFFillStrip()/TIFFFillStrile()
4751 A sanity check comparing the compressed vs uncompressed file that was
4752 originally written 'correctly' but relied on undefined behaviour was
4753 changed in 1b5e3b6a23827c33acf19ad50ce5ce78f12b3773 in an incorrect way.
4754 Fix that. Credits to @burn for spotting this in
4755 https://gitlab.com/libtiff/libtiff/-/issues/343#note_806089714
4756
4757 2021-12-29 Even Rouault <[email protected]>
4758
4759 Merge branch 'Fix_FieldName_NULL' into 'master'
4760 Fix Issue #354 Segmentation Fault due to field_name=NULL
4761
4762 See merge request libtiff/libtiff!285
4763
4764 2021-12-29 Even Rouault <[email protected]>
4765
4766 Merge branch 'mingw-static' into 'master'
4767 build: Fix static library imports in mingw
4768
4769 See merge request libtiff/libtiff!286
4770
4771 2021-12-29 Biswapriyo Nath <[email protected]>
4772
4773 build: Fix static library imports in mingw.
4774 This defines LERC_STATIC while creating libtiff static library
4775 in Win32 platform in presence of lerc library. Otherwise, the
4776 static library import lerc APIs with dllimport attribute and
4777 thus linked with shared lerc library.
4778
4779 2021-12-28 Su_Laus <[email protected]>
4780
4781 Fix Issue #354 Segmentation Fault due to field_name=NULL.
4782
4783 2021-12-17 Even Rouault <[email protected]>
4784
4785 Merge branch 'fix_342' into 'master'
4786 TIFFGetField(TIFFTAG_STRIPBYTECOUNTS/TIFFTAG_STRIPOFFSETS): return error if...
4787
4788 Closes #342
4789
4790 See merge request libtiff/libtiff!283
4791
4792 2021-12-16 Even Rouault <[email protected]>
4793
4794 TIFFGetField(TIFFTAG_STRIPBYTECOUNTS/TIFFTAG_STRIPOFFSETS): return error if returned pointer is NULL (fixes #342)
4795
4796 tiff2pdf: validate TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc) return (fixes #342)
4797
4798 2021-12-16 Even Rouault <[email protected]>
4799
4800 Merge branch 'master' into 'master'
4801 fix raw2tiff floating point exception(fixes #338)
4802
4803 Closes #338
4804
4805 See merge request libtiff/libtiff!282
4806
4807 2021-12-16 t.feng <[email protected]>
4808
4809 raw2tiff: check that band number if not zero to avoid floating point exception(fixes #338)
4810
4811 2021-12-14 Even Rouault <[email protected]>
4812
4813 Merge branch 'fix_337' into 'master'
4814 OJPEG: avoid assertion when using TIFFReadScanline() (fixes #337)
4815
4816 Closes #337
4817
4818 See merge request libtiff/libtiff!280
4819
4820 2021-12-13 Even Rouault <[email protected]>
4821
4822 OJPEG: avoid assertion when using TIFFReadScanline() (fixes #337)
4823 Note: my analysis of the issue would be that the use of the scanline API
4824 is currently probably broken with OJPEG.
4825
4826 2021-12-10 Even Rouault <[email protected]>
4827
4828 JPEG 12bit: make it easier for GDAL's RENAME_INTERNAL_LIBTIFF_SYMBOLS mode
4829
4830 2021-12-09 Even Rouault <[email protected]>
4831
4832 tif_lzw.c: other warning fixes.
4833
4834 tif_lzw.c: fix warnings of previous commit.
4835
4836 2021-12-09 Even Rouault <[email protected]>
4837
4838 Merge branch 'lzw_2gb_windows' into 'master'
4839 LZW codec: fix support for strips/tiles > 2 GB on Windows
4840
4841 See merge request libtiff/libtiff!279
4842
4843 2021-12-08 Even Rouault <[email protected]>
4844
4845 LZW codec: fix support for strips/tiles > 2 GB on Windows.
4846
4847 2021-12-07 Even Rouault <[email protected]>
4848
4849 Merge branch 'fix_287' into 'master'
4850 tiffinfo: add a -M switch to define the maximum heap allocation, and default...
4851
4852 Closes #287
4853
4854 See merge request libtiff/libtiff!278
4855
4856 2021-12-06 Even Rouault <[email protected]>
4857
4858 Merge branch 'fix_319' into 'master'
4859 TIFFReadDirectory: fix OJPEG hack (fixes #319)
4860
4861 Closes #319
4862
4863 See merge request libtiff/libtiff!277
4864
4865 2021-12-06 Even Rouault <[email protected]>
4866
4867 Merge branch 'fix_309' into 'master'
4868 TIFFAppendToStrip(): fix rewrite-in-place logic (fixes #309)
4869
4870 Closes #309
4871
4872 See merge request libtiff/libtiff!276
4873
4874 2021-12-05 Even Rouault <[email protected]>
4875
4876 Merge branch 'b1' into 'master'
4877 Fix resource leak on error path
4878
4879 See merge request libtiff/libtiff!263
4880
4881 2021-12-05 bonniegong <[email protected]>
4882
4883 rast2tiff: Fix resource leak on error path.
4884
4885 2021-12-05 Even Rouault <[email protected]>
4886
4887 Merge branch 'tiffsplit-leak' into 'master'
4888 tiffsplit.c: Fix memleak before exit
4889
4890 See merge request libtiff/libtiff!270
4891
4892 2021-12-05 Even Rouault <[email protected]>
4893
4894 tiffinfo: add a -M switch to define the maximum heap allocation, and default it to 256 MiB (fixes #287)
4895
4896 tiffinfo: fix read of invalid pointer in TIFFReadRawDataTiled() (fixes #295)
4897
4898 2021-12-05 Even Rouault <[email protected]>
4899
4900 TIFFReadDirectory: fix OJPEG hack (fixes #319)
4901 to avoid having the size of the strip arrays inconsistent with the
4902 number of strips returned by TIFFNumberOfStrips(), which may cause
4903 out-ouf-bounds array read afterwards.
4904
4905 One of the OJPEG hack that alters SamplesPerPixel may influence the
4906 number of strips. Hence compute tif_dir.td_nstrips only afterwards.
4907
4908 2021-12-04 Even Rouault <[email protected]>
4909
4910 TIFFAppendToStrip(): fix rewrite-in-place logic (fixes #309)
4911 Properly reset tif_curoff when writing strips/tiles
4912
4913 2021-12-03 Even Rouault <[email protected]>
4914
4915 TIFFReInitJPEG_12(): avoid warning about unused variable in -DNDEBUG.
4916
4917 2021-12-01 Even Rouault <[email protected]>
4918
4919 Merge branch 'fix_316' into 'master'
4920 TIFFReadCustomDirectory(): avoid crash when reading SubjectDistance tag on a non EXIF directory
4921
4922 Closes #316
4923
4924 See merge request libtiff/libtiff!273
4925
4926 2021-12-01 Even Rouault <[email protected]>
4927
4928 Merge branch 'VisualStudio_warnings_suppress' into 'master'
4929 Suppress unnecessary warnings in Visual Studio in AppVeyor test.
4930
4931 See merge request libtiff/libtiff!234
4932
4933 2021-11-30 Even Rouault <[email protected]>
4934
4935 TIFFReadCustomDirectory(): avoid crash when reading SubjectDistance tag on a non EXIF directory
4936 Fixes #316
4937
4938 The Valgrind trace was
4939 ```
4940 TIFFReadCustomDirectory: Warning, Unknown field with tag 37382 (0x9206) encountered.
4941 ==3277355== Invalid read of size 1
4942 ==3277355== at 0x4842B60: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
4943 ==3277355== by 0x48BB799: _TIFFmemcpy (tif_unix.c:346)
4944 ==3277355== by 0x485B3CB: _TIFFVSetField (tif_dir.c:647)
4945 ==3277355== by 0x485C125: TIFFVSetField (tif_dir.c:890)
4946 ==3277355== by 0x485BEDC: TIFFSetField (tif_dir.c:834)
4947 ==3277355== by 0x486DA9A: TIFFFetchSubjectDistance (tif_dirread.c:5826)
4948 ==3277355== by 0x4869E35: TIFFReadCustomDirectory (tif_dirread.c:4530)
4949 ==3277355== by 0x4869F0A: TIFFReadGPSDirectory (tif_dirread.c:4564)
4950 ==3277355== by 0x10AA7A: main (tiffinfo.c:171)
4951 ==3277355== Address 0x3fc856aaaaaaaaab is not stack'd, malloc'd or (recently) free'd
4952 ==3277355==
4953 ```
4954
4955 2021-11-29 Even Rouault <[email protected]>
4956
4957 Merge branch 'add-null-check' into 'master'
4958 Added missing null check.
4959
4960 See merge request libtiff/libtiff!274
4961
4962 2021-11-28 Dirk Lemstra <[email protected]>
4963
4964 Added missing null check.
4965
4966 2021-11-26 Even Rouault <[email protected]>
4967
4968 tif_print.c: remove duplicated if() in previous commit.
4969
4970 2021-11-26 Even Rouault <[email protected]>
4971
4972 Merge branch 'GPS_Print_BugFix' into 'master'
4973 Fix Segmentation fault printing GPS directory if Altitude tag is present (tif_print.c/tiffinfo.c)
4974
4975 See merge request libtiff/libtiff!272
4976
4977 2021-11-26 Su Laus <[email protected]>
4978
4979 Fix Segmentation fault printing GPS directory if Altitude tag is present (tif_print.c/tiffinfo.c)
4980
4981 2021-11-01 Even Rouault <[email protected]>
4982
4983 Merge branch 'cmake_tiffconf' into 'master'
4984 Fix STRIPCHOP_DEFAULT value in CMake builds
4985
4986 See merge request libtiff/libtiff!271
4987
4988 2021-11-01 Even Rouault <[email protected]>
4989
4990 Fix STRIPCHOP_DEFAULT value in CMake builds.
4991 CMake builds erroneously used value 1 instead of TIFF_STRIPCHOP, which
4992 resulted in strip chopping not being enabled by default.
4993
4994 2021-10-26 Even Rouault <[email protected]>
4995
4996 tif_jpeg.c: typo fix.
4997
4998 2021-10-24 Han Han <[email protected]>
4999
5000 tiffsplit.c: Fix memleak before exit.
5001 Details of the memleak:
5002 $ valgrind --leak-check=full tiffsplit id:001763,sync:fuzzer07,src:001641,+cov
5003
5004 ==2090657==
5005 ==2090657== HEAP SUMMARY:
5006 ==2090657== in use at exit: 13,517 bytes in 17 blocks
5007 ==2090657== total heap usage: 41 allocs, 24 frees, 29,351 bytes allocated
5008 ==2090657==
5009 ==2090657== 2,473 (1,249 direct, 1,224 indirect) bytes in 1 blocks are definitely lost in loss record 10 of 13
5010 ==2090657== at 0x484086F: malloc (vg_replace_malloc.c:381)
5011 ==2090657== by 0x48BF35C: TIFFClientOpen (tif_open.c:118)
5012 ==2090657== by 0x48CF058: TIFFFdOpen (tif_unix.c:209)
5013 ==2090657== by 0x48CF0C4: TIFFOpen (tif_unix.c:248)
5014 ==2090657== by 0x10954C: main (tiffsplit.c:91)
5015 ==2090657==
5016 ==2090657== 11,044 (1,300 direct, 9,744 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 13
5017 ==2090657== at 0x484086F: malloc (vg_replace_malloc.c:381)
5018 ==2090657== by 0x48BF35C: TIFFClientOpen (tif_open.c:118)
5019 ==2090657== by 0x48CF058: TIFFFdOpen (tif_unix.c:209)
5020 ==2090657== by 0x48CF0C4: TIFFOpen (tif_unix.c:248)
5021 ==2090657== by 0x1093D9: main (tiffsplit.c:75)
5022 ==2090657==
5023 ==2090657== LEAK SUMMARY:
5024 ==2090657== definitely lost: 2,549 bytes in 2 blocks
5025 ==2090657== indirectly lost: 10,968 bytes in 15 blocks
5026 ==2090657== possibly lost: 0 bytes in 0 blocks
5027 ==2090657== still reachable: 0 bytes in 0 blocks
5028 ==2090657== suppressed: 0 bytes in 0 blocks
5029 ==2090657==
5030 ==2090657== For lists of detected and suppressed errors, rerun with: -s
5031 ==2090657== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
5032
5033 2021-10-20 Even Rouault <[email protected]>
5034
5035 tif_webp.c: add explicit cast to please MSVC verbose warnings.
5036
5037 tif_webp.c: white space fixing.
5038
5039 2021-10-04 Even Rouault <[email protected]>
5040
5041 Merge branch 'work/amyspark/psd-blobs' into 'master'
5042 Enable writing Photoshop blobs
5043
5044 See merge request libtiff/libtiff!269
5045
5046 2021-10-04 L. E. Segovia <[email protected]>
5047
5048 Enable writing Photoshop blobs.
5049
5050 2021-09-29 Even Rouault <[email protected]>
5051
5052 Merge branch 'remove_packbits_hack' into 'master'
5053 PackBitsDecode: remove hack for when char is unsigned.
5054
5055 See merge request libtiff/libtiff!267
5056
5057 2021-09-28 Even Rouault <[email protected]>
5058
5059 PackBitsDecode: remove hack for when char is unsigned.
5060 The function has a hack for platforms where char is unsigned. This is
5061 better replaced by making bp a int8_t* pointer, which is guaranteed to
5062 be signed.
5063
5064 2021-09-27 Even Rouault <[email protected]>
5065
5066 tiffcrop.c: remove useless 'set but not read' variables.
5067
5068 2021-09-23 Even Rouault <[email protected]>
5069
5070 Merge branch 'fix_gdal_4538' into 'master'
5071 TIFFAppendToStrip(): fix rewrite-in-place logic
5072
5073 See merge request libtiff/libtiff!266
5074
5075 2021-09-23 Even Rouault <[email protected]>
5076
5077 TIFFAppendToStrip(): fix rewrite-in-place logic.
5078 reproducible in particular with packbits compression.
5079
5080 Fixes https://github.com/OSGeo/gdal/issues/4538
5081
5082 2021-09-17 Even Rouault <[email protected]>
5083
5084 tif_lzw.c: silence compiler warning about set but not used variable with recent clang
5085
5086 2021-09-07 Even Rouault <[email protected]>
5087
5088 Merge branch 'fix_cygwin' into 'master'
5089 Fix build warnings on cygwin about 'argument 1 of type 'float[3]' with...
5090
5091 See merge request libtiff/libtiff!265
5092
5093 2021-09-06 Even Rouault <[email protected]>
5094
5095 test/rational_precision2double.c: add missing curly braces to fix -Werror=misleading-indentation
5096
5097 2021-09-05 Even Rouault <[email protected]>
5098
5099 Fix build warnings on cygwin about 'argument 1 of type 'float[3]' with mismatched bound [-Werror=array-parameter=]'
5100
5101 2021-09-05 Even Rouault <[email protected]>
5102
5103 Merge branch 'rewrite-fix' into 'master'
5104 Fix TIFFRewriteDirectory discarding directories after the rewritten one
5105
5106 See merge request libtiff/libtiff!264
5107
5108 2021-09-05 Facundo Tuesca <[email protected]>
5109
5110 tif_dirwrite.c: Fix TIFFRewriteDirectory discarding directories.
5111 This fixes a bug caused by the `tif_lastdiroff` optimization when
5112 rewriting directories.
5113
5114 Rewriting the Nth directory temporarily zeroes the pointer to it
5115 (located in the N-1th directory) and relies on `TIFFLinkDirectory`
5116 traversing the whole directory list to find the zeroed pointer and
5117 linking the rewritten directory to it. Since `TIFFLinkDirectory` skips
5118 the traversal when `tif_lastdiroff` is set, this change unsets it
5119 to force the full traversal when rewriting a directory.
5120
5121 A test to catch this particular issue is also added.
5122
5123 2021-09-01 Even Rouault <[email protected]>
5124
5125 test_directory.c: fix compiler warnings.
5126
5127 2021-09-01 Even Rouault <[email protected]>
5128
5129 Merge branch 'multipage-optimization' into 'master'
5130 Keep track of last directory to improve performance for large multi-page files
5131
5132 See merge request libtiff/libtiff!262
5133
5134 2021-08-28 Facundo Tuesca <[email protected]>
5135
5136 Add field to keep track of last written directory.
5137 This adds a new `tif_lastdiroff` field to the TIFF data structure
5138 and uses it to store the offset of the last written directory.
5139
5140 Appending a new directory required traversing the whole file
5141 to find the last directory. By keeping track of its offset in this
5142 new field, the search is no longer necessary.
5143
5144 Since this offset is only stored in-memory, the first directory
5145 append after opening a file will have to transverse the whole
5146 directory list. Subsequent calls will have access to the last
5147 offset, avoiding the transversal.
5148
5149 2021-08-13 Even Rouault <[email protected]>
5150
5151 tif_jpeg.c: fix memory leak on error code path for JPEG 12 bit (CID 1086702)
5152
5153 2021-07-29 Even Rouault <[email protected]>
5154
5155 Merge branch 'jpeg12' into 'master'
5156 Enable JPEG 12bit support with a libjpeg that has a different ABI than the one for 8bit support
5157
5158 See merge request libtiff/libtiff!261
5159
5160 2021-07-28 Even Rouault <[email protected]>
5161
5162 Reformat tif_jpeg.c and tif_jpeg_12.c with clang-format-10.
5163
5164 2021-07-27 Even Rouault <[email protected]>
5165
5166 Enable JPEG 12bit support with a libjpeg that has a different ABI than the one for 8bit support
5167 See https://github.com/OSGeo/gdal/pull/4139 for more details
5168
5169 Note: this hasn't been tested for standalone libtiff builds.
5170
5171 2021-07-09 Even Rouault <[email protected]>
5172
5173 Merge branch 'wip/export-targets' into 'master'
5174 Export tiff targets
5175
5176 See merge request libtiff/libtiff!258
5177
5178 2021-07-09 Even Rouault <[email protected]>
5179
5180 Merge branch 'pkgconfig' into 'master'
5181 Add version and requirements to pc file
5182
5183 See merge request libtiff/libtiff!256
5184
5185 2021-07-09 Kai Pastor <[email protected]>
5186
5187 Fix version in libtiff-4.pc.in, and CMake build: Add requirements to pc file
5188
5189 2021-07-09 Even Rouault <[email protected]>
5190
5191 Merge branch 'cmake' into 'master'
5192 Fix build issues with CMake 3.10
5193
5194 See merge request libtiff/libtiff!260
5195
5196 2021-07-04 Kai Pastor <[email protected]>
5197
5198 Fix reconfiguration with cmake.
5199
5200 Fix build with CMake 3.10.
5201
5202 2021-06-28 Milian Wolff <[email protected]>
5203
5204 Export tiff targets.
5205 Fixes build when including libtiff as a cmake subproject into
5206 another project and then installing a target from there which
5207 depends on tiff. For example we could end up with:
5208
5209 ```
5210 CMake Error in 3rdParty/diplib/CMakeLists.txt:
5211 export called with target "DIP" which requires target "tiff" that is not in
5212 any export set.
5213 ```
5214
5215 2021-06-21 Even Rouault <[email protected]>
5216
5217 Merge branch 'libjpeg9d_support_simplification' into 'master'
5218 tif_jpeg.c: simplify libjpeg 9d support (refs #266)
5219
5220 See merge request libtiff/libtiff!257
5221
5222 2021-06-20 Even Rouault <[email protected]>
5223
5224 tif_jpeg.c: simplify libjpeg 9d support (refs #266)
5225 Credits to Guido Vollbeding for the suggestion
5226
5227 2021-06-15 Even Rouault <[email protected]>
5228
5229 Merge branch 'jpeg_in_tiff_jpeg_9d' into 'master'
5230 tif_jpeg.c: workaround bug of libjpeg 9d that defers Huffman table creation
5231
5232 Closes #266
5233
5234 See merge request libtiff/libtiff!255
5235
5236 2021-06-15 Even Rouault <[email protected]>
5237
5238 Merge branch 'jpeg_disable_progressive_with_mozjpeg' into 'master'
5239 tif_jpeg.c: do not emit progressive scans with mozjpeg and force optimize_coding
5240
5241 See merge request libtiff/libtiff!254
5242
5243 2021-06-12 Even Rouault <[email protected]>
5244
5245 tif_jpeg.c: with mozjpeg, disable emission of Huffman tables in JpegTables tag, and use optimize_coding
5246
5247 2021-06-10 Even Rouault <[email protected]>
5248
5249 tif_jpeg.c: workaround bug of libjpeg 9d that defers Huffman table creation
5250 Fixes #266
5251
5252 libjpeg-9d no longer creates default Huffman tables in
5253 jpeg_set_defaults(), which make their emission in the JpegTables tag no
5254 longer possible. Workaround that by borrowing code from libjpeg to
5255 manually create them when they are not initialized.
5256
5257 2021-06-10 Even Rouault <[email protected]>
5258
5259 tif_jpeg.c: do not emit progressive scans with mozjpeg.
5260 Relates to #266
5261
5262 - On writing, explicitly disable progressive scans, which is normally
5263 not enabled, except with mozjpeg.
5264 - On reading, emit a warning when encountering progressive scans.
5265
5266 2021-06-10 Even Rouault <[email protected]>
5267
5268 Merge branch 'fix-263' into 'master'
5269 Fix memory leak in tiff2pdf
5270
5271 See merge request libtiff/libtiff!249
5272
5273 2021-06-09 Even Rouault <[email protected]>
5274
5275 Merge branch 'diizzyy-master-patch-20521' into 'master'
5276 html: Add missing pages when using CMake
5277
5278 See merge request libtiff/libtiff!242
5279
5280 2021-06-09 Daniel E <[email protected]>
5281
5282 html: Add missing pages when using CMake.
5283
5284 2021-06-07 Even Rouault <[email protected]>
5285
5286 Merge branch 'ci-reenable-cygwin' into 'master'
5287 ci: Re-enable cygwin builds
5288
5289 See merge request libtiff/libtiff!252
5290
5291 2021-06-06 Roger Leigh <[email protected]>
5292
5293 ci: Re-enable cygwin builds.
5294
5295 2021-06-06 Even Rouault <[email protected]>
5296
5297 Merge branch 'ci-arm64' into 'master'
5298 ci: Add arm64 build
5299
5300 See merge request libtiff/libtiff!251
5301
5302 2021-06-06 Roger Leigh <[email protected]>
5303
5304 ci: Add arm64 build.
5305
5306 2021-06-05 Even Rouault <[email protected]>
5307
5308 _TIFFRewriteField(): fix when writing a IFD with a single tile that is a sparse one, on big endian hosts
5309
5310 2021-06-02 Timothy Lyanguzov <[email protected]>
5311
5312 Fix memory leak in tiff2pdf.
5313
5314 2021-06-01 Even Rouault <[email protected]>
5315
5316 Merge branch 'lzw_cleanup' into 'master'
5317 tif_lzw.c: cleanup, no functional change
5318
5319 See merge request libtiff/libtiff!248
5320
5321 2021-05-31 Even Rouault <[email protected]>
5322
5323 tif_lzw.c: cleanup, no functional change.
5324
5325 2021-05-22 Even Rouault <[email protected]>
5326
5327 Merge branch 'appveyor_disable_cygwin' into 'master'
5328 .appveyor.yml: disable cygwin configs for now as they are broken
5329
5330 See merge request libtiff/libtiff!247
5331
5332 2021-05-22 Even Rouault <[email protected]>
5333
5334 Merge branch 'zstd_reuse_objects' into 'master'
5335 ZSTD codec: reuse compressor/decompressor objects
5336
5337 See merge request libtiff/libtiff!246
5338
5339 2021-05-22 Even Rouault <[email protected]>
5340
5341 .appveyor.yml: disable cygwin configs for now as they are broken.
5342
5343 ZSTD codec: reuse compressor/decompressor objects.
5344 No need to recreate them each time in the PreEncode/Decode functions.
5345 They can be reused if already existing.
5346
5347 2021-05-08 Even Rouault <[email protected]>
5348
5349 Merge branch 'adobedeflate-fix' into 'master'
5350 Fix all remaining uses of legacy Deflate compression id and warn on use
5351
5352 See merge request libtiff/libtiff!245
5353
5354 2021-05-08 David Ryskalczyk <[email protected]>
5355
5356 Fix all remaining uses of legacy Deflate compression id and warn on use.
5357
5358 2021-05-06 Even Rouault <[email protected]>
5359
5360 Merge branch 'improve_tiffinfo_tiffdump_for_gdal_tags' into 'master'
5361 tiffinfo/tiffdump: improve output for GDAL tags
5362
5363 See merge request libtiff/libtiff!244
5364
5365 2021-05-03 Even Rouault <[email protected]>
5366
5367 Merge branch 'issue-252' into 'master'
5368 Prevent adding root directory to include list
5369
5370 Closes #252 et #218
5371
5372 See merge request libtiff/libtiff!243
5373
5374 2021-05-03 Even Rouault <[email protected]>
5375
5376 tiffinfo/tiffdump: improve output for GDAL tags.
5377
5378 2021-04-29 Timothy Lyanguzov <[email protected]>
5379
5380 Prevent adding root directory to include list.
5381 there is a file VERSION in the root directory which clashes with C++20 standard header <version>
5382 "config.h" file is created in "config" subdirectory to prevent adding "-I.." to generated Makefile
5383
5384 closes #218, #252
5385
5386 2021-04-23 Laszlo Boszormenyi (GCS) <[email protected]>
5387
5388 fix TIFFReadRawStrip man and HTML page typo.
5389 From https://github.com/conda-forge/libtiff-feedstock/blob/master/recipe/patches/fix_TIFFReadRawStrip_man_page_typo.patch
5390
5391 2021-04-20 Even Rouault <[email protected]>
5392
5393 HOWTO-RELEASE: update.
5394
5395 2021-04-18 Even Rouault <[email protected]>
5396
5397 Merge branch 'lerc_zstd_deflate' into 'master'
5398 Make LERC_SUPPORT conditional on ZLIB_SUPPORT. Make display of lerc options in tiffcp depend on actual zstd support.
5399
5400 See merge request libtiff/libtiff!239
5401
5402 2021-04-18 Miguel Medalha <[email protected]>
5403
5404 Make LERC_SUPPORT conditional on ZLIB_SUPPORT. Make display of lerc options in tiffcp depend on actual zstd support.
5405
5406 2021-04-17 Even Rouault <[email protected]>
5407
5408 Merge branch 'vtorri_xz' into 'master'
5409 automatic creation of xz archive when running make distcheck
5410
5411 See merge request libtiff/libtiff!238
5412
5413 2021-04-16 Even Rouault <[email protected]>
5414
5415 iptcutil.c: fix bug in EOF comparison, spotted on NetBSD 9 earmv7hf-el.
5416
5417 2021-04-16 Even Rouault <[email protected]>
5418
5419 libtiff v4.3.0 released
5420
5421 2021-04-15 Even Rouault <[email protected]>
5422
5423 Merge branch 'libjpeg12_cmake' into 'master'
5424 libtiff/tif_config.h.cmake.in: surround LIBJPEG_12_PATH by double quotes
5425
5426 See merge request libtiff/libtiff!237
5427
5428 2021-04-15 Even Rouault <[email protected]>
5429
5430 libtiff/tif_config.h.cmake.in: surround LIBJPEG_12_PATH by double quotes
5431
5432 2021-04-14 Even Rouault <[email protected]>
5433
5434 Merge branch 'lerc_api_change' into 'master'
5435 tif_lerc.c: cope with API breakage in liblerc master
5436
5437 See merge request libtiff/libtiff!236
5438
5439 2021-04-14 Even Rouault <[email protected]>
5440
5441 tif_lerc.c: cope with API breakage in liblerc master.
5442
5443 2021-04-08 Even Rouault <[email protected]>
5444
5445 libtiff: remove remaining #ifdef WIN32 and use PRI formatting.
5446
5447 2021-03-10 Even Rouault <[email protected]>
5448
5449 Merge branch 'kmilos-master-patch-73187' into 'master'
5450 tiffcp: Remove LZW help text, preset not supported
5451
5452 See merge request libtiff/libtiff!229
5453
5454 2021-03-10 Miloš Komarčević <[email protected]>
5455
5456 tiffcp: Remove LZW help text, preset not supported.
5457
5458 2021-03-10 Even Rouault <[email protected]>
5459
5460 Merge branch 'feature/lerc' into 'master'
5461 Add LERC Compression Plugin (closes: #213)
5462
5463 Closes #213
5464
5465 See merge request libtiff/libtiff!228
5466
5467 2021-03-10 Even Rouault <[email protected]>
5468
5469 Merge branch 'cmake-fixes' into 'master'
5470 CMake fixes
5471
5472 Closes #246 et #245
5473
5474 See merge request libtiff/libtiff!232
5475
5476 2021-03-09 Roger Leigh <[email protected]>
5477
5478 cmake: Correct FindCMath.
5479
5480 cmake: Correct ZSTD_USABLE typo.
5481
5482 2021-03-07 Roger Leigh <[email protected]>
5483
5484 Merge branch 'cmake-find-lib-prefixes' into 'master'
5485 cmake: Correct find lib prefixes for Deflate and JBIG
5486
5487 See merge request libtiff/libtiff!231
5488
5489 2021-03-07 Roger Leigh <[email protected]>
5490
5491 cmake: FindJBIG uses lib prefix on Windows.
5492
5493 cmake: FindDeflate uses lib prefix on Windows.
5494
5495 2021-03-07 Even Rouault <[email protected]>
5496
5497 TWebPDecode(): avoid potential overflow on multiplication (CID 1472928)
5498
5499 TIFFReadDirEntryArrayWithLimit(): avoid false positive from Coverity Scan regarding out-of-bounds access (CID 1472927)
5500
5501 tif_dirwrite.c: avoid setting a variable that is not read afterwards.
5502
5503 2021-03-07 Even Rouault <[email protected]>
5504
5505 Merge branch 'coverity-fixes' into 'master'
5506 Coverity fixes (high impact)
5507
5508 See merge request libtiff/libtiff!227
5509
5510 2021-03-07 Roger Leigh <[email protected]>
5511
5512 Fix high-impact Coverity issues (resource leaks).
5513 The issues are in the tests and tiffcrop, not the core library. Real issues, but not high risk.
5514
5515 Use to test if Coverity integration is performing properly on merge.
5516
5517 2021-03-07 Even Rouault <[email protected]>
5518
5519 Merge branch 'fix_tif_fax3_encoder_regression' into 'master'
5520 tif_fax3.c: fix master regression in encoder
5521
5522 See merge request libtiff/libtiff!230
5523
5524 2021-03-07 Even Rouault <[email protected]>
5525
5526 tif_fax3.c: fix master regression in encoder.
5527 Fix issue introduced in 39a74eede0455ec8ee334dcddf71f5354d508d8b
5528
5529 Spotted by gdal's tiff_write_76 test
5530
5531 2021-03-07 Antonio Valentino <[email protected]>
5532
5533 Add LERC support in CMake.
5534
5535 2021-03-07 Antonio Valentino <[email protected]>
5536
5537 Add LERC support in configure.ac and Makefile.am.
5538
5539 2021-03-07 Antonio Valentino <[email protected]>
5540
5541 Add LERC support to tiffcp.
5542
5543 2021-03-07 Antonio Valentino <[email protected]>
5544
5545 Add LERC plugin.
5546 The lerc plugin code has been copied from GDAL.
5547
5548 2021-03-06 Roger Leigh <[email protected]>
5549
5550 Merge branch 'display_tool_purpose' into 'master'
5551 TIFF tools: insert a line of text summarizing each tool's purpose
5552
5553 See merge request libtiff/libtiff!214
5554
5555 2021-03-06 Even Rouault <[email protected]>
5556
5557 Merge branch 'cmake-update' into 'master'
5558 CMake updates
5559
5560 See merge request libtiff/libtiff!224
5561
5562 2021-03-06 Even Rouault <[email protected]>
5563
5564 tiff.h: typo fix in comment.
5565
5566 2021-02-15 Roger Leigh <[email protected]>
5567
5568 Merge branch 'remove-travis' into 'master'
5569 ci: Remove unused Travis-CI support
5570
5571 See merge request libtiff/libtiff!226
5572
5573 2021-02-14 Roger Leigh <[email protected]>
5574
5575 ci: Remove unused Travis-CI support.
5576
5577 2021-02-14 Roger Leigh <[email protected]>
5578
5579 Merge branch 'ci-coverity' into 'master'
5580 Enable Coverity static analysis with CI pipeline
5581
5582 See merge request libtiff/libtiff!225
5583
5584 2021-02-14 Roger Leigh <[email protected]>
5585
5586 ci: Add Coverity static analysis job.
5587
5588 ci: Use custom libtiff CI image.
5589
5590 2021-02-13 Roger Leigh <[email protected]>
5591
5592 cmake: Add release target.
5593
5594 cmake: Remove empty contrib files.
5595
5596 cmake: Tidy toplevel.
5597
5598 cmake: Move pkg-config support to PkgConfig.cmake.
5599
5600 cmake: Move library feature options to CXXLibraryFeatures.cmake.
5601
5602 cmake: Move C++ support to CXXLibrary.cmake.
5603
5604 cmake: Add FindCMath to handle libm linking portably.
5605
5606 cmake: Tidy unused includes.
5607
5608 cmake: Rename release date to build date.
5609
5610 cmake: Compute timestamp portably.
5611
5612 cmake: Remove remaining uses of report_values()
5613
5614 cmake: Move JPEG12 checks to JPEGCodec.cmake.
5615
5616 cmake: Move OpenGL checks to OpenGLChecks.cmake.
5617
5618 cmake: Move OpenGL checks to OpenGLChecks.cmake.
5619
5620 cmake: Move WebP codec support to WebPCodec.cmake.
5621
5622 cmake: Use imported targets for WebP.
5623
5624 cmake: Add FindWebP.
5625
5626 cmake: Move ZSTD codec support to ZSTDCodec.cmake.
5627
5628 cmake: Use imported targets for ZSTD.
5629
5630 cmake: Add FindZSTD.
5631
5632 cmake: Move LZMA codec support to LZMACodec.cmake.
5633
5634 cmake: Use imported targets for LibLZMA.
5635
5636 cmake: Move JBIG codec support to JBIGCodec.cmake.
5637
5638 cmake: Use imported targets for JBIG.
5639
5640 cmake: Add FindJBIG.
5641
5642 cmake: Move PixarLog codec support to PixarLogCodec.cmake.
5643
5644 cmake: Report system name in configuration report.
5645
5646 cmake: Move JPEG codec support to JPEGCodec.cmake.
5647
5648 cmake: Use imported targets for JPEG.
5649
5650 cmake: Move Deflate codec support to DeflateCodec.cmake.
5651
5652 cmake: Use imported targets for ZLIB and Deflate.
5653
5654 cmake: Add FindDeflate.
5655
5656 cmake: Move symbol checks to SymbolChecks.cmake.
5657
5658 cmake: Move include checks to IncludeChecks.cmake.
5659
5660 cmake: Move all autotools logic to separate files.
5661
5662 cmake: Move internal codec options to InternalCodecs.cmake.
5663
5664 cmake: Move LFS check to LargeFileSupport.cmake.
5665
5666 cmake: Move Win32 IO feature to WindowsIOFeature.cmake.
5667
5668 cmake: Move processor capability checks to ProcessorChecks.cmake.
5669
5670 cmake: Move type size checks to TypeSizeChecks.cmake.
5671
5672 cmake: Move linker checks to LinkerChecks.cmake.
5673
5674 cmake: Move warning options to CompilerChecks.
5675
5676 cmake: Move version introspection to AutotoolsVersion.cmake.
5677
5678 cmake: Move compiler checks to CompilerChecks.cmake.
5679
5680 cmake: Split into helper scripts.
5681
5682 2021-02-08 Roger Leigh <[email protected]>
5683
5684 cmake: Use target_sources.
5685
5686 libport: Adjust header and library to only define and link if required.
5687 * Make libport an OBJECT library when in use, otherwise a dummy
5688 INTERFACE library
5689 * libport.h will work if getopt is present or not present. If
5690 present, will fall back to <unistd.h>, else will define
5691 symbols
5692 * Add generated libport_config.h to define HAVE_GETOPT and HAVE_UNISTD_H
5693 * dummy.c no longer needed with CMake
5694 * libtiff/libtiffxx no longer link with libport
5695
5696 cmake: Remove unnecessary extra_dist usage.
5697 Only makes sense in the context of Automake. Was carried over
5698 for reference while porting, but is not needed.
5699
5700 cmake: Update minimum version and policy version to 3.9.
5701
5702 2021-02-08 Roger Leigh <[email protected]>
5703
5704 Merge branch 'remove-nmake' into 'master'
5705 Remove NMake build support
5706
5707 See merge request libtiff/libtiff!223
5708
5709 2021-02-08 Roger Leigh <[email protected]>
5710
5711 Remove NMake build support.
5712 The functionality provided by the NMake build is now completely
5713 superseded by the CMake build.
5714
5715 2021-02-08 Even Rouault <[email protected]>
5716
5717 Merge branch 'warning-fixes' into 'master'
5718 Warning fixes
5719
5720 See merge request libtiff/libtiff!222
5721
5722 2021-02-07 Miguel Medalha <[email protected]>
5723
5724 Update tiffsplit.c.
5725
5726 Reinsert summary line lost after conflicting merge.
5727
5728 Merge branch 'master' into 'display_tool_purpose'
5729 # Conflicts:
5730 # tools/tiffsplit.c
5731
5732 2021-02-06 Roger Leigh <[email protected]>
5733
5734 ci: Enable fatal warnings with -Werror for AppVeyor/GCC.
5735
5736 ci: Enable fatal warnings with -Werror for GitLab CI.
5737
5738 tif_zstd.c: Remove unused variable warning.
5739
5740 custom_dir_EXIF_231: Remove case statement fallthrough.
5741
5742 custom_dir_EXIF_231: Correct use of strncpy.
5743
5744 Correct include order.
5745
5746 Eliminate implicit fallthrough usage.
5747 Use simple loops in place of manual loop unrolling. Rely on
5748 the compiler optimiser to unroll loops when appropriate.
5749
5750 Suppress potential unused variable warning.
5751
5752 Suppress warnings or avoid case statement fallthrough.
5753
5754 2021-02-05 Roger Leigh <[email protected]>
5755
5756 Merge branch 'c99-ssize_t-fixes' into 'master'
5757 C99 ssize_t fixes
5758
5759 Closes #239
5760
5761 See merge request libtiff/libtiff!219
5762
5763 2021-02-05 Even Rouault <[email protected]>
5764
5765 Merge branch 'tiffsplit-too-many-args' into 'master'
5766 tiffsplit.c: exit with EXIT_FAILURE if there are extra args on the command line
5767
5768 See merge request libtiff/libtiff!209
5769
5770 2021-02-05 Roger Leigh <[email protected]>
5771
5772 Add additional TIFF_SSIZE_FORMAT uses.
5773
5774 2021-02-04 Roger Leigh <[email protected]>
5775
5776 NMake fixes for size type formatting.
5777
5778 Add TIFF_SIZE_FORMAT for portable use of %z.
5779 MinGW64 does support %z, but it issues a compiler warning.
5780
5781 Align Autoconf tif_config.h and CMake tif_config.cmake.in.
5782
5783 Use TIFF_SSIZE_FORMAT for formatting tmsize_t.
5784
5785 2021-02-04 Even Rouault <[email protected]>
5786
5787 Merge branch 'remove-lcc' into 'master'
5788 Remove Makefile.lcc
5789
5790 See merge request libtiff/libtiff!221
5791
5792 2021-02-04 Even Rouault <[email protected]>
5793
5794 Merge branch 'remove-scons' into 'master'
5795 Remove SCons build
5796
5797 See merge request libtiff/libtiff!220
5798
5799 2021-02-03 Even Rouault <[email protected]>
5800
5801 Merge branch 'c99-snprintf' into 'master'
5802 Use C99 snprintf
5803
5804 See merge request libtiff/libtiff!217
5805
5806 2021-02-03 Roger Leigh <[email protected]>
5807
5808 Merge branch 'tiff2ps-const' into 'master'
5809 tiff2ps.c: string literals must be const char *, not char *
5810
5811 See merge request libtiff/libtiff!202
5812
5813 2021-02-03 Roger Leigh <[email protected]>
5814
5815 Remove SCons build.
5816 Unmaintained for 16 years.
5817
5818 2021-02-03 Roger Leigh <[email protected]>
5819
5820 Merge branch 'codec_summary' into 'master'
5821 Modify 'CMakeLists.txt' to produce a meaningful summary of external codecs
5822
5823 See merge request libtiff/libtiff!192
5824
5825 2021-02-03 Roger Leigh <[email protected]>
5826
5827 Remove Makefile.lcc.
5828 Unmaintained for 22 years.
5829
5830 2021-02-02 Roger Leigh <[email protected]>
5831
5832 Merge branch 'ci-32-bit' into 'master'
5833 ci: Build 32- and 64-bit MSVC variants
5834
5835 See merge request libtiff/libtiff!218
5836
5837 2021-02-01 Roger Leigh <[email protected]>
5838
5839 ci: Build 32- and 64-bit MSVC variants.
5840
5841 Use C99 snprintf.
5842
5843 2021-02-01 Even Rouault <[email protected]>
5844
5845 Merge branch 'c99-strtol' into 'master'
5846 Use C99 strtol, strtoul, strtoll and strtoull
5847
5848 See merge request libtiff/libtiff!216
5849
5850 2021-01-31 Even Rouault <[email protected]>
5851
5852 Merge branch 'c99-inline' into 'master'
5853 Use C99 inline
5854
5855 See merge request libtiff/libtiff!215
5856
5857 2021-01-31 Roger Leigh <[email protected]>
5858
5859 Use C99 strtol, strtoul, strtoll and strtoull.
5860
5861 tif_fax3: Use C99 inline.
5862
5863 Remove inline feature tests and defines.
5864 Available as a standard feature with C99.
5865
5866 2021-01-30 Miguel Medalha <[email protected]>
5867
5868 Update raw2tiff.c (remove duplicate description of tool)
5869
5870 2021-01-30 Roger Leigh <[email protected]>
5871
5872 Merge branch 'c99-format-strings' into 'master'
5873 C99 format strings
5874
5875 See merge request libtiff/libtiff!211
5876
5877 2021-01-29 Miguel Medalha <[email protected]>
5878
5879 Update tiffdither.c (2 tabs caused slight misalignment of lines in usage info output)
5880
5881 2021-01-28 Miguel Medalha <[email protected]>
5882
5883 Update ppm2tiff.c (slight misalignment of lines in usage info output)
5884
5885 Update tiffset.c (small misalignment of lines in usage info output)
5886
5887 2021-01-28 Medalha <[email protected]>
5888
5889 Display tool purpose.
5890
5891 2021-01-28 Thomas Bernard <[email protected]>
5892
5893 tiff2ps.c: string literals must be const char *, not char *
5894
5895 2021-01-28 Roger Leigh <[email protected]>
5896
5897 libtiff: Use PRI format flags and remove unnecessary casts.
5898
5899 2021-01-27 Roger Leigh <[email protected]>
5900
5901 ascii_tag: Use PRI format flags and remove unnecessary casts.
5902
5903 check_tag: Use PRI format flags and remove unnecessary casts.
5904
5905 custom_dir_EXIF_231: Use PRI format flags and remove unnecessary casts.
5906
5907 short_tag: Use PRI format flags and remove unnecessary casts.
5908
5909 strip_rw: Use PRI format flags and remove unnecessary casts.
5910
5911 fax2tiff: Use PRI format flags and remove unnecessary casts.
5912
5913 ppm2tiff: Correct format strings.
5914
5915 raw2tiff: Use PRI format flags and remove unnecessary casts.
5916
5917 rgb2ycbcr: Use PRI format flags and remove unnecessary casts.
5918
5919 tiff2pdf: Use PRI format flags and remove unnecessary casts.
5920
5921 tiff2ps: Use PRI format flags and remove unnecessary casts.
5922
5923 tiff2rgba: Use PRI format flags and remove unnecessary casts.
5924
5925 tiffcmp: Use PRI format flags and remove unnecessary casts.
5926
5927 tiffcp: Use PRI format flags and remove unnecessary casts.
5928
5929 tiffcrop: Use PRI format flags and remove unnecessary casts.
5930
5931 tiffinfo: Use PRI format flags and remove unnecessary casts.
5932
5933 tiffdump: Use PRI format flags and remove unnecessary casts.
5934
5935 2021-01-27 Even Rouault <[email protected]>
5936
5937 Merge branch 'c99-require-stdtypes' into 'master'
5938 Use standard C99 integer types
5939
5940 See merge request libtiff/libtiff!205
5941
5942 2021-01-26 Even Rouault <[email protected]>
5943
5944 Merge branch 'reserve_COMPRESSION_JXL' into 'master'
5945 tiff.h: reserve COMPRESSION_JXL=50002 for JPEGXL
5946
5947 See merge request libtiff/libtiff!210
5948
5949 2021-01-22 Even Rouault <[email protected]>
5950
5951 tiff.h: reserve COMPRESSION_JXL=50002 for JPEGXL.
5952
5953 2021-01-22 Kurt Schwehr <[email protected]>
5954
5955 tiffsplit.c: exit with EXIT_FAILURE if there are extra args on the command line
5956 e.g. tiffsplit in.tif a_prefix_ junk
5957
5958 2021-01-22 Roger Leigh <[email protected]>
5959
5960 Add and enable TIFF_DISABLE_DEPRECATED for internal use.
5961
5962 Add typedef deprecations for GCC/Clang and MSVC.
5963
5964 Use standard C99 integer types.
5965
5966 2021-01-20 Even Rouault <[email protected]>
5967
5968 Merge branch 'ubuntu-zstd-wepb' into 'master'
5969 gitlab-ci : use libzstd-dev and libwebp-dev ubuntu packages
5970
5971 See merge request libtiff/libtiff!208
5972
5973 2021-01-20 Thomas Bernard <[email protected]>
5974
5975 gitlab-ci : use libzstd-dev and libwebp-dev ubuntu packages.
5976 should replace !206
5977
5978 2021-01-20 Even Rouault <[email protected]>
5979
5980 Merge branch 'issue-232' into 'master'
5981 tiff2ps: exit the loop in case of error
5982
5983 Closes #232
5984
5985 See merge request libtiff/libtiff!201
5986
5987 2021-01-20 Even Rouault <[email protected]>
5988
5989 Merge branch 'tiffsplit-exit-status' into 'master'
5990 tiffsplit: Exit with EXIT_FAILURE if unable to open the input file.
5991
5992 See merge request libtiff/libtiff!207
5993
5994 2021-01-20 Even Rouault <[email protected]>
5995
5996 Merge branch 'config-cleanup' into 'master'
5997 Remove HAVE_INTTYPES_H, HAVE_LFIND & lfind, HAVE_SEARCH_H & include <search.h>
5998
5999 See merge request libtiff/libtiff!203
6000
6001 2021-01-19 Kurt Schwehr <[email protected]>
6002
6003 tiffsplit: Exit with EXIT_FAILURE if unable to open the input file.
6004
6005 2021-01-18 Even Rouault <[email protected]>
6006
6007 Merge branch 'tiffcmp' into 'master'
6008 tiffcmp: fix comparison with pixels that are fractional number of bytes
6009
6010 Closes #53
6011
6012 See merge request libtiff/libtiff!141
6013
6014 2021-01-15 Kurt Schwehr <[email protected]>
6015
6016 CMakeLists.txt: Remove search for lfind.
6017
6018 Remove HAVE_INTTYPES_H, HAVE_LFIND & lfind, HAVE_SEARCH_H & include <search.h>
6019 - HAVE_INTTYPES_H is replaced with TIFF_HAVE_INTTYPES_H
6020 - tif_dirinfo.c has a static td_lfind
6021
6022 2021-01-15 Thomas Bernard <[email protected]>
6023
6024 tiffcmp: fix comparison with pixels that are fractional number of bytes
6025 For example : 4bits per sample + 3 samples per pixel => 1.5 bytes per pixel
6026
6027 tiff2ps: exit the loop in case of error.
6028 fixes #232
6029
6030 2021-01-15 Even Rouault <[email protected]>
6031
6032 Merge branch 'rm-strcasecmp' into 'master'
6033 Remove port/strcasecmp.c as strcasecmp is not currently used in libtiff.
6034
6035 Closes #235
6036
6037 See merge request libtiff/libtiff!199
6038
6039 2021-01-15 Even Rouault <[email protected]>
6040
6041 Merge branch 'std-int-types' into 'master'
6042 Use standard C99 integer types
6043
6044 See merge request libtiff/libtiff!185
6045
6046 2021-01-13 Kurt Schwehr <[email protected]>
6047
6048 Remove port/strcasecmp.c as strcasecmp is not currently used in libtiff.
6049 Fixes #235
6050
6051 2021-01-10 Miguel Medalha <[email protected]>
6052
6053 Update CMakeLists.txt. Delete unnecessary line from libdeflate codec support section
6054
6055 2021-01-10 Roger Leigh <[email protected]>
6056
6057 Merge branch 'include_libport' into 'master'
6058 tiff tools and libtiff/mkg3states: include 'libport.h', remove local definition of 'getopt()'
6059
6060 See merge request libtiff/libtiff!198
6061
6062 2021-01-09 Miguel Medalha <[email protected]>
6063
6064 Update CMakeLists.txt. Cleanup of indentation space. Removal of leading '/' from webp include dir.
6065
6066 2021-01-09 miguel <[email protected]>
6067
6068 cmake: Use target_include_directories correctly.
6069
6070 2021-01-09 Roger Leigh <[email protected]>
6071
6072 cmake: Use target_include_directories correctly.
6073
6074 cmake: Drop unnecessary TOOL_INCLUDES.
6075
6076 2021-01-07 Roger Leigh <[email protected]>
6077
6078 cmake: Use target_include_directories correctly.
6079
6080 2021-01-07 miguel <[email protected]>
6081
6082 tiff tools and libtiff/mkg3states: include 'libport.h', remove local definition of 'getopt()'
6083
6084 2021-01-07 Miguel Medalha <[email protected]>
6085
6086 Update CMakeLists.txt.
6087
6088 2021-01-07 miguel <[email protected]>
6089
6090 tiff tools: include 'libport.h', remove local definition of 'getopt()'
6091
6092 2021-01-06 Roger Leigh <[email protected]>
6093
6094 Remove conditional use of <string.h>
6095
6096 cmake: Drop dlfcn.h check.
6097
6098 cmake: Remove duplicate line.
6099
6100 Use stdint.h types when available.
6101
6102 2021-01-05 Olivier Paquet <[email protected]>
6103
6104 Merge branch 'iptcutil' into 'master'
6105 contrib/iptcutil.c: set '#ifdef _WIN32' (was '#ifdef WIN32', which failed at build time)
6106
6107 See merge request libtiff/libtiff!197
6108
6109 2021-01-05 miguel <[email protected]>
6110
6111 tiff tools: include 'libport.h', remove local definition of 'getopt()'
6112
6113 contrib/iptcutil.c - set '#ifdef _WIN32' (was '#ifdef WIN32', which failed at build time)
6114
6115 2021-01-04 Even Rouault <[email protected]>
6116
6117 tools/CMakeLists.txt: add comment about rgb2ycbcr and thumbnail not to be installed
6118
6119 2021-01-04 Even Rouault <[email protected]>
6120
6121 Merge branch 'revert-5331ed49' into 'master'
6122 Revert "Merge branch 'install_targets' into 'master'"
6123
6124 See merge request libtiff/libtiff!196
6125
6126 2021-01-04 Even Rouault <[email protected]>
6127
6128 Merge branch 'drop-wince' into 'master'
6129 Remove non-functional WinCE support
6130
6131 See merge request libtiff/libtiff!188
6132
6133 2021-01-04 Even Rouault <[email protected]>
6134
6135 Merge branch 'drop-vms' into 'master'
6136 Remove non-functional VMS support
6137
6138 See merge request libtiff/libtiff!187
6139
6140 2021-01-03 Even Rouault <[email protected]>
6141
6142 Revert "Merge branch 'install_targets' into 'master'"
6143 This reverts merge request !193
6144
6145 2021-01-03 Even Rouault <[email protected]>
6146
6147 Merge branch 'tiffcp_b_parameter' into 'master'
6148 tiffcp: Remove unnecessary reference to compression from usage info for -b parameter
6149
6150 See merge request libtiff/libtiff!189
6151
6152 2021-01-03 Even Rouault <[email protected]>
6153
6154 Merge branch 'cmake-faxtable' into 'master'
6155 cmake: Add faxtable target
6156
6157 See merge request libtiff/libtiff!186
6158
6159 2021-01-03 Roger Leigh <[email protected]>
6160
6161 Merge branch 'install_targets' into 'master'
6162 Update 'CMakeLists.txt' from 'tools'.
6163
6164 See merge request libtiff/libtiff!193
6165
6166 2021-01-03 Miguel Medalha <[email protected]>
6167
6168 Update 'CMakeLists.txt' from 'tools'.
6169
6170 Update CMakeLists.txt.
6171
6172 2021-01-03 Roger Leigh <[email protected]>
6173
6174 Merge branch 'usage_info' into 'master'
6175 thumbnail: Rename constant variable 'stuff' to 'usage_info'
6176
6177 See merge request libtiff/libtiff!190
6178
6179 2021-01-03 Miguel Medalha <[email protected]>
6180
6181 Modified 'CMakeLists.txt' to produce a meaningful summary of external codecs support.
6182
6183 Removed unnecessary reference to compression from usage info for -b parameter
6184
6185 Constant variable 'stuff' renamed to 'usage_info' for consistency with the other tools
6186
6187 2021-01-02 Roger Leigh <[email protected]>
6188
6189 Remove non-functional VMS support.
6190
6191 Remove non-functional WinCE support.
6192
6193 2021-01-02 Roger Leigh <[email protected]>
6194
6195 Merge branch 'codespell' into 'master'
6196 Fix spelling mistakes.
6197
6198 See merge request libtiff/libtiff!183
6199
6200 2021-01-02 Kurt Schwehr <[email protected]>
6201
6202 ChangeLog: Remove extraneous character from prior commit - 00fe7828.
6203
6204 2021-01-02 Roger Leigh <[email protected]>
6205
6206 Merge branch 'codespell-custom_dir_EXIF_231' into 'master'
6207 custom_dir_EXIF_231.c: dos2unix and codespell
6208
6209 See merge request libtiff/libtiff!184
6210
6211 2021-01-01 Roger Leigh <[email protected]>
6212
6213 mkg3states: Sync generator with current generated file content.
6214
6215 cmake: Add faxtable and mkg3states targets.
6216
6217 2020-12-31 Kurt Schwehr <[email protected]>
6218
6219 custom_dir_EXIF_231.c: dos2unix and codespell.
6220 additional, Variable, greater, always
6221
6222 2020-12-31 Kurt Schwehr <[email protected]>
6223
6224 Fix spelling mistakes.
6225 Found with:
6226
6227 codespell --version
6228 1.17.1
6229
6230 2020-12-29 Even Rouault <[email protected]>
6231
6232 Merge branch 'remove-some-vms-ifdef' into 'master'
6233 Remove "ifdef VMS" that are no longer necessary.
6234
6235 See merge request libtiff/libtiff!181
6236
6237 2020-12-29 Kurt Schwehr <[email protected]>
6238
6239 Remove "ifdef VMS" that are no longer necessary.
6240 Both sides of the if are now the same.
6241
6242 2020-12-29 Bob Friesenhahn <[email protected]>
6243
6244 _TIFFBuiltinCODECS should be const.
6245
6246 2020-12-28 Even Rouault <[email protected]>
6247
6248 Merge branch 'issue-202' into 'master'
6249 tiff2pdf.c: check that tiff_datasize fits in a signed tsize_t
6250
6251 Closes #202
6252
6253 See merge request libtiff/libtiff!166
6254
6255 2020-12-28 Even Rouault <[email protected]>
6256
6257 Merge branch 'w_report-when-libdeflate-is-found' into 'master'
6258 CMakeLists.txt: Report when libdeflate is found
6259
6260 See merge request libtiff/libtiff!175
6261
6262 2020-12-28 Bob Friesenhahn <[email protected]>
6263
6264 Declare gpsFields as static const.
6265
6266 2020-12-28 Bob Friesenhahn <[email protected]>
6267
6268 Merge branch 'tools-reduce-initialized-data' into 'master'
6269 Reduce initialized data by making more data const and simplifying usage() implementation.
6270
6271 See merge request libtiff/libtiff!180
6272
6273 2020-12-28 Bob Friesenhahn <[email protected]>
6274
6275 Reduce initialized data by making more data const and simplifying usage() implementation.
6276
6277 2020-12-27 Bob Friesenhahn <[email protected]>
6278
6279 Merge branch 'master' into 'master'
6280 tiff tools: display of compression methods is now conditional instead of hard-coded
6281
6282 See merge request libtiff/libtiff!176
6283
6284 2020-12-27 Bob Friesenhahn <[email protected]>
6285
6286 Merge branch 'build' into 'master'
6287 Fix wrong URL for fetching config.guess and config.sub
6288
6289 See merge request libtiff/libtiff!177
6290
6291 2020-12-26 Chocobo1 <[email protected]>
6292
6293 Fix wrong URL for fetching config.guess and config.sub.
6294
6295 2020-12-25 miguel <[email protected]>
6296
6297 tiff tools: made display of compression methods and their parameters conditional on their actual availability
6298
6299 2020-12-20 Bob Friesenhahn <[email protected]>
6300
6301 autogen.sh now updates config.guess and config.sub from master gnulib version.
6302
6303 2020-12-19 Bob Friesenhahn <[email protected]>
6304
6305 Add a https://libtiff.gitlab.io/libtiff/ link.
6306
6307 Remove stray character in URL area.
6308
6309 Changes for 4.2.0 release.
6310
6311 Changes for 4.2.0 release.
6312
6313 2020-12-19 Bob Friesenhahn <[email protected]>
6314
6315 * libtiff 4.2.0 released.
6316
6317 * configure.ac: Pass tar-ustar option to AM_INIT_AUTOMAKE rather
6318 than tar-pax since ustar POSIX 1003.1-1988 format is more portable
6319 than PAX POSIX 1003.1-2001 format.
6320
6321 2020-12-12 Even Rouault <[email protected]>
6322
6323 Merge branch 'w_adjust-deflate_names' into 'master'
6324 Set 'deflate' to DEFLATE_NAMES, instead of 'libdeflate'
6325
6326 See merge request libtiff/libtiff!174
6327
6328 2020-12-12 Lemures Lemniscati <[email protected]>
6329
6330 Set 'deflate' to DEFLATE_NAMES, instead of 'libdeflate'
6331 'lib' will be automatically added as a prefix while doing find_library()
6332
6333 2020-12-12 Even Rouault <[email protected]>
6334
6335 DoubleToRational(): avoid casting NaN to uint32 (fixes #227)
6336
6337 2020-12-12 Even Rouault <[email protected]>
6338
6339 Merge branch 'fix_221' into 'master'
6340 tiffio.h: do not define __attribute__ but defines TIFF_ATTRIBUTE instead (fixes #221)
6341
6342 Closes #221
6343
6344 See merge request libtiff/libtiff!173
6345
6346 2020-12-12 Even Rouault <[email protected]>
6347
6348 tiffio.h: do not define __attribute__ but defines TIFF_ATTRIBUTE instead (fixes #221)
6349
6350 2020-12-08 Even Rouault <[email protected]>
6351
6352 TIFFReadDirEntryArrayWithLimit(): properly read from offline tag value when we clamp the number of strips to 1.
6353 Fixes regression of commit 7057734d986001b7fd6d2afde9667da7754ff2cc on reading
6354 a file with StripByteCounts with 1 element (broken) and StripOffsets with
6355 896 elements, and where StripOffsets[0] is correct
6356
6357 $ tiffdump foo.tif
6358 Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF>
6359 Directory 0: offset 25725448 (0x1888a08) next 0 (0)
6360 SubFileType (254) LONG (4) 1<0>
6361 ImageWidth (256) LONG (4) 1<640>
6362 ImageLength (257) LONG (4) 1<20098>
6363 BitsPerSample (258) SHORT (3) 1<16>
6364 Photometric (262) SHORT (3) 1<1>
6365 SamplesPerPixel (277) SHORT (3) 1<1>
6366 ResolutionUnit (296) SHORT (3) 1<2>
6367 StripByteCounts (279) LONG (4) 1<1806>
6368 StripOffsets (273) LONG (4) 896<8 648 1288 1928 2568 3208 3848 4488 5128 5768 6408 7048 7688 8328 8968 9608 10248 10888 11528 12168 12808 13448 14088 14728 ...>
6369
6370 2020-12-02 Even Rouault <[email protected]>
6371
6372 tif_jpeg.c: avoid potential harmless unsigned integer overflow on data->fileoffset in JPEGFixupTagsSubsamplingSkip() by validating earlier. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28200
6373
6374 2020-11-27 Even Rouault <[email protected]>
6375
6376 Merge branch 'Jamaika1-master-patch-47839' into 'master'
6377 Change ULARGE_INTEGER to LARGE_INTEGER
6378
6379 See merge request libtiff/libtiff!170
6380
6381 2020-11-27 Even Rouault <[email protected]>
6382
6383 Merge branch 'Jamaika1-master-patch-46397' into 'master'
6384 Added stdint.h
6385
6386 See merge request libtiff/libtiff!171
6387
6388 2020-11-27 Jamaika <[email protected]>
6389
6390 Added stdint.h.
6391
6392 ``` tif_win32.c: In function '_tiffSizeProc': tif_win32.c:159:23: warning: passing argument 2 of 'GetFileSizeEx' from incompatible pointer type [-Wincompatible-pointer-types] 159 | if (GetFileSizeEx(fd,&m)) | ^~ | | | ULARGE_INTEGER * In file included from c:\msys1021\x86_64-w64-mingw32\include\winbase.h:18, from c:\msys1021\x86_64-w64-mingw32\include\windows.h:70, from tif_win32.c:32: c:\msys1021\x86_64-w64-mingw32\include\fileapi.h:78:73: note: expected 'PLARGE_INTEGER' {aka 'LARGE_INTEGER *'} but argument is of type 'ULARGE_INTEGER *' 78 | WINBASEAPI WINBOOL WINAPI GetFileSizeEx (HANDLE hFile, PLARGE_INTEGER lpFileSize); | ~~~~~~~~~~~~~~~^~~~~~~~~~ ```
6393
6394 2020-11-21 Even Rouault <[email protected]>
6395
6396 Merge branch 'issue-113' into 'master'
6397 tiffcrop: fix buffer overrun in extractContigSamples24bits()
6398
6399 Closes #113
6400
6401 See merge request libtiff/libtiff!169
6402
6403 2020-11-21 Even Rouault <[email protected]>
6404
6405 Merge branch 'issue-156' into 'master'
6406 tiff2pdf: Check output size before writing
6407
6408 Closes #156
6409
6410 See merge request libtiff/libtiff!168
6411
6412 2020-11-21 Even Rouault <[email protected]>
6413
6414 Merge branch 'issue-201' into 'master'
6415 tiff2pdf: enforce memory limit for tiled pictures too
6416
6417 Closes #201
6418
6419 See merge request libtiff/libtiff!167
6420
6421 2020-11-20 Even Rouault <[email protected]>
6422
6423 Merge branch 'issue-207' into 'master'
6424 enforce (configurable) memory limit in tiff2rgba
6425
6426 Closes #209 et #207
6427
6428 See merge request libtiff/libtiff!165
6429
6430 2020-11-20 Even Rouault <[email protected]>
6431
6432 tif_lzw.c: avoid false positive -Wnull-dereference of mingw32 gcc 7.3.
6433
6434 2020-11-17 Thomas Bernard <[email protected]>
6435
6436 tiffcrop: fix buffer overrun in extractContigSamples24bits()
6437 fixes #113
6438
6439 tiff2pdf: Check output size before writing.
6440 fixes #156
6441
6442 tiff2pdf: enforce memory limit for tiled pictures too.
6443 fixes #201
6444
6445 2020-11-15 Thomas Bernard <[email protected]>
6446
6447 tiff2rgba.1: -M option.
6448
6449 enforce (configurable) memory limit in tiff2rgba.
6450 fixes #207
6451 fixes #209
6452
6453 2020-11-14 Even Rouault <[email protected]>
6454
6455 Merge branch 'issue-220' into 'master'
6456 tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr
6457
6458 Closes #220
6459
6460 See merge request libtiff/libtiff!159
6461
6462 2020-11-14 Thomas Bernard <[email protected]>
6463
6464 tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr.
6465 fixes #220
6466
6467 2020-11-14 Even Rouault <[email protected]>
6468
6469 Merge branch 'issue-204' into 'master'
6470 avoid buffer overflow while writing jpeg end of file marker
6471
6472 Closes #204
6473
6474 See merge request libtiff/libtiff!161
6475
6476 2020-11-14 Even Rouault <[email protected]>
6477
6478 Merge branch 'issue-193' into 'master'
6479 fix buffer overflow in tiff2ps.c
6480
6481 Closes #193
6482
6483 See merge request libtiff/libtiff!162
6484
6485 2020-11-14 Even Rouault <[email protected]>
6486
6487 Merge branch 'skal65535-master-patch-91082' into 'master'
6488 More overflow fixes for large widths
6489
6490 See merge request libtiff/libtiff!164
6491
6492 2020-11-14 skal <[email protected]>
6493
6494 More overflow fixes for large width.
6495 Also: use INT_MAX instead of hard-coded constants.
6496
6497 2020-11-12 Even Rouault <[email protected]>
6498
6499 Merge branch 'skal65535-master-patch-56655' into 'master'
6500 Fix potential overflow in gtStripContig()
6501
6502 See merge request libtiff/libtiff!163
6503
6504 2020-11-12 Even Rouault <[email protected]>
6505
6506 Merge branch 'issue-211' into 'master'
6507 check for tile width overflow
6508
6509 Closes #211
6510
6511 See merge request libtiff/libtiff!160
6512
6513 2020-11-12 skal <[email protected]>
6514
6515 Fix potential overflow in gtStripContig()
6516 (w + w) might not fit in int32 if too large.
6517
6518 2020-11-09 Thomas Bernard <[email protected]>
6519
6520 tiff2ps.c: fix buffer overread.
6521 fixes #193
6522
6523 fix undefined behaviour (int shifted too much to the left)
6524
6525 avoid buffer overflow while writing jpeg end of file marker.
6526 fixes #204
6527
6528 gtTileContig(): check Tile width for overflow.
6529 fixes #211
6530
6531 fix warning messages (v32 is unsigned)
6532
6533 2020-10-26 Even Rouault <[email protected]>
6534
6535 TIFFStartStrip(): avoid potential crash in WebP codec when using scanline access on corrupted files. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26650
6536
6537 2020-10-20 Even Rouault <[email protected]>
6538
6539 tif_webp.c: validate tile/strip dimension to avoid unsigned integer overflow in RGBA.size computation
6540
6541 2020-10-19 Even Rouault <[email protected]>
6542
6543 tif_zip.c: fix typo in comment.
6544
6545 2020-10-16 Even Rouault <[email protected]>
6546
6547 tiff.h: remove irrelevant warning about webp related pseudo-tags not being registered: they are purely internal libtiff concepts
6548
6549 2020-10-16 Even Rouault <[email protected]>
6550
6551 Merge branch 'libdeflate' into 'master'
6552 Add support for building against libdeflate for faster Zip/Deflate compression/decompression
6553
6554 See merge request libtiff/libtiff!158
6555
6556 2020-10-16 Even Rouault <[email protected]>
6557
6558 test: add testdeflatelaststripextradata.sh.
6559
6560 2020-10-16 Even Rouault <[email protected]>
6561
6562 Add support for optional building against libdeflate for faster Zip/Deflate compression/decompression.
6563 So we can have 2 kind of builds with the Zip/Deflate codec:
6564 - zlib only
6565 - zlib + libdeflate
6566
6567 Speed improvements in the 35%-50% range can be expected when libdeflate is used.
6568 Compression level up to 12 is now supported (capped to 9 when zlib is used).
6569 Still requires zlib for situations where libdeflate cannot be used (that
6570 is for scanline access, since libdeflate has no streaming mode)
6571
6572 Pseudo-tag TIFFTAG_DEFLATE_SUBCODEC=DEFLATE_SUBCODEC_ZLIB/DEFLATE_SUBCODEC_LIBDEFLATE
6573 is added to control which subcodec (zlib or libdeflate) should be used (it defaults
6574 of course to libdeflate, when it is available).
6575 This is mostly aimed at being used on the writing side, to be able to reproduce
6576 output of previous libtiff versions at a binary level, in situations where this would
6577 be really needed. Or as a safety belt in case there would be unforeseen issues
6578 with using libdeflate.
6579 It can be used to know when libdeflate is available at runtime (DEFLATE_SUBCODEC_LIBDEFLATE
6580 will be the default value in that situation).
6581
6582 Of course, deflate codestreams produced by libdeflate can be read by zlib, and vice-versa.
6583
6584 2020-10-14 Even Rouault <[email protected]>
6585
6586 tif_webp.c: fix compiler warnings with MSVC.
6587
6588 2020-10-12 Even Rouault <[email protected]>
6589
6590 Merge branch 'various_fixes' into 'master'
6591 Fix compiler warnings about unused variables when assert() expands to nothing
6592
6593 See merge request libtiff/libtiff!157
6594
6595 2020-10-12 Even Rouault <[email protected]>
6596
6597 .gitignore: add entries for new files in test/
6598
6599 Fix compiler warnings about unused variables when assert() expands to nothing
6600
6601 2020-10-09 Roger Leigh <[email protected]>
6602
6603 Merge branch '215-cygwin-appveyor-fail' into 'master'
6604 Update Appveyor CI build to build with VS2019 image
6605
6606 Closes #215
6607
6608 See merge request libtiff/libtiff!154
6609
6610 2020-10-09 Roger Leigh <[email protected]>
6611
6612 wip.
6613
6614 wip.
6615
6616 wip.
6617
6618 wip.
6619
6620 wip.
6621
6622 wip.
6623
6624 2020-10-09 Roger Leigh <[email protected]>
6625
6626 Merge branch 'TIFF-217_m_lib_path' into 'master'
6627 cmake: Do not use absolute libm path
6628
6629 Closes #217
6630
6631 See merge request libtiff/libtiff!156
6632
6633 2020-10-09 Roger Leigh <[email protected]>
6634
6635 cmake: Do not use absolute libm path.
6636
6637 2020-10-08 Even Rouault <[email protected]>
6638
6639 tif_fax3.h: restore systematic calls to CLEANUP_RUNS()
6640 now that SETVALUE() no longer cause overflows.
6641 Those were removed per b351db8be1b4d3f712bdb9424a79d3174cc03202 and
6642 3440ac216463fcad170bbb391491e69730a59ffa.
6643
6644 As SETVALUE() now returns an error, this allow the decoder to exit.
6645
6646 Otherwise, the assert(x == lastx) in _TIFFFax3fillruns() can trigger.
6647
6648 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26201
6649
6650 2020-10-06 Even Rouault <[email protected]>
6651
6652 Merge branch 'check_TIFFFlushData1' into 'master'
6653 FAX/JPEG/LZMA/PixarLog/ZIP/ZSTD codecs: make sure to check TIFFFlushData1() return value
6654
6655 See merge request libtiff/libtiff!155
6656
6657 2020-10-04 Even Rouault <[email protected]>
6658
6659 Merge branch 'shared-memory' into 'master'
6660 Set the --shared-memory linker flag for Emscripten builds
6661
6662 See merge request libtiff/libtiff!153
6663
6664 2020-10-03 Even Rouault <[email protected]>
6665
6666 tiff2rgba.c: fix -Wold-style-declaration warning.
6667
6668 FAX/JPEG/LZMA/PixarLog/ZIP/ZSTD codecs: make sure to check TIFFFlushData1() return value
6669
6670 2020-09-26 Even Rouault <[email protected]>
6671
6672 tif_fax3.h: extra buffer overflow checks. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25934
6673
6674 2020-09-25 Roger Leigh <[email protected]>
6675
6676 wip.
6677
6678 wip.
6679
6680 wip.
6681
6682 wip.
6683
6684 wip.
6685
6686 wip.
6687
6688 Update AppVeyor image.
6689
6690 test-appveyor.
6691
6692 2020-09-24 Attila Oláh <[email protected]>
6693
6694 Also pass --shared-memory to raw_decode.
6695 This is needed when building for Emscripten with *both* WEBP and JPEG
6696 support.
6697
6698 Set the --shared-memory linker flag for Emscripten builds.
6699 This is only needed when building with WEBP support, which uses atomics,
6700 therefore the linker needs the --shared-memory flag. The flag cannot be
6701 added globally because not all executables link against libwebp.
6702
6703 2020-09-22 Even Rouault <[email protected]>
6704
6705 tif_fax3.h: return error when a buffer overflow occurs. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25552 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25849
6706
6707 2020-09-11 Even Rouault <[email protected]>
6708
6709 Merge branch 'fix-float-compare' into 'master'
6710 Fix comparison for max negative float value.
6711
6712 See merge request libtiff/libtiff!152
6713
6714 2020-09-11 Dirk Lemstra <[email protected]>
6715
6716 Fix comparison for max negative float value.
6717
6718 2020-09-07 Even Rouault <[email protected]>
6719
6720 Fax3PreDecode(): reset curruns and refruns state variables.
6721 to avoid out-of-bounds write triggered by GDAL when repeatedly
6722 reading a corrupt strip.
6723
6724 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25493
6725
6726 2020-06-06 Thomas Bernard <[email protected]>
6727
6728 Merge branch 'issue-17' into 'master'
6729 normalize tools behaviour regarding -h
6730
6731 Closes #17
6732
6733 See merge request libtiff/libtiff!115
6734
6735 2020-05-31 Even Rouault <[email protected]>
6736
6737 TWebPSetupEncode(): fix logic problem (and instead of or) in test that checks input is 8bit unsigned data
6738
6739 2020-05-12 Even Rouault <[email protected]>
6740
6741 TIFFGetConfiguredCODECs(): fix to avoid wrong structure to be returned for registered (ie non built-in) codecs
6742
6743 2020-05-09 Even Rouault <[email protected]>
6744
6745 Merge branch 'zstd-webp-update' into 'master'
6746 gitlab-ci: use latest zstd and webp versions
6747
6748 See merge request libtiff/libtiff!148
6749
6750 2020-05-09 Even Rouault <[email protected]>
6751
6752 Merge branch 'deprecated' into 'master'
6753 ojpeg: s/Depreciated/Deprecated/
6754
6755 See merge request libtiff/libtiff!149
6756
6757 2020-05-09 Aaron Boxer <[email protected]>
6758
6759 ojpeg: s/Depreciated/Deprecated/
6760
6761 2020-04-27 Even Rouault <[email protected]>
6762
6763 Fix typos.
6764
6765 tif_jpeg.c: avoid potential division in previous fix (master only)
6766
6767 2020-04-26 Thomas Bernard <[email protected]>
6768
6769 gitlab-ci: use latest zstd and webp versions.
6770
6771 2020-04-26 Even Rouault <[email protected]>
6772
6773 tiff.h: fixes to use ASCII only characters (master only)
6774
6775 2020-04-26 Thomas Bernard <[email protected]>
6776
6777 tiffsplit: use EXIT_SUCCESS / EXIT_FAILURE.
6778
6779 tiffset: print usage on stdout when -h is used.
6780 also use EXIT_FAILURE / EXIT_SUCCESS
6781 see #17
6782
6783 tiffmedian: shopw usage on stdout when -h is used.
6784 also use EXIT_SUCCESS/EXIT_FAILURE
6785 see #17
6786
6787 tiffinfo: print usage on stdout when -h is used.
6788 also use EXIT_FAILURE / EXIT_SUCCESS
6789 see #17
6790
6791 raw2tiff: print usage to stdout when -h is used.
6792 see #17
6793
6794 tiff2pdf: print usage on stdout when -h is used.
6795 see #17
6796
6797 tiffgt: output usage on stdout with -h.
6798 also use EXIT_SUCCESS / EXIT_FAILURE
6799
6800 tiffdump: use EXIT_FAILURE / EXIT_SUCCESS.
6801 see #17
6802
6803 tiffdither: print usage on stdout when -h is used.
6804 see #17
6805
6806 2020-04-26 Thomas Bernard <[email protected]>
6807
6808 tiffcrop: -h / -v prints usage/version to stdout.
6809 also uses the standard C EXIT_SUCCESS / EXIT_FAILURE
6810 macros
6811
6812 see #17
6813
6814 2020-04-26 Thomas Bernard <[email protected]>
6815
6816 tiffcp: output usage to stdout when using -h.
6817 also use EXIT_FAILURE / EXIT_SUCCESS
6818 see #17
6819
6820 tiffcmp: match exit status for posix cmp and diff tools.
6821
6822 tiff2rgba: output usage to stdout when using -h.
6823 also uses std C EXIT_FAILURE / EXIT_SUCCESS
6824 see #17
6825
6826 tiff2ps: sue EXIT_FAILURE / EXIT_SUCCESS.
6827 see #17
6828
6829 tiff2bw: output usage on stdout when using -h.
6830 also uses EXIT_SUCCESS / EXIT_FAILURE
6831 see #17
6832
6833 thumbnail: use EXIT_FAILURE / EXIT_SUCCESS.
6834 the -h option was already used so it cannot be used for help/usage
6835 see #17
6836
6837 rgb2ycbcr: use EXIT_FAILURE / EXIT_SUCCESS.
6838 the -h option was already used so it cannot be used for help/usage
6839 see #17
6840
6841 ppm2tiff: output usage to stdout when using -h option.
6842 also uses std C EXIT_SUCCESS / EXIT_FAILURE
6843 see #17
6844
6845 pal2rgb: output usage to stdout when -h is used.
6846 see #17
6847
6848 fax2tiff.c: print usage on stdout when using -h option.
6849 see #17
6850
6851 fax2ps: output usage to stdout when using -h option.
6852 also use EXIT_SUCCESS, EXIT_FAILURE from C standard
6853
6854 2020-04-25 Even Rouault <[email protected]>
6855
6856 Merge branch 'jpeg_multiscan_dos_logic' into 'master'
6857 tif_jpeg.c: revise logic to detect potential excessive memory usage when...
6858
6859 See merge request libtiff/libtiff!147
6860
6861 2020-04-24 Even Rouault <[email protected]>
6862
6863 Merge branch 'issue-176' into 'master'
6864 tiff2pdf: get rid of uninitialized memory content
6865
6866 Closes #176
6867
6868 See merge request libtiff/libtiff!143
6869
6870 2020-04-24 Even Rouault <[email protected]>
6871
6872 tif_jpeg.c: revise logic to detect potential excessive memory usage when decoding multiscan JPEG compressed images
6873
6874 2020-04-19 Thomas Bernard <[email protected]>
6875
6876 tiff2pdf: test the return code of TIFFReadRawStrip() and TIFFReadRawTile()
6877
6878 tiff2pdf.c: fix some whitespace problems in source.
6879
6880 tiff2pdf: get rid of uninitialized memory content.
6881 fixes #176
6882
6883 2020-04-19 Even Rouault <[email protected]>
6884
6885 Merge branch 'issue-18' into 'master'
6886 tiffset: pass size for TIFFTAG_INKNAMES
6887
6888 Closes #18
6889
6890 See merge request libtiff/libtiff!146
6891
6892 2020-04-18 Olivier Paquet <[email protected]>
6893
6894 Merge branch 'issue-80' into 'master'
6895 tiffinfo: fix dump of Tiled images
6896
6897 Closes #80
6898
6899 See merge request libtiff/libtiff!144
6900
6901 2020-04-15 Even Rouault <[email protected]>
6902
6903 Fix wrong file size checks for memory-mapped BigTIFF files that could lead to image rejection
6904
6905 2020-04-05 Thomas Bernard <[email protected]>
6906
6907 tiffset: pass size for TIFFTAG_INKNAMES.
6908 Uses TIFFFieldPassCount() to know which arguments need to be
6909 passed to TiffSetField()
6910
6911 fixes #18
6912 see http://bugzilla.maptools.org/show_bug.cgi?id=2202
6913
6914 2020-04-04 Thomas Bernard <[email protected]>
6915
6916 tiffinfo: showdata for tiled images.
6917
6918 tiffinfo: fix dump of Tiled images.
6919 fixes #80
6920
6921 2020-04-03 Even Rouault <[email protected]>
6922
6923 Merge branch 'issue-117' into 'master'
6924 tiffcrop: enforce memory allocation limit
6925
6926 Closes #117
6927
6928 See merge request libtiff/libtiff!140
6929
6930 2020-04-03 Thomas Bernard <[email protected]>
6931
6932 tiffcrop: enforce memory allocation limit.
6933 uses -k option to change limit (default to 256MiB)
6934 fixes #117 / http://bugzilla.maptools.org/show_bug.cgi?id=2757
6935
6936 2020-04-02 Even Rouault <[email protected]>
6937
6938 Merge branch 'issue-45' into 'master'
6939 tiffcp: disable strip chopping when trying to convert to JBIG compression
6940
6941 Closes #45
6942
6943 See merge request libtiff/libtiff!138
6944
6945 2020-04-02 Even Rouault <[email protected]>
6946
6947 Merge branch 'issue-124' into 'master'
6948 TIFFGetFields(3tiff): TIFFTAG_*BYTECOUNTS TIFFTAG_*OFFSETS are uint64
6949
6950 Closes #124
6951
6952 See merge request libtiff/libtiff!137
6953
6954 2020-04-02 Even Rouault <[email protected]>
6955
6956 Merge branch 'aix_itrunc' into 'master'
6957 Rename itrunc to fix name clash with a different itrunc in math.h on AIX. Fixes issue #189
6958
6959 Closes #189
6960
6961 See merge request libtiff/libtiff!139
6962
6963 2020-04-01 Rob Boehne <[email protected]>
6964
6965 Rename itrunc to fix name clash with a different itrunc in math.h on AIX. Fixes issue #189
6966
6967 2020-04-01 Thomas Bernard <[email protected]>
6968
6969 tiffcp: disable strip chopping when trying to convert to JBIG compression
6970 fixes #45
6971
6972 2020-03-29 Thomas Bernard <[email protected]>
6973
6974 TIFFGetFields(3tiff): TIFFTAG_*BYTECOUNTS TIFFTAG_*OFFSETS are uint64.
6975 fixes #124 / http://bugzilla.maptools.org/show_bug.cgi?id=2774
6976
6977 2020-03-29 Even Rouault <[email protected]>
6978
6979 Merge branch 'issue-48' into 'master'
6980 tiff2pdf: fix "raw" copy of Deflate streams
6981
6982 Closes #48
6983
6984 See merge request libtiff/libtiff!136
6985
6986 2020-03-27 Thomas Bernard <[email protected]>
6987
6988 tiff2pdf: fix "raw" copy of Deflate streams.
6989 The Predictor parameter was not copied from the source tiff to the PDF.
6990 fixes #48 / http://bugzilla.maptools.org/show_bug.cgi?id=2442
6991
6992 2020-03-26 Thomas Bernard <[email protected]>
6993
6994 tif_fax3: quit Fax3Decode2D() when a buffer overflow occurs.
6995 fixes #186
6996
6997 2020-03-24 Even Rouault <[email protected]>
6998
6999 Merge branch 'issue-143-144' into 'master'
7000 tiffdump: avoid unaligned memory access
7001
7002 Closes #144 et #143
7003
7004 See merge request libtiff/libtiff!133
7005
7006 2020-03-24 Even Rouault <[email protected]>
7007
7008 Merge branch 'issue-133' into 'master'
7009 tiff2pdf: avoid divide by 0
7010
7011 Closes #133
7012
7013 See merge request libtiff/libtiff!126
7014
7015 2020-03-24 Thomas Bernard <[email protected]>
7016
7017 tiff2pdf: normalizePoint() macro to normalize the white point.
7018
7019 2020-03-23 Thomas Bernard <[email protected]>
7020
7021 tiffdump: avoid unaligned memory access.
7022 fixes #143
7023 fixes #144
7024
7025 2020-03-23 Even Rouault <[email protected]>
7026
7027 Merge branch 'out-of-memory' into 'master'
7028 tiffcp/tiff2pdf/tiff2ps: enforce maximum malloc size
7029
7030 Closes #153, #84, #116 et #115
7031
7032 See merge request libtiff/libtiff!130
7033
7034 2020-03-23 Even Rouault <[email protected]>
7035
7036 Merge branch 'issue-157' into 'master'
7037 tiffset: check memory allocation
7038
7039 Closes #157
7040
7041 See merge request libtiff/libtiff!132
7042
7043 2020-03-23 Even Rouault <[email protected]>
7044
7045 Merge branch 'issue-185' into 'master'
7046 tif_fax3: more buffer overflow checks in Fax3Decode2D()
7047
7048 Closes #185
7049
7050 See merge request libtiff/libtiff!131
7051
7052 2020-03-23 Thomas Bernard <[email protected]>
7053
7054 tiffset: check memory allocation.
7055 fixes #157 / http://bugzilla.maptools.org/show_bug.cgi?id=2850
7056
7057 tif_fax3: more buffer overflow checks in Fax3Decode2D()
7058 fixes #185
7059
7060 2020-03-21 Thomas Bernard <[email protected]>
7061
7062 tiff2ps: enforce memory allocation limit.
7063 fixes #153 / http://bugzilla.maptools.org/show_bug.cgi?id=2845
7064
7065 tiff2pdf: enforce maximum data size.
7066 fixes #116 / http://bugzilla.maptools.org/show_bug.cgi?id=2756
7067 fixes #84 / http://bugzilla.maptools.org/show_bug.cgi?id=2683
7068
7069 update man page for tiffcp regarding the -m option.
7070
7071 tiffcp.c: _TIFFmalloc() => limitMalloc()
7072
7073 2020-03-21 Thomas Bernard <[email protected]>
7074
7075 tiffcp: enforce maximum malloc size.
7076 default is 256MB. use -m option to change
7077
7078 fixes #115 / http://bugzilla.maptools.org/show_bug.cgi?id=2755
7079
7080 2020-03-21 Even Rouault <[email protected]>
7081
7082 Merge branch 'issue-184' into 'master'
7083 CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian
7084
7085 Closes #184
7086
7087 See merge request libtiff/libtiff!127
7088
7089 2020-03-21 Even Rouault <[email protected]>
7090
7091 Merge branch 'issue-44' into 'master'
7092 tiff2pdf: "" causes the relevant argument not to be written
7093
7094 Closes #44
7095
7096 See merge request libtiff/libtiff!128
7097
7098 2020-03-21 Even Rouault <[email protected]>
7099
7100 Merge branch 'issue-56' into 'master'
7101 fix man for TIFFReadEncodedStrip(), TIFFStripSize, TIFFVStripSize, TIFFRawStripSize
7102
7103 Closes #56
7104
7105 See merge request libtiff/libtiff!129
7106
7107 2020-03-20 Thomas Bernard <[email protected]>
7108
7109 fix man for TIFFReadEncodedStrip(), TIFFStripSize, TIFFVStripSize, TIFFRawStripSize
7110 fixes #56
7111 http://bugzilla.maptools.org/show_bug.cgi?id=2507
7112
7113 tiff2pdf: "" causes the relevant argument not to be written.
7114 fixes #44
7115
7116 CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian.
7117 fixes #184
7118
7119 2020-03-17 Thomas Bernard <[email protected]>
7120
7121 tiff2pdf: avoid divide by 0.
7122 fixes #133 http://bugzilla.maptools.org/show_bug.cgi?id=2796
7123
7124 2020-03-17 Even Rouault <[email protected]>
7125
7126 Merge branch 'issue-22' into 'master'
7127 do not _tiffMapProc 0 size files
7128
7129 Closes #22
7130
7131 See merge request libtiff/libtiff!125
7132
7133 2020-03-13 Thomas Bernard <[email protected]>
7134
7135 tif_win32.c: do not _tiffMapProc() 0 sized files.
7136 see #22
7137
7138 tif_unix.c: do not _tiffMapProc 0 size files.
7139 fixes #22
7140 http://bugzilla.maptools.org/show_bug.cgi?id=2249
7141
7142 2020-03-12 Even Rouault <[email protected]>
7143
7144 tif_fax3.c: fix warning C4018: '<': signed/unsigned mismatch introduced in past commits
7145
7146 2020-03-11 Even Rouault <[email protected]>
7147
7148 tiff.h: mention TIFFTAG_RPCCOEFFICIENT, TIFFTAG_TIFF_RSID, TIFFTAG_GEO_METADATA
7149
7150 2020-03-11 Even Rouault <[email protected]>
7151
7152 Merge branch 'issue-60' into 'master'
7153 added support for more private tags
7154
7155 Closes #60
7156
7157 See merge request libtiff/libtiff!124
7158
7159 2020-03-11 Even Rouault <[email protected]>
7160
7161 Merge branch 'issue-160' into 'master'
7162 Fax3SetupState(): check consistency of rowbytes and rowpixels
7163
7164 Closes #160
7165
7166 See merge request libtiff/libtiff!123
7167
7168 2020-03-11 Thomas Bernard <[email protected]>
7169
7170 added support for more private tags.
7171 see https://gitlab.com/libtiff/libtiff/-/issues/60
7172 bugzilla.maptools.org/show_bug.cgi?id=2525
7173
7174 closes #60
7175
7176 original author : [email protected]
7177
7178 2020-03-11 Thomas Bernard <[email protected]>
7179
7180 Fax3SetupState(): check consistency of rowbytes and rowpixels.
7181 also add some parameter documentation to Fax3Decode1D()
7182
7183 fixes #160
7184 http://bugzilla.maptools.org/show_bug.cgi?id=2854
7185
7186 2020-03-10 Even Rouault <[email protected]>
7187
7188 Merge branch 'issue-11-const-pointers' into 'master'
7189 Make pointers returned via TIFFGetField const
7190
7191 Closes #11
7192
7193 See merge request libtiff/libtiff!118
7194
7195 2020-03-10 Even Rouault <[email protected]>
7196
7197 tif_ojpeg.c: relax again too strict sanity checks to allow reading of valid images such as https://gitlab.com/libtiff/libtiff/-/issues/181#note_302535232. Fixes #181
7198
7199 2020-03-09 Even Rouault <[email protected]>
7200
7201 Merge branch 'issue-52' into 'master'
7202 contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits
7203
7204 Closes #52
7205
7206 See merge request libtiff/libtiff!121
7207
7208 2020-03-09 Thomas Bernard <[email protected]>
7209
7210 contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits.
7211 fixes #52
7212 http://bugzilla.maptools.org/show_bug.cgi?id=2469
7213
7214 2020-03-08 Even Rouault <[email protected]>
7215
7216 Merge branch 'issue-58' into 'master'
7217 Make TIFFTAG_CFAPATTERN variable count
7218
7219 Closes #58
7220
7221 See merge request libtiff/libtiff!120
7222
7223 2020-03-08 Even Rouault <[email protected]>
7224
7225 Merge branch 'issue-158-no-predictor-in-webp' into 'master'
7226 TIFFTAG_PREDICTOR is not supported for WebP
7227
7228 Closes #158
7229
7230 See merge request libtiff/libtiff!119
7231
7232 2020-03-08 Sam Hasinoff <[email protected]>
7233
7234 Make TIFFTAG_CFAPATTERN variable count.
7235 The TIFFTAG_CFAPATTERN tag (33422) from TIFF/EP, recently introduced in libtiff
7236 3363eda09d082e3e1dfffa6281f53085cac51ad3 / http://bugzilla.maptools.org/show_bug.cgi?id=2457
7237 is described as having a fixed count of 4.
7238 But the TIFF/EP spec says this should support a variable count (= CFARepeatRows * CFARepeatCols):
7239
7240 TIFF/EP, ISO 12234-2:2001
7241 http://www.barrypearson.co.uk/top2009/downloads/TAG2000-22_DIS12234-2.pdf
7242 page 18 and 26
7243
7244 2020-03-08 Thomas Bernard <[email protected]>
7245
7246 TIFFTAG_PREDICTOR is not supported for WebP.
7247 fixes #158
7248 https://gitlab.com/libtiff/libtiff/-/issues/158
7249
7250 this bug was introduced by 9eacd59fecc4ef593ac17689bc530ab451c8ec14
7251 merge request !32
7252
7253 2020-03-07 Adam Goode <[email protected]>
7254
7255 Make the default whitepoint and ycbcrcoeffs arrays const.
7256 Now that we are returning const pointers in TIFFGetFieldDefaulted,
7257 we can now make these static default arrays const.
7258
7259 see #11
7260
7261 2020-03-07 Adam Goode <[email protected]>
7262
7263 Make pointers returned via TIFFGetField const.
7264 According to http://bugzilla.maptools.org/show_bug.cgi?id=2125#c6
7265 callers are not allowed to modify pointer or array values returned from
7266 TIFFGetField or the like. So, make this explicit in the documentation
7267 by specifying these things as const. Note that this is not an ABI
7268 change, since C does not encode const in libraries. Also, this is
7269 not really an API change, since the varargs call strips away all
7270 the types anyway. So it really is more of a documentation change.
7271
7272 fixes #11
7273
7274 2020-03-07 Even Rouault <[email protected]>
7275
7276 CMake: Skip custom_dir_EXIF_231 test on shared builds to avoid issues on Windows
7277
7278 2020-03-07 Even Rouault <[email protected]>
7279
7280 Merge branch 'EXIF231_GPS_upgrade' into 'master'
7281 EXIF 2.32 and GPS TIFF-tags and functionality upgraded.
7282
7283 See merge request libtiff/libtiff!91
7284
7285 2020-03-07 Su_Laus <[email protected]>
7286
7287 EXIF 2.32 and GPS tags and functionality upgraded.
7288 - Existing EXIF field definition of tags is upgraded to EXIF version 2.3.2
7289 - EXIF-GPS structure, tags and access functions are added as special CustomDirectory (like it was done for EXIF).
7290 - Test program custom_dir_EXIF_231.c added to test writing/reading of EXID IFD and GPS IFD tags
7291 and to highlight some quirks of IFD-handling and peculiarities of reading/writing the different data types.
7292 - Reading error for FileSource and SceneType tags corrected.
7293
7294 - EXIF_GPS_upgrade rebased onto c8c5309b765ef4ff097d2aaffbdb8f403db8967d (Merge branch 'Rational2DoublePrecision_correction' into 'master')
7295 and adapted:
7296 - tif_dirinfo.c: All rational tags set to TIFF_SETGET_FLOAT but only the GPSTAG_ tags set to TIFF_SETGET_DOUBLE.
7297 - custom_dir_EXIF_231.c: Editorials amended and gcc warnings fixed.
7298 - CMakeLists.txt: add_test(NAME "custom_dir_EXIF_231" COMMAND "custom_dir_EXIF_231") added.
7299
7300 2020-03-07 Even Rouault <[email protected]>
7301
7302 Merge branch 'issue-55' into 'master'
7303 ppm2tiff: support any bps value from 1 to 16
7304
7305 Closes #55
7306
7307 See merge request libtiff/libtiff!106
7308
7309 2020-03-07 Thomas Bernard <[email protected]>
7310
7311 ppm2tiff: Add test for 16bpc PPM.
7312
7313 ppm2tiff: remove unused argument warning.
7314
7315 2020-03-07 Ludolf Holzheid <[email protected]>
7316
7317 ppm2tiff: support any bps value from 1 to 16.
7318 fix #55
7319 http://bugzilla.maptools.org/show_bug.cgi?id=2505
7320
7321 Patch originally submitted by Ludolf Holzheid <[email protected]>
7322
7323 2020-03-06 Even Rouault <[email protected]>
7324
7325 Merge branch 'fax-test' into 'master'
7326 add test for fax4 decoding
7327
7328 See merge request libtiff/libtiff!114
7329
7330 2020-03-05 Thomas Bernard <[email protected]>
7331
7332 add test for fax4 decoding.
7333 This will check for regression on #46
7334 https://gitlab.com/libtiff/libtiff/issues/46
7335 http://bugzilla.maptools.org/show_bug.cgi?id=2434
7336
7337 2020-03-05 Even Rouault <[email protected]>
7338
7339 Merge branch 'freebsd-tests' into 'master'
7340 make tests pass under FreeBSD.
7341
7342 See merge request libtiff/libtiff!113
7343
7344 2020-03-05 Thomas Bernard <[email protected]>
7345
7346 make tests pass under FreeBSD.
7347 the -I option for the GNU diff and the FreeBSD diff
7348 behaves differently regarding escaping the ( ) and |
7349
7350 By using two -I option, we avoid using such charracters.
7351
7352 2020-03-05 Even Rouault <[email protected]>
7353
7354 Merge branch 'issue-31' into 'master'
7355 HTML
7356
7357 Closes #31
7358
7359 See merge request libtiff/libtiff!111
7360
7361 2020-03-05 Even Rouault <[email protected]>
7362
7363 Merge branch 'issue-179' into 'master'
7364 tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()
7365
7366 Closes #179
7367
7368 See merge request libtiff/libtiff!112
7369
7370 2020-03-05 Thomas Bernard <[email protected]>
7371
7372 v4.1.0.html: fix for validation.
7373 long <!----------------> comments were replaced
7374 because they confused some parsers
7375
7376 add DOCTYPE on v*.html.
7377
7378 fix HTML files so they are valid according to https://validator.w3.org.
7379
7380 2020-03-05 Thomas Bernard <[email protected]>
7381
7382 tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()
7383 fixes #179
7384
7385 this fixes the regression introduced in 02bb0175 / 72c4acef
7386 ( merge request !110 )
7387
7388 It may be a better fix to do the overflow check in SETVALUE() but the
7389 macro do { } while(0) construct makes it difficult to quit the loop
7390 properly.
7391
7392 2020-03-01 Thomas Bernard <[email protected]>
7393
7394 index.html: fix unclosed <tt> tag.
7395
7396 2020-03-01 Thomas Bernard <[email protected]>
7397
7398 html: do not force colors (which are default anyway)
7399 If needed, style should be set using CSS.
7400
7401 fixes #31
7402 https://gitlab.com/libtiff/libtiff/issues/31
7403 http://bugzilla.maptools.org/show_bug.cgi?id=2326
7404
7405 2020-03-01 Even Rouault <[email protected]>
7406
7407 TIFFReadCustomDirectory(): fix potential heap buffer overflow when reading a custom directory, after a regular directory where a codec was active. Fixes https://gitlab.com/libtiff/libtiff/issues/178
7408
7409 2020-03-01 Even Rouault <[email protected]>
7410
7411 Merge branch 'issue-46' into 'master'
7412 fix decoding of fax4 images
7413
7414 Closes #46
7415
7416 See merge request libtiff/libtiff!110
7417
7418 2020-02-29 Thomas Bernard <[email protected]>
7419
7420 tif_fax3: better fix for CVE-2011-0192.
7421 There are some legitimate case which were forbidden by the previous fix
7422
7423 tif_fax3.h: allow 0 length run in DECODE2D.
7424 fixes #46
7425 https://gitlab.com/libtiff/libtiff/issues/46
7426 http://bugzilla.maptools.org/show_bug.cgi?id=2434
7427
7428 2020-02-29 Even Rouault <[email protected]>
7429
7430 Merge branch 'mingwlibm' into 'master'
7431 Don't use libm with libtiff due to conflict with libmsvcrt
7432
7433 See merge request libtiff/libtiff!73
7434
7435 2020-02-29 Even Rouault <[email protected]>
7436
7437 Merge branch 'Rational2DoublePrecision_correction' into 'master'
7438 tif_dirwrite.c: bugfix DoubleToSrational() for plain signed integers
7439
7440 See merge request libtiff/libtiff!109
7441
7442 2020-02-29 Su_Laus <[email protected]>
7443
7444 tif_dirwrite.c: bugfix DoubleToSrational(), which returns plain signed integer values always as unsigned rationals. Add a test into rational_precision2double.c for "-1.0" and some editorials in tif_dirwrite.c. (code is related to 6df997c786928757caea0dd68d26ea5f098f49df changes).
7445
7446 2020-02-29 Even Rouault <[email protected]>
7447
7448 Merge branch 'issue-174' into 'master'
7449 tif_fax3.c: check buffer overflow in Fax4Decode()
7450
7451 Closes #174
7452
7453 See merge request libtiff/libtiff!108
7454
7455 2020-02-29 Thomas Bernard <[email protected]>
7456
7457 Fax4Decode(): log error message in case of buffer overrun.
7458
7459 tif_fax3.c: check buffer overflow in Fax4Decode()
7460 fixes #174
7461
7462 2020-02-28 Even Rouault <[email protected]>
7463
7464 typo fixes in code comments.
7465
7466 ToRationalEuclideanGCD: remove useless test that confuses Coverity Scan about a potential later modulo by zero
7467
7468 2020-02-27 Even Rouault <[email protected]>
7469
7470 tif_dirwrite.c: fix other warnings related to 6df997c786928757caea0dd68d26ea5f098f49df changes
7471
7472 rational_precision2double.c: fix many warnings, and do not build it on CMake on shared lib builds
7473
7474 tif_dirwrite.c: fix various warnings found when building GDAL with internal libtiff after 6df997c786928757caea0dd68d26ea5f098f49df changes
7475
7476 tif_dirwrite.c: qualify ToRationalEuclideanGCD() with static.
7477
7478 2020-02-27 Even Rouault <[email protected]>
7479
7480 Merge branch 'Rational2DoublePrecision' into 'master'
7481 Rational with Double Precision Upgrade
7482
7483 See merge request libtiff/libtiff!100
7484
7485 2020-02-27 Su_Laus <[email protected]>
7486
7487 Rational with Double Precision Upgrade.
7488 Unfortunately, custom rational tags (TIFF_RATIONAL with field_bit=FIELD_CUSTOM) are defined as TIFF_SETGET_DOUBLE
7489 but for the reading interface and LibTiff internally they are stored ALWAYS as floating point SINGLE precision.
7490 Double precision custom rational tags are not supported by LibTiff.
7491
7492 For the GPS tags in WGS84 a higher accuracy / precision is needed.
7493 Therefore, this upgrade is made, keeping the old interface for the already defined tags and allowing a double precision definition,
7494 as well as calculating rationals with higher accuracy / precision.
7495 This higher accuracy can be used for newly defined tags like that in EXIF/GPS.
7496
7497 Refer also to the very old Bugzilla issue 2542 (#69)
7498
7499 A test file rational_precision2double.c is added, which shows prevention of the old interface to the already defined custom rational tags
7500 with the standard library as well as with the upgraded library.
7501
7502 Also TIFFTAG_XRESOLUTION, TIFFTAG_YRESOLUTION, TIFFTAG_XPOSITION, TIFFTAG_YPOSITION amended from TIFF_SETGET_DOUBLE to TIFF_SETGET_FLOAT and testcase inserted in rational_precision2double.c
7503
7504 2020-02-26 Chris Degawa <[email protected]>
7505
7506 mingw-w64 cmake: Don't find libm.
7507 mingw-w64 will provide libm symbols by default without -lm and mingw-64's
7508 libm is just a stub.
7509
7510 This is just to make sure that on systems with msys2 and also cygwin, cmake
7511 doesn't find a libm that actually contains math functions.
7512
7513 2020-02-26 Even Rouault <[email protected]>
7514
7515 Merge branch 'division-by-zero' into 'master'
7516 tools/tiffcp.c: fix potential division by zero
7517
7518 See merge request libtiff/libtiff!83
7519
7520 2020-02-26 Even Rouault <[email protected]>
7521
7522 Merge branch 'fix-unused-warning' into 'master'
7523 warnings: mark conditionally used parameters
7524
7525 See merge request libtiff/libtiff!49
7526
7527 2020-02-26 Even Rouault <[email protected]>
7528
7529 Merge branch 'master' into 'master'
7530 fix issue #78 warnings regarding RichTIFFIPTC data type
7531
7532 Closes #78
7533
7534 See merge request libtiff/libtiff!99
7535
7536 2020-02-26 Even Rouault <[email protected]>
7537
7538 Merge branch 'win64-handle-casts-warn-fix' into 'master'
7539 Avoid warnings about casts between HANDLE and int in Win64 builds
7540
7541 Closes #2
7542
7543 See merge request libtiff/libtiff!93
7544
7545 2020-02-26 Even Rouault <[email protected]>
7546
7547 Merge branch 'bug2839' into 'master'
7548 raw2tiff: avoid divide by 0
7549
7550 Closes #151
7551
7552 See merge request libtiff/libtiff!103
7553
7554 2020-02-26 Even Rouault <[email protected]>
7555
7556 Merge branch 'bug2669' into 'master'
7557 tiff2pdf: palette bound check in t2p_sample_realize_palette()
7558
7559 Closes #82
7560
7561 See merge request libtiff/libtiff!104
7562
7563 2020-02-26 Even Rouault <[email protected]>
7564
7565 Merge branch 'int-shift' into 'master'
7566 tiffcrop: fix asan runtime error caused by integer promotion
7567
7568 See merge request libtiff/libtiff!105
7569
7570 2020-02-26 Even Rouault <[email protected]>
7571
7572 Merge branch 'bug-2538' into 'master'
7573 libtiff.html: fix function casing
7574
7575 Closes #68
7576
7577 See merge request libtiff/libtiff!107
7578
7579 2020-02-16 Thomas Bernard <[email protected]>
7580
7581 raw2tiff: avoid divide by 0.
7582 fixes #151 / http://bugzilla.maptools.org/show_bug.cgi?id=2839
7583
7584 first memcmp() lines before computing correlation
7585 and always avoid divide by 0 anyway
7586
7587 2020-02-09 Even Rouault <[email protected]>
7588
7589 Merge branch 'bug2855' into 'master'
7590 tiff2ps: fix heap buffer read overflow in PSDataColorContig()
7591
7592 Closes #161
7593
7594 See merge request libtiff/libtiff!102
7595
7596 2020-02-08 Thomas Bernard <[email protected]>
7597
7598 libtiff.html: fix function casing.
7599
7600 libtiff.html: fix function casing.
7601 fixes #68 / http://bugzilla.maptools.org/show_bug.cgi?id=2538
7602
7603 2020-02-08 Thomas Bernard <[email protected]>
7604
7605 tiffcrop: fix asan runtime error caused by integer promotion.
7606 tiffcrop.c:4027:20: runtime error: left shift of 190 by 24 places cannot be represented in type 'int'
7607
7608 C treats (byte << 24) as an int expression.
7609 casting explicitly to unsigned type uint32 avoids the problem.
7610
7611 the same issue has been fixed elsewhere with a24213691616e7cd35aa3e2805493de80c7e4fcf
7612
7613 I detected the bug with the test file of #86
7614
7615 2020-02-08 Thomas Bernard <[email protected]>
7616
7617 tiff2pdf: palette bound check in t2p_sample_realize_palette()
7618 fixes #82
7619
7620 2020-02-08 Thomas Bernard <[email protected]>
7621
7622 tiff2ps: fix heap buffer read overflow in PSDataColorContig()
7623 fixes #161 / http://bugzilla.maptools.org/show_bug.cgi?id=2855
7624
7625 in 05029fb7f1ecf771abaf90b5705b6cab9eb522a7 I missed that 1 extra byte is read
7626 in this loop.
7627
7628 2020-02-05 Even Rouault <[email protected]>
7629
7630 tif_dirread.c: suppress CLang static Analyzer 9.0 false positive.
7631
7632 2020-02-01 Even Rouault <[email protected]>
7633
7634 TIFFSetupStrips: enforce 2GB limitation of Strip/Tile Offsets/ByteCounts arrays
7635 TIFFWriteDirectoryTagData() has an assertion that checks that the
7636 arrays are not larger than 2GB. So error out earlier if in that situation.
7637
7638 2020-01-29 Bob Friesenhahn <[email protected]>
7639
7640 Simplify nmake configuration for building port directory. Now there is only one boolean setting to enable building strtoll() and strtoull() port functions. The boolean setting enables the necessary port files to be built, but the remainder of the logic is via pre-processor code in the common tif_config.h, which was prepared before entering the port directory to do a build.
7641
7642 2020-01-28 Bob Friesenhahn <[email protected]>
7643
7644 Make sure that tif_config.h is produced prior to entering the port directory and add an include path so that the port files can include tif_config.h. Do not actually include tif_config.h at this time since CMake and Autotools builds are not prepared for that. This issue could be handled by updating the CMake and Autotools builds or by adding a define which directs libport.h to include tif_config.h.
7645
7646 2020-01-26 Bob Friesenhahn <[email protected]>
7647
7648 Fix nmake build mistakes in my last commit:
7649 tif_config.vc.h:
7650
7651 Always define HAVE_STRTOL/HAVE_STRTOUL.
7652 Define HAVE_STRTOLL/HAVE_STRTOULL if _MSC_VER >= 1900.
7653
7654 nmake.opt:
7655
7656 Provide defaults suitable for MSVC prior to 14.0.
7657
7658 libport.h:
7659
7660 The sense of the pre-processor logic was inverted from what it
7661 should be. The intention is to only provide the prototype if the
7662 function is missing.
7663
7664 2020-01-25 Bob Friesenhahn <[email protected]>
7665
7666 Add nmake build support for manually configuring the 'port' files to be built based on MSVC features. Include tif_config.h in tools/tiffset.c.
7667
7668 2020-01-23 Even Rouault <[email protected]>
7669
7670 Adjust previous fix to avoid undue warning in some situations triggered by GDAL
7671
7672 2020-01-12 Even Rouault <[email protected]>
7673
7674 _TIFFPartialReadStripArray: bring back support for non-conformant SLONG8 data type
7675 Such as in https://github.com/OSGeo/gdal/issues/2165
7676
7677 2020-01-07 Even Rouault <[email protected]>
7678
7679 test: add test for single-strip OJPEG file without RowsPerStrip tag (like in CR2 files)
7680
7681 OJPEGReadHeaderInfo: if rowsperstrip not defined, then assume one-single-strip. Complementary fix to 0356ea76bac908c61160d735f078437ace953bd3
7682
7683 2019-12-16 Angel Sánchez <[email protected]>
7684
7685 fix issue #78 warnings regarding RichTIFFIPTC data type.
7686
7687 2019-12-14 Even Rouault <[email protected]>
7688
7689 contrib/oss-fuzz/build.sh: fix broken if construct.
7690
7691 2019-11-28 Even Rouault <[email protected]>
7692
7693 contrib/oss-fuzz/build.sh: other attempt at fixing build failure.
7694
7695 2019-11-20 Even Rouault <[email protected]>
7696
7697 contrib/oss-fuzz/build.sh: install liblzma-dev for x86_64 builds.
7698
7699 2019-11-17 Even Rouault <[email protected]>
7700
7701 contrib/oss-fuzz/build.sh: install liblzma-dev:i386 on i386 builds.
7702
7703 2019-11-15 Even Rouault <[email protected]>
7704
7705 Merge branch 'cmake-parse' into 'master'
7706 CMake: simplify parsing variables from configure
7707
7708 See merge request libtiff/libtiff!98
7709
7710 2019-11-15 Rolf Eike Beer <[email protected]>
7711
7712 CMake: simplify parsing variables from configure.
7713
7714 2019-11-14 Even Rouault <[email protected]>
7715
7716 contrib/oss-fuzz/build.sh: fix ossfuzz build by statically linking to lzma
7717
7718 2019-11-12 Even Rouault <[email protected]>
7719
7720 Merge branch 'fix_ojpeg_172' into 'master'
7721 OJPEG: fix broken sanity check added in 4.1.0 (#fixes 172)
7722
7723 See merge request libtiff/libtiff!97
7724
7725 2019-11-11 Even Rouault <[email protected]>
7726
7727 OJPEG: fix broken sanity check added in 4.1.0, and add two OJPEG test files
7728
7729 test/: add missing generated .sh files.
7730
7731 2019-11-04 Even Rouault <[email protected]>
7732
7733 Merge branch 'fix-missing-checks-TIFFGetField-tiffcrop' into 'master'
7734 adds missing checks on TIFFGetField in tiffcrop tool
7735
7736 Closes #170
7737
7738 See merge request libtiff/libtiff!96
7739
7740 2019-11-04 Bug Checkers <[email protected]>
7741
7742 adds missing checks on TIFFGetField in tiffcrop tool (fixes #170)
7743
7744 2019-11-04 Even Rouault <[email protected]>
7745
7746 Merge branch 'adds-missing-TIFFClose-rgb2ycbcr' into 'master'
7747 adds a missing TIFFClose in rgb2ycbcr tool
7748
7749 See merge request libtiff/libtiff!95
7750
7751 2019-11-04 Mansour Ahmadi <[email protected]>
7752
7753 adds a missing TIFFClose in rgb2ycbcr tool.
7754
7755 2019-11-03 Bob Friesenhahn <[email protected]>
7756
7757 libtiff 4.1.0 released.
7758
7759 Added a step for updating the legacy ChangeLog file.
7760
7761 Ignore emacs temporary files (ending with tilde character).
7762
7763 Added release summary page for the 4.1.0 release.
7764
7765 Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. Fix utility baked-in getopt prototype which appears when HAVE_GETOPT is not defined.
7766
7767 Fax2tiff.sh needs to remove its output file in advance. Syntax changes so that bash is not required.
7768
7769 2019-10-26 Even Rouault <[email protected]>
7770
7771 tif_jpeg.c: extra cast to silence Coverity warning. GDAL CID 1406475.
7772
7773 2019-10-23 Even Rouault <[email protected]>
7774
7775 tif_jpeg.c: fix warning added by previous commit (on 32bit builds)
7776
7777 2019-10-23 Even Rouault <[email protected]>
7778
7779 Merge branch 'coverity-fixes' into 'master'
7780 Coverity fixes
7781
7782 See merge request libtiff/libtiff!94
7783
7784 2019-10-22 Timothy Lyanguzov <[email protected]>
7785
7786 Use 64-bit calculations correctly.
7787
7788 Fix size calculation to use 64-bit tmsize_t correctly.
7789
7790 Make bytesperclumpline calculations using tmsize_t type.
7791
7792 2019-10-03 Even Rouault <[email protected]>
7793
7794 tif_read: align code of TIFFReadRawStrip() and TIFFReadRawTile() that differed for non good reason. Non-functional change normally. (fixes GitLab #162)
7795
7796 2019-10-01 Even Rouault <[email protected]>
7797
7798 HTML: update for GitLab issues.
7799
7800 2019-09-29 Even Rouault <[email protected]>
7801
7802 html/v3.5.6-beta.html: redact URL of defunct web site.
7803
7804 Website: update links to mailing list.
7805
7806 2019-09-17 Even Rouault <[email protected]>
7807
7808 TIFFReadAndRealloc(): avoid too large memory allocation attempts. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17244
7809
7810 2019-09-03 Even Rouault <[email protected]>
7811
7812 ByteCountLooksBad and EstimateStripByteCounts: avoid unsigned integer overflows. Fixes https://oss-fuzz.com/testcase-detail/5686156066291712 and https://oss-fuzz.com/testcase-detail/6332499206078464
7813
7814 2019-09-02 Even Rouault <[email protected]>
7815
7816 tif_ojpeg.c: avoid relying on isTiled macro being wrapped in ()
7817
7818 tif_ojpeg.c: avoid use of uninitialized memory on edge/broken file. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16844
7819
7820 tiff_read_rgba_fuzzer.cc: add a -DSTANDALONE mode for easier reproduction of oss-fuzz reports
7821
7822 2019-09-01 Even Rouault <[email protected]>
7823
7824 tif_dirread.c: allocChoppedUpStripArrays(). avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16846
7825
7826 2019-08-27 Even Rouault <[email protected]>
7827
7828 tif_ojpeg.c: avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16793
7829
7830 2019-08-26 Even Rouault <[email protected]>
7831
7832 TIFFReadDirEntryData(): rewrite to avoid unsigned integer overflow (not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16792
7833
7834 TIFFFetchDirectory(): fix invalid cast from uint64 to tmsize_t. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16784
7835
7836 2019-08-25 Even Rouault <[email protected]>
7837
7838 JPEG: avoid use of uninitialized memory on corrupted files.
7839 Follow-up of cf3ce6fab894414a336546f62adc57f02590a22c
7840 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16602
7841 Credit to OSS Fuzz
7842
7843 2019-08-23 Even Rouault <[email protected]>
7844
7845 _TIFFPartialReadStripArray(): avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16685
7846
7847 OJPEGWriteHeaderInfo(): avoid unsigned integer overflow on strile dimensions close to UINT32_MAX. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16683
7848
7849 TIFFFillStrip(): avoid harmless unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16653
7850
7851 EstimateStripByteCounts(): avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16643&
7852
7853 tif_ojpeg: avoid unsigned integer overflow (probably not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16635
7854
7855 tif_thunder: avoid unsigned integer overflow (not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16632
7856
7857 2019-08-22 Even Rouault <[email protected]>
7858
7859 _TIFFMultiply32() / _TIFFMultiply64(): avoid relying on unsigned integer overflow (not a bug)
7860
7861 EstimateStripByteCounts(): avoid unsigned integer overflow.
7862
7863 2019-08-21 Even Rouault <[email protected]>
7864
7865 EstimateStripByteCounts(): avoid unsigned integer overflow.
7866
7867 2019-08-20 Even Rouault <[email protected]>
7868
7869 EstimateStripByteCounts(): avoid harmless unsigned integer overflow.
7870
7871 _TIFFPartialReadStripArray(): avoid triggering unsigned integer overflow with -fsanitize=unsigned-integer-overflow (not a bug, this is well defined by itself)
7872
7873 2019-08-18 Even Rouault <[email protected]>
7874
7875 tiff2ps: fix use of wrong data type that caused issues (/Height being written as 0) on 64-bit big endian platforms
7876
7877 2019-08-16 Even Rouault <[email protected]>
7878
7879 setByteArray(): fix previous commit.
7880
7881 setByteArray(): avoid potential signed integer overflow. Pointed by Hendra Gunadi. No actual problem known (which does not mean there wouldn't be any. Particularly on 32bit builds)
7882
7883 2019-08-15 Even Rouault <[email protected]>
7884
7885 RGBA interface: fix integer overflow potentially causing write heap buffer overflow, especially on 32 bit builds. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16443. Credit to OSS Fuzz
7886
7887 2019-08-14 Even Rouault <[email protected]>
7888
7889 Merge branch 'fix_integer_overflow' into 'master'
7890 Fix integer overflow in _TIFFCheckMalloc() and other implementation-defined behaviour (CVE-2019-14973)
7891
7892 See merge request libtiff/libtiff!90
7893
7894 2019-08-13 Even Rouault <[email protected]>
7895
7896 Fix integer overflow in _TIFFCheckMalloc() and other implementation-defined behaviour (CVE-2019-14973)
7897 _TIFFCheckMalloc()/_TIFFCheckRealloc() used a unsafe way to detect overflow
7898 in the multiplication of nmemb and elem_size (which are of type tmsize_t, thus
7899 signed), which was especially easily triggered on 32-bit builds (with recent
7900 enough compilers that assume that signed multiplication cannot overflow, since
7901 this is undefined behaviour by the C standard). The original issue which lead to
7902 this fix was triggered from tif_fax3.c
7903
7904 There were also unsafe (implementation defied), and broken in practice on 64bit
7905 builds, ways of checking that a uint64 fits of a (signed) tmsize_t by doing
7906 (uint64)(tmsize_t)uint64_var != uint64_var comparisons. Those have no known
7907 at that time exploits, but are better to fix in a more bullet-proof way.
7908 Or similarly use of (int64)uint64_var <= 0.
7909
7910 2019-08-12 Even Rouault <[email protected]>
7911
7912 TIFFClientOpen(): fix memory leak if one of the required callbacks is not provided. Fixed Coverity GDAL CID 1404110
7913
7914 OJPEGReadBufferFill(): avoid very long processing time on corrupted files. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16400. master only
7915
7916 2019-08-10 Even Rouault <[email protected]>
7917
7918 oss-fuzz/tiff_read_rgba_fuzzer.cc: fix wrong env variable value in previous commit
7919
7920 oss-fuzz/tiff_read_rgba_fuzzer.cc: avoid issue with libjpeg-turbo and MSAN
7921
7922 OJPEG: fix integer division by zero on corrupted subsampling factors. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15824. Credit to OSS Fuzz
7923
7924 Merge branch 'ossfuzz_i386'
7925
7926 contrib/oss-fuzz/build.sh: fix for i386 build of jbigkit, and use $LIB_FUZZING_ENGINE
7927
7928 2019-08-10 Even Rouault <[email protected]>
7929
7930 Merge branch 'patch-1' into 'master'
7931 fix two tiny typos
7932
7933 See merge request libtiff/libtiff!89
7934
7935 2019-08-10 Reto Kromer <[email protected]>
7936
7937 fix two tiny typos.
7938
7939 2019-08-09 Even Rouault <[email protected]>
7940
7941 Merge branch 'patch-1' into 'master'
7942 fix a typo in man page
7943
7944 See merge request libtiff/libtiff!88
7945
7946 2019-08-09 Reto Kromer <[email protected]>
7947
7948 fix typo.
7949
7950 2019-08-04 Even Rouault <[email protected]>
7951
7952 Merge branch 'TIFFTAGID_Zero_reading_IGNORE' into 'master'
7953 Suppressed Reading of Tiff tags with ID = 0 (like GPSVERSIONID) corrected.
7954
7955 See merge request libtiff/libtiff!77
7956
7957 2019-08-04 Su Laus <[email protected]>
7958
7959 Reading of Tiff tags with ID = 0 (like GPSVERSIONID) corrected.
7960 IGNORE placeholder in tif_dirread.c is now replaced by a field dir_ignore in the TIFFDirEntry structure
7961
7962 Currently, in tif_dirread.c a special IGNORE value for the tif tags is defined
7963 in order to flag status preventing already processed tags from further processing.
7964 This irrational behaviour prevents reading of custom tags with id code 0 - like tag GPSVERSIONID from EXIF 2.31 definition.
7965
7966 An additional field 'tdir_ignore' is now added to the TIFFDirEntry structure and code is changed
7967 to allow tags with id code 0 to be read correctly.
7968
7969 This change was already proposed as pending improvement in tif_dirread.c around line 32.
7970
7971 Reference is also made to:
7972 - Discussion in https://gitlab.com/libtiff/libtiff/merge_requests/39
7973 - http://bugzilla.maptools.org/show_bug.cgi?id=2540
7974
7975 Comments and indentation adapted.
7976
7977 Preparation to rebase onto master
7978
7979 2019-07-16 Even Rouault <[email protected]>
7980
7981 Merge branch 'cmake_amd64' into 'master'
7982 CMakeLists.txt: properly set value of HOST_FILLORDER to LSB2MSB for Windows CMake builds
7983
7984 See merge request libtiff/libtiff!87
7985
7986 2019-07-15 Even Rouault <[email protected]>
7987
7988 CMakeLists.txt: properly set value of HOST_FILLORDER to LSB2MSB for Windows CMake builds
7989 As can be seen in https://ci.appveyor.com/project/rleigh-codelibre/libtiff-didfs/builds/25846668/job/ory5w098j8wcij9x
7990 log, the HOST_FILLORDER is not properly set:
7991
7992 [00:02:58] -- CMAKE_HOST_SYSTEM_PROCESSOR set to AMD64
7993 [00:02:58] -- HOST_FILLORDER set to FILLORDER_MSB2LSB
7994
7995 The reason is that we match the "amd64.*" lowercase string whereas
7996 CMAKE_HOST_SYSTEM_PROCESSOR is set to AMD64 uppercase.
7997
7998 2019-07-09 Even Rouault <[email protected]>
7999
8000 TIFFWriteCheck(): call TIFFForceStrileArrayWriting() when needed (should have gone with eaeca6274ae71cdfaeb9f673b6fb0f3cfc0e6ce5) (master only)
8001
8002 2019-07-09 Even Rouault <[email protected]>
8003
8004 Merge branch 'fix_chromium_925269' into 'master'
8005 OJPEG: avoid use of uninitialized memory on corrupted files
8006
8007 See merge request libtiff/libtiff!86
8008
8009 2019-07-05 Even Rouault <[email protected]>
8010
8011 OJPEG: avoid use of uninitialized memory on corrupted files.
8012 Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=925269
8013 Patch from Lei Zhang with little adaptations.
8014
8015 2019-06-29 Even Rouault <[email protected]>
8016
8017 Merge branch 'fix-division-by-zero' into 'master'
8018 Return infinite distance when denominator is zero.
8019
8020 See merge request libtiff/libtiff!85
8021
8022 2019-06-29 Dirk Lemstra <[email protected]>
8023
8024 Return infinite distance when denominator is zero.
8025
8026 2019-06-29 Even Rouault <[email protected]>
8027
8028 Merge branch 'typetests' into 'master'
8029 Add test to check that libtiff types have the correct size
8030
8031 See merge request libtiff/libtiff!57
8032
8033 2019-05-31 Thomas Bernard <[email protected]>
8034
8035 make TIFF_SSIZE_T the same bitwidth as TIFF_SIZE_T.
8036 it was previously the same bitwidth as unsigned char *
8037 Pointers can be larger than size_t.
8038
8039 2019-05-31 Thomas Bernard <[email protected]>
8040
8041 Add test to check that libtiff types have the correct size.
8042 in configure/CMakeList.txt :
8043
8044 - TIFF_INT8_T/TIFF_UINT8_T is signed/unsigned char
8045 sizeof(char)==1 in C standard
8046 - TIFF_INT16_T/TIFF_UINT16_T is signed/unsigned short
8047 sizeof(short)>=2 in C standard
8048 - TIFF_INT32_T/TIFF_UINT32_T is defined so its sizeof() is 4
8049
8050 - TIFF_INT64_T/TIFF_UINT64_T is defined so its sizeof() is 8
8051
8052 - TIFF_SIZE_T is defined so it has same sizeof() than size_t
8053
8054 - TIFF_SSIZE_T is defined so it has same sizeof() than unsigned char *
8055
8056 2019-05-29 Even Rouault <[email protected]>
8057
8058 Merge branch 'defer_strile_writing' into 'master'
8059 Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting()
8060
8061 See merge request libtiff/libtiff!82
8062
8063 2019-05-29 Even Rouault <[email protected]>
8064
8065 Merge branch 'TIFFReadFromUserBuffer' into 'master'
8066 Add TIFFReadFromUserBuffer()
8067
8068 See merge request libtiff/libtiff!81
8069
8070 2019-05-26 Even Rouault <[email protected]>
8071
8072 Fix vulnerability in 'D' (DeferStrileLoad) mode (master only) (fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14908)
8073
8074 2019-05-25 Even Rouault <[email protected]>
8075
8076 Replace 'stripped' by 'striped' in error messages.
8077
8078 2019-05-25 Even Rouault <[email protected]>
8079
8080 Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting()
8081 Those advanced writing functions must be used in a particular sequence
8082 to make their intended effect. Their aim is to control when/where
8083 the [Strip/Tile][Offsets/ByteCounts] arrays are written into the file.
8084
8085 The purpose of this is to generate 'cloud-optimized geotiff' files where
8086 the first KB of the file only contain the IFD entries without the potentially
8087 large strile arrays. Those are written afterwards.
8088
8089 The typical sequence of calls is:
8090 TIFFOpen()
8091 [ TIFFCreateDirectory(tif) ]
8092 Set fields with calls to TIFFSetField(tif, ...)
8093 TIFFDeferStrileArrayWriting(tif)
8094 TIFFWriteCheck(tif, ...)
8095 TIFFWriteDirectory(tif)
8096 ... potentially create other directories and come back to the above directory
8097 TIFFForceStrileArrayWriting(tif): emit the arrays at the end of file
8098
8099 See test/defer_strile_writing.c for a practical example.
8100
8101 2019-05-24 Even Rouault <[email protected]>
8102
8103 Fix vulnerability introduced by defer strile loading (master only)
8104 Found on GDAL with https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14894
8105 Disabling the TIFF_DEFERSTRILELOAD bit in ChopupStripArray() was a
8106 bad idea since when using TIFFReadDirectory() to reload the directory again
8107 would lead to a different value of td_rowsperstrip, which could confuse
8108 readers if they relied on the value found initially.
8109
8110 Fix typo in error message (master only)
8111
8112 2019-05-22 Even Rouault <[email protected]>
8113
8114 Add TIFFReadFromUserBuffer()
8115 This function replaces the use of TIFFReadEncodedStrip()/TIFFReadEncodedTile()
8116 when the user can provide the buffer for the input data, for example when
8117 he wants to avoid libtiff to read the strile offset/count values from the
8118 [Strip|Tile][Offsets/ByteCounts] array.
8119
8120 libtiff.def: add missing new symbols.
8121
8122 test/defer_strile_loading.c: fix warning with Visual C++
8123
8124 _TIFFRewriteField(): fix for bigtiff case (master only)
8125 116cf67f4c59196605abdb244657c3070c4310af made StripByteCount/TileByteCount to
8126 always be rewritten as TIFF_LONG8.
8127
8128 2019-05-21 Even Rouault <[email protected]>
8129
8130 Merge branch 'ondemand_strile_offbytecount_loading' into 'master'
8131 Make defer strile offset/bytecount loading available at runtime
8132
8133 See merge request libtiff/libtiff!79
8134
8135 2019-05-21 Even Rouault <[email protected]>
8136
8137 Merge branch 'bigtiff_write_bytecount_on_long_when_possible' into 'master'
8138 Create TileByteCounts/StripByteCounts tag with SHORT (ClassicTIFF/BigTIFF) or LONG (BigTIFF) type when possible
8139
8140 See merge request libtiff/libtiff!78
8141
8142 2019-05-21 Even Rouault <[email protected]>
8143
8144 Merge branch 'html_link' into 'master'
8145 libtiff.html, bigtiffpr.html: absolute => relative link
8146
8147 See merge request libtiff/libtiff!80
8148
8149 2019-05-14 Thomas Bernard <[email protected]>
8150
8151 libtiff.html, bigtiffpr.html: absolute => relative link.
8152
8153 2019-05-10 Even Rouault <[email protected]>
8154
8155 Make defer strile offset/bytecount loading available at runtime.
8156 ... and add per-strile offset/bytecount loading capabilities.
8157
8158 Part of this commit makes the behaviour that was previously met when
8159 libtiff was compiled with -DDEFER_STRILE_LOAD available for default builds
8160 when specifying the new 'D' (Deferred) TIFFOpen() flag. In that mode, the [Tile/Strip][ByteCounts/Offsets]
8161 arrays are only loaded when first accessed. This can speed-up the opening
8162 of files stored on the network when just metadata retrieval is needed.
8163 This mode has been used for years by the GDAL library when compiled with
8164 its embedded libtiff copy.
8165
8166 To avoid potential out-of-tree code (typically codecs) that would use
8167 the td_stripbytecount and td_stripoffset array inconditionnaly assuming they
8168 have been loaded, those have been suffixed with _p (for protected). The
8169 use of the new functions mentioned below is then recommended.
8170
8171 Another addition of this commit is the capability of loading only the
8172 values of the offset/bytecount of the strile of interest instead of the
8173 whole array. This is enabled with the new 'O' (Ondemand) flag of TIFFOpen()
8174 (which implies 'D'). That behaviour has also been used by GDAL, which hacked
8175 into the td_stripoffset/td_stripbytecount arrays directly. The new code
8176 added in the _TIFFFetchStrileValue() and _TIFFPartialReadStripArray() internal
8177 functions is mostly a port of what was in GDAL GTiff driver previously.
8178
8179 Related to that, the public TIFFGetStrileOffset[WithErr]() and TIFFGetStrileByteCount[WithErr]()
8180 functions have been added to API. They are of particular interest when
8181 using sparse files (with offset == bytecount == 0) and you want to detect
8182 if a strile is present or not without decompressing the data, or updating
8183 an existing sparse file.
8184 They will also be used to enable a future enhancement where client code can entirely
8185 skip bytecount loading in some situations
8186
8187 A new test/defer_strile_loading.c test has been added to test the above
8188 capabilities.
8189
8190 2019-05-10 Even Rouault <[email protected]>
8191
8192 Creation: use SHORT type when possible for StripByteCounts/TileByteCounts
8193 This follows the same logic as previous commit.
8194
8195 2019-05-09 Even Rouault <[email protected]>
8196
8197 BigTIFF creation: write TileByteCounts/StripByteCounts tag with LONG when possible
8198 In most situations of BigTIFF file, the tile/strip sizes are of reasonable size,
8199 that is they fit on a 4-byte LONG. So in that case, use LONG instead of LONG8
8200 to save some space. For uncompressed file, it is easy to detect such situations
8201 by checking at the TIFFTileSize64()/TIFFStripSize64() return. For compressed file,
8202 we must take into account the fact that compression may sometimes result in
8203 larger compressed data. So we allow this optimization only for a few select
8204 compression times, and take a huge security margin (10x factor). We also only
8205 apply this optimization on multi-strip files, so as to allow easy on-the-fly
8206 growing of single-strip files whose strip size could grow above the 4GB threshold.
8207
8208 This change is compatible with the BigTIFF specification. According to
8209 https://www.awaresystems.be/imaging/tiff/bigtiff.html:
8210 "The StripOffsets, StripByteCounts, TileOffsets, and TileByteCounts tags are
8211 allowed to have the datatype TIFF_LONG8 in BigTIFF. Old datatypes TIFF_LONG,
8212 and TIFF_SHORT where allowed in the TIFF 6.0 specification, are still valid in BigTIFF, too. "
8213 On a practical point of view, this is also compatible on reading/writing of
8214 older libtiff 4.X versions.
8215
8216 The only glitch I found, which is rather minor, is when using such a BigTIFF
8217 file with TileByteCounts/StripByteCounts written with TIFF_LONG, and updating
8218 it with an older libtiff 4.X version with a change in the
8219 [Tile/Strip][ByteCounts/Offsets] array. In that case the _TIFFRewriteField()
8220 function will rewrite the directory and array with TIFF_LONG8, instead of updating
8221 the existing array (this is an issue fixed by this commit). The file will
8222 still be valid however, hence the minor severity of this.
8223
8224 2019-05-08 Even Rouault <[email protected]>
8225
8226 Merge branch 'bug2799' into 'master'
8227 fix fax2tiff
8228
8229 See merge request libtiff/libtiff!55
8230
8231 2019-05-08 Even Rouault <[email protected]>
8232
8233 Merge branch 'bug_2829' into 'master'
8234 WIN32: use tif_win32.c when building with CMake
8235
8236 See merge request libtiff/libtiff!75
8237
8238 2019-05-06 Even Rouault <[email protected]>
8239
8240 Merge branch 'FILESOURCE_SCENETYPE_reading' into 'master'
8241 Reading error for FileSource and SceneType tags corrected.
8242
8243 See merge request libtiff/libtiff!76
8244
8245 2019-05-06 Su Laus <[email protected]>
8246
8247 Reading error for FileSource and SceneType tags corrected.
8248 EXIF tags FILESOURCE and SCENETYPE are defined as TIFF_UNDEFINED and field_readcount==1!
8249 There is a bug in TIFFReadDirEntryByte() preventing to read correctly type TIFF_UNDEFINED fields with field_readcount==1
8250 Upgrade of TIFFReadDirEntryByte() with added TIFF_UNDEFINED switch-entry allows libtiff to read those tags correctly.
8251
8252 2019-04-25 Thomas Bernard <[email protected]>
8253
8254 WIN32: use tif_win32.c when building with CMake.
8255 see http://bugzilla.maptools.org/show_bug.cgi?id=2829
8256
8257 the top CMakeLists.txt defines
8258 win32_io and USE_WIN32_FILEIO
8259
8260 WIN32_IO is defined nowhere in CMake (only in automake things)
8261
8262 2019-04-25 Even Rouault <[email protected]>
8263
8264 Merge branch 'gitlab_pages' into 'master'
8265 Advertise https://libtiff.gitlab.io/libtiff/ as mirror
8266
8267 See merge request libtiff/libtiff!70
8268
8269 2019-04-25 Even Rouault <[email protected]>
8270
8271 Merge branch 'bug_2844' into 'master'
8272 tiff2ps.c: PSDataColorContig(): avoid heap buffer overrun
8273
8274 See merge request libtiff/libtiff!69
8275
8276 2019-04-25 Even Rouault <[email protected]>
8277
8278 Merge branch 'issue_2785' into 'master'
8279 tiff2pdf.c: don't call t2p_tile_collapse_left() for Ycbcr
8280
8281 See merge request libtiff/libtiff!64
8282
8283 2019-04-11 Even Rouault <[email protected]>
8284
8285 Merge branch 'fix_gdal_1439' into 'master'
8286 TIFFWriteEncodedStrip/TIFFWriteEncodedTile: fix rewriting of LZW-compressed data
8287
8288 See merge request libtiff/libtiff!74
8289
8290 2019-04-11 Even Rouault <[email protected]>
8291
8292 TIFFWriteEncodedStrip/TIFFWriteEncodedTile: fix rewriting of LZW-compressed data
8293 Fixes https://github.com/OSGeo/gdal/issues/1439
8294
8295 When rewriting a LZW tile/strip whose existing size is very close to a multiple of
8296 1024 bytes (and larger than 8192 bytes) with compressed data that is larger,
8297 the new data was not placed at the end of the file, causing corruption.
8298
8299 2019-04-08 Even Rouault <[email protected]>
8300
8301 Merge branch 'bug2848' into 'master'
8302 tif_luv.c: LogLuvSetupEncode() error must return 0
8303
8304 See merge request libtiff/libtiff!72
8305
8306 2019-04-03 Thomas Bernard <[email protected]>
8307
8308 build/gitlab-ci: fix typo.
8309
8310 show test-suite.log in gitlab-ci.
8311 useful when build fails
8312
8313 Add output check for tiff2ps.
8314 note : the reference files have been generated in master branch
8315
8316 2019-03-23 Even Rouault <[email protected]>
8317
8318 tif_read.c: potentially fix false positive from Coverity Scan. CID 1400288
8319
8320 tif_read.c: potentially fix false positive from Coverity Scan. CID 1400271
8321
8322 tif_zip.c: remove dead code. CID 1400360.
8323
8324 tif_webp.c: remove false positive warning about dereference before null check. CID 1400255
8325
8326 tif_pixarlog.c: remove dead code. CID 1400342.
8327
8328 tif_pixarlog.c: avoid false positive Coverity Scan warnings about overflow. CID 1400300 and 1400367
8329
8330 tif_lzw.c: silence CoverityScan false positive. CID 1400355.
8331
8332 tif_luv.c: silence CoverityScan false positive. CID 1400231, 1400251, 1400254, 1400272, 1400318, 1400356
8333
8334 TryChopUpUncompressedBigTiff(): avoid potential division by zero. master only. GDAL Coverity CID 1400263
8335
8336 2019-03-22 Thomas Bernard <[email protected]>
8337
8338 tif_luv.c: LogLuvSetupEncode() error must return 0.
8339 see http://bugzilla.maptools.org/show_bug.cgi?id=2848
8340
8341 if wrongly returning 1, the processing of incorrect file continues,
8342 which causes problems.
8343
8344 2019-03-22 Thomas Bernard <[email protected]>
8345
8346 add a test for fax2tiff tool.
8347
8348 2019-02-28 Thomas Bernard <[email protected]>
8349
8350 tiff2pdf.c: don't call t2p_tile_collapse_left() when buffer size is wrong
8351 see http://bugzilla.maptools.org/show_bug.cgi?id=2785
8352
8353 Advertise https://libtiff.gitlab.io/libtiff/ as mirror.
8354 I'm put it above the maptools.org mirror because
8355 Even Rouault believe at some point it will be completely removed
8356
8357 2019-02-28 Even Rouault <[email protected]>
8358
8359 Merge branch 'bug_2826' into 'master'
8360 tiff2pdf.c: check colormap pointers when loading CMYK with colormap
8361
8362 See merge request libtiff/libtiff!65
8363
8364 2019-02-28 Thomas Bernard <[email protected]>
8365
8366 tiff2pdf.c: check colormap pointers.
8367 Avoid access to non initialized pointers
8368 http://bugzilla.maptools.org/show_bug.cgi?id=2826
8369
8370 2019-02-27 Even Rouault <[email protected]>
8371
8372 Merge branch 'fix_warnings' into 'master'
8373 tiff2ps.c: fix warning caused by integer promotion
8374
8375 See merge request libtiff/libtiff!68
8376
8377 2019-02-23 Thomas Bernard <[email protected]>
8378
8379 PSDataColorContig(): avoid heap buffer overrun.
8380 fixes http://bugzilla.maptools.org/show_bug.cgi?id=2844
8381 each iteration of the loop read nc bytes
8382
8383 2019-02-22 Thomas Bernard <[email protected]>
8384
8385 tiff2ps.c: fix warning caused by integer promotion.
8386 uint8 value is promoted to int in (value << 24) so -fsanitize
8387 yield runtime errors :
8388 tiff2ps.c:2969:33: runtime error: left shift of 246 by 24 places cannot be represented in type 'int'
8389
8390 2019-02-22 Even Rouault <[email protected]>
8391
8392 Merge branch 'large_strile_improvements' into 'master'
8393 Large strile support improvements
8394
8395 See merge request libtiff/libtiff!63
8396
8397 2019-02-21 Even Rouault <[email protected]>
8398
8399 Merge branch 'gitlab-pages' into 'master'
8400 ci: Add pages job
8401
8402 See merge request libtiff/libtiff!45
8403
8404 2019-02-19 Even Rouault <[email protected]>
8405
8406 Merge branch 'issue_2833' into 'master'
8407 tiffcp.c: check that (Tile Width)*(Samples/Pixel) do no overflow
8408
8409 See merge request libtiff/libtiff!60
8410
8411 2019-02-19 Even Rouault <[email protected]>
8412
8413 Merge branch 'issue_2831' into 'master'
8414 tiffcrop.c: fix invertImage() for bps 2 and 4
8415
8416 See merge request libtiff/libtiff!61
8417
8418 2019-02-19 Even Rouault <[email protected]>
8419
8420 Merge branch 'issue_2842' into 'master'
8421 move _TIFFClampDoubleToFloat() to tif_aux.c
8422
8423 See merge request libtiff/libtiff!62
8424
8425 2019-02-19 Even Rouault <[email protected]>
8426
8427 tif_zip.c: allow reading and writing strips/tiles with more than 4 GB of compressed or uncompressed data
8428
8429 tif_dirread.c: when strip chopping is enabled, extend this mechanism to multi-strip uncompressed files with strips larger than 2GB to expose them as strips of ~500 MB
8430
8431 2019-02-19 Even Rouault <[email protected]>
8432
8433 Merge branch 'size_t_typo' into 'master'
8434 CMakeLists.txt: fix TIFF_SIZE_T
8435
8436 See merge request libtiff/libtiff!59
8437
8438 2019-02-12 Thomas Bernard <[email protected]>
8439
8440 move _TIFFClampDoubleToFloat() to tif_aux.c.
8441 the same function was declared in tif_dir.c and tif_dirwrite.c
8442
8443 see http://bugzilla.maptools.org/show_bug.cgi?id=2842
8444
8445 2019-02-11 Thomas Bernard <[email protected]>
8446
8447 tiffcrop.c: fix invertImage() for bps 2 and 4.
8448 too much bytes were processed, causing a heap buffer overrun
8449 http://bugzilla.maptools.org/show_bug.cgi?id=2831
8450 the loop counter must be
8451 for (col = 0; col < width; col += 8 / bps)
8452
8453 Also the values were not properly calculated. It should be
8454 255-x, 15-x, 3-x for bps 8, 4, 2.
8455
8456 But anyway it is easier to invert all bits as 255-x = ~x, etc.
8457 (subtracting from a binary number composed of all 1 is like inverting
8458 the bits)
8459
8460 2019-02-11 Thomas Bernard <[email protected]>
8461
8462 tiffcp.c: use INT_MAX.
8463
8464 check that (Tile Width)*(Samples/Pixel) do no overflow.
8465 fixes bug 2833
8466
8467 2019-02-03 Thomas Bernard <[email protected]>
8468
8469 CMakeLists.txt: fix TIFF_SIZE_T.
8470
8471 2019-02-02 Even Rouault <[email protected]>
8472
8473 Merge branch 'master' into 'master'
8474 Fix for simple memory leak that was assigned CVE-2019-6128.
8475
8476 See merge request libtiff/libtiff!50
8477
8478 2019-02-02 Even Rouault <[email protected]>
8479
8480 Merge branch 'bug2835' into 'master'
8481 tiff2ps: fix heap-buffer-overflow
8482
8483 See merge request libtiff/libtiff!53
8484
8485 2019-02-02 Even Rouault <[email protected]>
8486
8487 Fix warning (use of uninitialized value) added per d0a842c5dbad2609aed43c701a12ed12461d3405 (fixes https://gitlab.com/libtiff/libtiff/merge_requests/54#note_137742985)
8488
8489 2019-02-02 Yuri Aksenov <[email protected]>
8490
8491 fix fax2tiff.
8492 see http://bugzilla.maptools.org/show_bug.cgi?id=2799
8493 fixes d9bc8472e72549f29c0062c1cbd3d56f279f3be2
8494
8495 2019-02-02 Even Rouault <[email protected]>
8496
8497 Merge branch 'tiffcrop' into 'master'
8498 tiffcrop: shut up clang warnings
8499
8500 See merge request libtiff/libtiff!52
8501
8502 2019-02-01 Even Rouault <[email protected]>
8503
8504 Merge branch 'bug2833' into 'master'
8505 TIFFWriteDirectoryTagTransferfunction() : fix NULL dereferencing
8506
8507 See merge request libtiff/libtiff!54
8508
8509 2019-02-01 Even Rouault <[email protected]>
8510
8511 Merge branch 'gitignore' into 'master'
8512 add test/ files to .gitignore
8513
8514 See merge request libtiff/libtiff!56
8515
8516 2019-02-01 Even Rouault <[email protected]>
8517
8518 Merge branch 'master' into 'master'
8519 tif_dir: unset transferfunction field if necessary (CVE-2018-19210)
8520
8521 See merge request libtiff/libtiff!47
8522
8523 2019-01-29 Thomas Bernard <[email protected]>
8524
8525 add test/ files to .gitignore.
8526
8527 2019-01-29 Thomas Bernard <[email protected]>
8528
8529 TIFFWriteDirectoryTagTransferfunction() : fix NULL dereferencing.
8530 http://bugzilla.maptools.org/show_bug.cgi?id=2833
8531
8532 we must check the pointer is not NULL before memcmp() the memory
8533
8534 2019-01-29 Thomas Bernard <[email protected]>
8535
8536 tiff2ps: fix heap-buffer-overflow.
8537 http://bugzilla.maptools.org/show_bug.cgi?id=2834
8538
8539 usually the test (i < byte_count) is OK because the byte_count is divisible by samplesperpixel.
8540 But if that is not the case, (i + ncomps) < byte_count should be used, or
8541 maybe (i + samplesperpixel) <= byte_count
8542
8543 2019-01-28 Thomas Bernard <[email protected]>
8544
8545 tiffcrop: shut up clang warnings.
8546 make the out filename building a bit more simple
8547 and remove the use of strcat()
8548
8549 2019-01-23 Scott Gayou <[email protected]>
8550
8551 Fix for simple memory leak that was assigned CVE-2019-6128.
8552 pal2rgb failed to free memory on a few errors. This was reported
8553 here: http://bugzilla.maptools.org/show_bug.cgi?id=2836.
8554
8555 2019-01-05 Bob Friesenhahn <[email protected]>
8556
8557 Fix tiff2ps error regarding "Inconsistent value of es" by allowing es to be zero. Problem was reported to the tiff mailing list by Julian H. Stacey on January 5, 2019.
8558
8559 2018-12-13 Hugo Lefeuvre <[email protected]>
8560
8561 tif_dir: unset transferfunction field if necessary.
8562 The number of entries in the transfer table is determined as following:
8563
8564 (td->td_samplesperpixel - td->td_extrasamples) > 1 ? 3 : 1
8565
8566 This means that whenever td->td_samplesperpixel or td->td_extrasamples are
8567 modified we also need to make sure that the number of required entries in
8568 the transfer table didn't change.
8569
8570 If it changed and the number of entries is higher than before we should
8571 invalidate the transfer table field and free previously allocated values.
8572 In the other case there's nothing to do, additional tf entries won't harm
8573 and properly written code will just ignore them since spp - es < 1.
8574
8575 For instance this situation might happen when reading an OJPEG compressed
8576 image with missing SamplesPerPixel tag. In this case the SamplesPerPixel
8577 field might be updated after setting the transfer table.
8578
8579 see http://bugzilla.maptools.org/show_bug.cgi?id=2500
8580
8581 This commit addresses CVE-2018-19210.
8582
8583 2018-12-08 Bob Friesenhahn <[email protected]>
8584
8585 Do not attempt to re-sync zip stream after reported data error from inflate().
8586
8587 2018-12-07 Even Rouault <[email protected]>
8588
8589 Merge branch 'resource-leaks' into 'master'
8590 Fix two resource leaks
8591
8592 See merge request libtiff/libtiff!43
8593
8594 2018-12-07 Even Rouault <[email protected]>
8595
8596 Merge branch 'build-jbig' into 'master'
8597 add jbig support to the fuzzer
8598
8599 See merge request libtiff/libtiff!42
8600
8601 2018-12-01 Bob Friesenhahn <[email protected]>
8602
8603 tiffcrop.c: Avoid new clang warning about tools/tiffcrop.c "size argument in 'strncat' call appears to be size of the source".
8604
8605 2018-11-28 Even Rouault <[email protected]>
8606
8607 Merge branch 'webp_memleak' into 'master'
8608 fixed mem leak in webp compression
8609
8610 See merge request libtiff/libtiff!48
8611
8612 2018-11-28 Norman Barker <[email protected]>
8613
8614 fixed mem leak in webp compression.
8615
8616 2018-11-20 Even Rouault <[email protected]>
8617
8618 Merge branch 'lossless_webp' into 'master'
8619 fixed lossless webp compression config
8620
8621 See merge request libtiff/libtiff!46
8622
8623 2018-11-20 Norman Barker <[email protected]>
8624
8625 fixed lossless webp compression config.
8626
8627 2018-11-18 Bob Friesenhahn <[email protected]>
8628
8629 snprintf porting fix for Visual Studio 2003.
8630
8631 2018-11-18 Roger Leigh <[email protected]>
8632
8633 ci: Add pages job.
8634
8635 2018-11-10 Bob Friesenhahn <[email protected]>
8636
8637 Change references from defunct ftp site to https site.
8638
8639 2018-11-10 Bob Friesenhahn <[email protected]>
8640
8641 * configure.ac: libtiff 4.0.10 released.
8642
8643 Change COMPRESSION_ZSTD to 50000 and COMPRESSION_WEBP to 50001.
8644
8645 2018-11-04 Bob Friesenhahn <[email protected]>
8646
8647 Added preliminary release notes for release 4.0.10.
8648
8649 2018-11-03 Bob Friesenhahn <[email protected]>
8650
8651 tiff2pdf: Eliminate compiler warning about snprintf output truncation when formatting pdf_datetime.
8652
8653 2018-11-03 Olivier Paquet <[email protected]>
8654
8655 Merge branch 'no_tif_platform_console' into 'master'
8656 Remove builtin support for GUI warning and error message boxes
8657
8658 See merge request libtiff/libtiff!24
8659
8660 2018-11-03 Bob Friesenhahn <[email protected]>
8661
8662 tiffcrop.c: Eliminate compiler warning about snprintf output truncation when formatting filenum.
8663
8664 TWebPVGetField(): Add apparently missing break statement impacting TIFFTAG_WEBP_LOSSLESS.
8665
8666 Eliminate compiler warnings about duplicate definitions of streq/strneq macros.
8667
8668 Ignore generated files.
8669
8670 Remove and ignore files which are a product of autogen.sh.
8671
8672 2018-11-02 Bob Friesenhahn <[email protected]>
8673
8674 Fix TIFFErrorExt() formatting of size_t type for 32-bit compiles.
8675
8676 2018-10-30 Even Rouault <[email protected]>
8677
8678 tiff2bw: avoid null pointer dereference in case of out of memory situation. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2819 / CVE-2018-18661
8679
8680 tiffio.h: fix comment.
8681
8682 2018-10-26 Even Rouault <[email protected]>
8683
8684 Merge branch 'header2' into 'master'
8685 Fix 725279bd: Standalone tif_predict.h: tiff.h should be tiffiop.h
8686
8687 See merge request libtiff/libtiff!41
8688
8689 2018-10-26 Kurt Schwehr <[email protected]>
8690
8691 Fix 725279bd: Standalone tif_predict.h: tiff.h should be tiffiop.h.
8692
8693 2018-10-25 Even Rouault <[email protected]>
8694
8695 Merge branch 'headers' into 'master'
8696 Add includes to headers to allow them to stand alone.
8697
8698 See merge request libtiff/libtiff!40
8699
8700 2018-10-24 Kurt Schwehr <[email protected]>
8701
8702 Add includes to headers to allow them to stand alone.
8703 This allows compilers that can do header stand alone header parsing
8704 to process libtiff.
8705
8706 2018-10-18 Even Rouault <[email protected]>
8707
8708 LZMAPreEncode: emit verbose error if lzma_stream_encoder() fails (typically because not enough memory available)
8709
8710 2018-10-17 Even Rouault <[email protected]>
8711
8712 tif_webp.c: fix previous commit that broke scanline decoding.
8713
8714 tif_webp.c: fix potential read outside libwebp buffer on corrupted images
8715
8716 2018-10-14 Even Rouault <[email protected]>
8717
8718 Merge branch 'jbig_decode_overflow' into 'master'
8719 JBIG: fix potential out-of-bounds write in JBIGDecode()
8720
8721 See merge request libtiff/libtiff!38
8722
8723 2018-10-14 Even Rouault <[email protected]>
8724
8725 JBIG: fix potential out-of-bounds write in JBIGDecode()
8726 JBIGDecode doesn't check if the user provided buffer is large enough
8727 to store the JBIG decoded image, which can potentially cause out-of-bounds
8728 write in the buffer.
8729 This issue was reported and analyzed by Thomas Dullien.
8730
8731 Also fixes a (harmless) potential use of uninitialized memory when
8732 tif->tif_rawsize > tif->tif_rawcc
8733
8734 And in case libtiff is compiled with CHUNKY_STRIP_READ_SUPPORT, make sure
8735 that whole strip data is provided to JBIGDecode()
8736
8737 2018-10-05 Even Rouault <[email protected]>
8738
8739 tif_webp.c: fix scanline reading/writing.
8740
8741 WEBP codec: initialize nSamples in TWebPSetupDecode() and TWebPSetupEncode()
8742
8743 2018-10-05 Even Rouault <[email protected]>
8744
8745 Merge branch 'tif_webp' into 'master'
8746 webp support
8747
8748 See merge request libtiff/libtiff!32
8749
8750 2018-10-05 Norman Barker <[email protected]>
8751
8752 webp in tiff.
8753
8754 2018-09-17 Even Rouault <[email protected]>
8755
8756 Merge branch 'master' into 'master'
8757 fix three potential vulnerabilities.
8758
8759 See merge request libtiff/libtiff!33
8760
8761 2018-09-08 Young_X <[email protected]>
8762
8763 fix out-of-bound read on some tiled images.
8764
8765 avoid potential int32 overflows in multiply_ms()
8766
8767 only read/write TIFFTAG_GROUP3OPTIONS or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or COMPRESSION_CCITTFAX4
8768
8769 2018-08-15 Even Rouault <[email protected]>
8770
8771 TIFFSetupStrips(): avoid potential uint32 overflow on 32-bit systems with large number of strips. Probably relates to http://bugzilla.maptools.org/show_bug.cgi?id=2788 / CVE-2018-10779
8772
8773 2018-08-07 Even Rouault <[email protected]>
8774
8775 ZSTD: fix flush issue that can cause endless loop in ZSTDEncode()
8776 Fixes https://github.com/OSGeo/gdal/issues/833
8777
8778 2018-08-07 Even Rouault <[email protected]>
8779
8780 Merge branch 'fix_bug_2800' into 'master'
8781 Fix libtiff 4.0.8 regression when reading LZW-compressed strips with scanline API
8782
8783 See merge request libtiff/libtiff!31
8784
8785 2018-08-07 Even Rouault <[email protected]>
8786
8787 Fix libtiff 4.0.8 regression when reading LZW-compressed strips with scanline API
8788 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2800
8789
8790 2018-07-05 Even Rouault <[email protected]>
8791
8792 Add tag and pseudo-tag definitions for ESRI LERC codec (out of tree codec whose source is at https://github.com/OSGeo/gdal/blob/master/gdal/frmts/gtiff/tif_lerc.c)
8793
8794 2018-07-02 Even Rouault <[email protected]>
8795
8796 Fix TIFFTAG_ZSTD_LEVEL pseudo tag value to be > 65536, and the next one in the series
8797
8798 2018-05-25 Stefan Weil <[email protected]>
8799
8800 Remove builtin support for GUI warning and error message boxes.
8801 Now warnings always go to the console by default unless applications
8802 define their own warning and error handlers.
8803
8804 GUI applications (and Windows CE) are required to define such handlers.
8805
8806 2018-05-12 Even Rouault <[email protected]>
8807
8808 LZWDecodeCompat(): fix potential index-out-of-bounds write. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2780 / CVE-2018-8905
8809 The fix consists in using the similar code LZWDecode() to validate we
8810 don't write outside of the output buffer.
8811
8812 TIFFFetchNormalTag(): avoid (probably false positive) clang-tidy clang-analyzer-core.NullDereference warnings
8813
8814 TIFFWriteDirectorySec: avoid assertion. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2795. CVE-2018-10963
8815
8816 2018-05-04 Even Rouault <[email protected]>
8817
8818 tif_color.c: fix code comment.
8819
8820 2018-04-17 Even Rouault <[email protected]>
8821
8822 Merge branch 'fuzzer-fix' into 'master'
8823 remove a pointless multiplication and a variable that's not necessary
8824
8825 See merge request libtiff/libtiff!29
8826
8827 2018-04-17 Paul Kehrer <[email protected]>
8828
8829 remove a pointless multiplication and a variable that's not necessary.
8830
8831 2018-04-17 Even Rouault <[email protected]>
8832
8833 Merge branch 'ossfuzz' into 'master'
8834 move oss-fuzz build script and fuzzer into libtiff tree
8835
8836 See merge request libtiff/libtiff!28
8837
8838 2018-04-17 Paul Kehrer <[email protected]>
8839
8840 move oss-fuzz build script and fuzzer into libtiff tree.
8841
8842 2018-04-14 Even Rouault <[email protected]>
8843
8844 _TIFFGetMaxColorChannels: update for LOGLUV, ITULAB and ICCLAB that have 3 color channels
8845
8846 2018-04-12 Even Rouault <[email protected]>
8847
8848 Fix MSVC warning.
8849
8850 2018-04-12 Even Rouault <[email protected]>
8851
8852 Merge branch 'master' into 'master'
8853 Fix NULL pointer dereference in TIFFPrintDirectory (bugzilla 2778/CVE-2018-7456)
8854
8855 See merge request libtiff/libtiff!27
8856
8857 2018-04-11 Hugo Lefeuvre <[email protected]>
8858
8859 Fix NULL pointer dereference in TIFFPrintDirectory.
8860 The TIFFPrintDirectory function relies on the following assumptions,
8861 supposed to be guaranteed by the specification:
8862
8863 (a) A Transfer Function field is only present if the TIFF file has
8864 photometric type < 3.
8865
8866 (b) If SamplesPerPixel > Color Channels, then the ExtraSamples field
8867 has count SamplesPerPixel - (Color Channels) and contains
8868 information about supplementary channels.
8869
8870 While respect of (a) and (b) are essential for the well functioning of
8871 TIFFPrintDirectory, no checks are realized neither by the callee nor
8872 by TIFFPrintDirectory itself. Hence, following scenarios might happen
8873 and trigger the NULL pointer dereference:
8874
8875 (1) TIFF File of photometric type 4 or more has illegal Transfer
8876 Function field.
8877
8878 (2) TIFF File has photometric type 3 or less and defines a
8879 SamplesPerPixel field such that SamplesPerPixel > Color Channels
8880 without defining all extra samples in the ExtraSamples fields.
8881
8882 In this patch, we address both issues with respect of the following
8883 principles:
8884
8885 (A) In the case of (1), the defined transfer table should be printed
8886 safely even if it isn't 'legal'. This allows us to avoid expensive
8887 checks in TIFFPrintDirectory. Also, it is quite possible that
8888 an alternative photometric type would be developed (not part of the
8889 standard) and would allow definition of Transfer Table. We want
8890 libtiff to be able to handle this scenario out of the box.
8891
8892 (B) In the case of (2), the transfer table should be printed at its
8893 right size, that is if TIFF file has photometric type Palette
8894 then the transfer table should have one row and not three, even
8895 if two extra samples are declared.
8896
8897 In order to fulfill (A) we simply add a new 'i < 3' end condition to
8898 the broken TIFFPrintDirectory loop. This makes sure that in any case
8899 where (b) would be respected but not (a), everything stays fine.
8900
8901 (B) is fulfilled by the loop condition
8902 'i < td->td_samplesperpixel - td->td_extrasamples'. This is enough as
8903 long as (b) is respected.
8904
8905 Naturally, we also make sure (b) is respected. This is done in the
8906 TIFFReadDirectory function by making sure any non-color channel is
8907 counted in ExtraSamples.
8908
8909 This commit addresses CVE-2018-7456.
8910
8911 2018-03-27 Even Rouault <[email protected]>
8912
8913 Merge branch 'tiffset-long8' into 'master'
8914 tiffset: Add support for LONG8, SLONG8 and IFD8 field types
8915
8916 See merge request libtiff/libtiff!25
8917
8918 2018-03-26 Roger Leigh <[email protected]>
8919
8920 port: Clean up NetBSD sources and headers to build standalone.
8921
8922 2018-03-23 Roger Leigh <[email protected]>
8923
8924 port: Add strtol, strtoll and strtoull.
8925 Also update strtoul. All use the same implementation from NetBSD libc.
8926
8927 tiffset: Add support for LONG8, SLONG8 and IFD8 field types.
8928
8929 2018-03-17 Even Rouault <[email protected]>
8930
8931 ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
8932 Rework fix done in 3719385a3fac5cfb20b487619a5f08abbf967cf8 to work in more
8933 cases like https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6979.
8934 Credit to OSS Fuzz
8935
8936 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2724
8937
8938 2018-03-13 Even Rouault <[email protected]>
8939
8940 libtiff/tif_luv.c: rewrite loops in a more readable way (to avoid false positive reports like http://bugzilla.maptools.org/show_bug.cgi?id=2779)
8941
8942 2018-03-13 Even Rouault <[email protected]>
8943
8944 Merge branch 'avoid_memory_exhaustion_in_ChopUpSingleUncompressedStrip' into 'master'
8945 ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
8946
8947 See merge request libtiff/libtiff!26
8948
8949 2018-03-11 Even Rouault <[email protected]>
8950
8951 ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
8952 In ChopUpSingleUncompressedStrip(), if the computed number of strips is big
8953 enough and we are in read only mode, validate that the file size is consistent
8954 with that number of strips to avoid useless attempts at allocating a lot of
8955 memory for the td_stripbytecount and td_stripoffset arrays.
8956
8957 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2724
8958
8959 2018-03-10 Even Rouault <[email protected]>
8960
8961 Typo fix in comment.
8962
8963 2018-03-03 Even Rouault <[email protected]>
8964
8965 Avoid warning with gcc 8 (partially revert 647b0e8c11ee11896f319b92cf110775f538d75c)
8966
8967 2018-02-25 Even Rouault <[email protected]>
8968
8969 Merge branch 'typos' into 'master'
8970 Fix some typos
8971
8972 See merge request libtiff/libtiff!23
8973
8974 2018-02-24 Stefan Weil <[email protected]>
8975
8976 Fix some typos.
8977 Most of them were found by codespell.
8978
8979 2018-02-14 Even Rouault <[email protected]>
8980
8981 Typo fix in comment.
8982
8983 Merge branch 'zstd'
8984
8985 Add warning about COMPRESSION_ZSTD not being officially registered.
8986
8987 2018-02-14 Even Rouault <[email protected]>
8988
8989 Merge branch 'bug2772' into 'master'
8990 Fix for bug 2772
8991
8992 See merge request libtiff/libtiff!20
8993
8994 2018-02-12 Nathan Baker <[email protected]>
8995
8996 Fix for bug 2772.
8997 It is possible to craft a TIFF document where the IFD list is circular,
8998 leading to an infinite loop while traversing the chain. The libtiff
8999 directory reader has a failsafe that will break out of this loop after
9000 reading 65535 directory entries, but it will continue processing,
9001 consuming time and resources to process what is essentially a bogus TIFF
9002 document.
9003
9004 This change fixes the above behavior by breaking out of processing when
9005 a TIFF document has >= 65535 directories and terminating with an error.
9006
9007 2018-02-09 Even Rouault <[email protected]>
9008
9009 Merge branch 'libtiff-as-subdirectory-fixes' into 'master'
9010 Prefer target_include_directories
9011
9012 See merge request libtiff/libtiff!12
9013
9014 2018-02-06 Even Rouault <[email protected]>
9015
9016 Merge branch 'cmake-cleanups' into 'master'
9017 Cmake cleanups
9018
9019 See merge request libtiff/libtiff!11
9020
9021 2018-02-06 Even Rouault <[email protected]>
9022
9023 Merge branch 'check-right-cxx-variable' into 'master'
9024 Check right cxx variable
9025
9026 See merge request libtiff/libtiff!19
9027
9028 2018-02-06 Even Rouault <[email protected]>
9029
9030 Merge branch 'dont-leak-stream-open' into 'master'
9031 Fix a memory leak in TIFFStreamOpen
9032
9033 See merge request libtiff/libtiff!17
9034
9035 2018-02-06 Ben Boeckel <[email protected]>
9036
9037 cmake: check CXX_SUPPORT.
9038 This variable is set in response to the `cxx` cache variable; use it
9039 instead.
9040
9041 2018-02-04 Olivier Paquet <[email protected]>
9042
9043 Merge branch 'warnings' into 'master'
9044 Fix all compiler warnings for default build
9045
9046 See merge request libtiff/libtiff!16
9047
9048 2018-02-04 Nathan Baker <[email protected]>
9049
9050 Fix all compiler warnings for default build.
9051
9052 2018-01-30 Paul Kehrer <[email protected]>
9053
9054 tabs are hard.
9055
9056 2018-01-29 Paul Kehrer <[email protected]>
9057
9058 use hard tabs like the rest of the project.
9059
9060 Fix a memory leak in TIFFStreamOpen.
9061 TIFFStreamOpen allocates a new tiff{o,i}s_data, but if TIFFClientOpen
9062 fails then that struct is leaked. Delete it if the returned TIFF * is
9063 null.
9064
9065 2018-01-29 Kevin Funk <[email protected]>
9066
9067 Bump minimum required CMake version to v2.8.11.
9068 Because we use the BUILD_INTERFACE generator expression
9069
9070 2018-01-27 Even Rouault <[email protected]>
9071
9072 Merge branch 'patch-1' into 'master'
9073 Update CMakeLists.txt for build fix on Windows
9074
9075 See merge request libtiff/libtiff!14
9076
9077 2018-01-27 Even Rouault <[email protected]>
9078
9079 Merge branch 'patch-2' into 'master'
9080 Update tiffgt.c for build fix on Windows
9081
9082 See merge request libtiff/libtiff!13
9083
9084 2018-01-25 Olivier Paquet <[email protected]>
9085
9086 Merge branch 'bug2750' into 'master'
9087 Add workaround to pal2rgb buffer overflow.
9088
9089 See merge request libtiff/libtiff!15
9090
9091 2018-01-25 Nathan Baker <[email protected]>
9092
9093 Add workaround to pal2rgb buffer overflow.
9094
9095 2018-01-23 Andrea <[email protected]>
9096
9097 Update tiffgt.c for build fix on Windows.
9098
9099 Update CMakeLists.txt for build fix on Windows.
9100
9101 2018-01-15 Even Rouault <[email protected]>
9102
9103 Merge branch 'has-attribute-check' into 'master'
9104 tiffiop: use __has_attribute to detect the no_sanitize attribute
9105
9106 See merge request libtiff/libtiff!10
9107
9108 2018-01-15 Ben Boeckel <[email protected]>
9109
9110 cmake: avoid setting hard-coded variables in the cache.
9111
9112 cmake: avoid an unnecessary intermediate variable.
9113
9114 cmake: avoid an unnecessary intermediate variable.
9115
9116 cmake: avoid tautological logic.
9117
9118 cmake: use check_symbol_exists.
9119 This accounts for symbols being provided by macros.
9120
9121 cmake: remove unused configure checks.
9122
9123 2018-01-12 Kevin Funk <[email protected]>
9124
9125 Prefer target_include_directories.
9126 When libtiff is included in a super project via a simple
9127 `add_subdirectory(libtiff)`, this way the `tiff` library target has all
9128 the necessary information to build against it.
9129
9130 Note: The BUILD_INTERFACE generator expression feature requires at least
9131 CMake v2.8.11 if I'm correct.
9132
9133 2018-01-09 Ben Boeckel <[email protected]>
9134
9135 tiffiop: use __has_attribute to detect the no_sanitize attribute.
9136
9137 2017-12-31 Even Rouault <[email protected]>
9138
9139 man/TIFFquery.3tiff: remove reference to non-existing TIFFReadStrip() function in TIFFIsByteSwapped() documentation. Patch by Eric Piel. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2763
9140
9141 libtiff/tif_dir.c: _TIFFVGetField(): fix heap out-of-bounds access when requesting TIFFTAG_NUMBEROFINKS on a EXIF directory. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2765. Reported by Google Autofuzz project
9142
9143 libtiff/tif_print.c: TIFFPrintDirectory(): fix null pointer dereference on corrupted file. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2770
9144
9145 2017-12-21 Even Rouault <[email protected]>
9146
9147 Add libzstd to gitlab-ci.
9148
9149 2017-12-21 Even Rouault <[email protected]>
9150
9151 Add ZSTD compression codec.
9152 From https://github.com/facebook/zstd
9153 "Zstandard, or zstd as short version, is a fast lossless compression
9154 algorithm, targeting real-time compression scenarios at zlib-level
9155 and better compression ratios. It's backed by a very fast entropy stage,
9156 provided by Huff0 and FSE library."
9157
9158 We require libzstd >= 1.0.0 so as to be able to use streaming compression
9159 and decompression methods.
9160
9161 The default compression level we have selected is 9 (range goes from 1 to 22),
9162 which experimentally offers equivalent or better compression ratio than
9163 the default deflate/ZIP level of 6, and much faster compression.
9164
9165 For example on a 6600x4400 16bit image, tiffcp -c zip runs in 10.7 seconds,
9166 while tiffcp -c zstd runs in 5.3 seconds. Decompression time for zip is
9167 840 ms, and for zstd 650 ms. File size is 42735936 for zip, and
9168 42586822 for zstd. Similar findings on other images.
9169
9170 On a 25894x16701 16bit image,
9171
9172 Compression time Decompression time File size
9173
9174 ZSTD 35 s 3.2 s 399 700 498
9175 ZIP/Deflate 1m 20 s 4.9 s 419 622 336
9176
9177 2017-12-10 Even Rouault <[email protected]>
9178
9179 Merge branch 'fix_cve-2017-9935' into 'master'
9180 Fix CVE-2017-9935
9181
9182 See merge request libtiff/libtiff!7
9183
9184 2017-12-10 Brian May <[email protected]>
9185
9186 tiff2pdf: Fix apparent incorrect type for transfer table.
9187 The standard says the transfer table contains unsigned 16 bit values,
9188 I have no idea why we refer to them as floats.
9189
9190 2017-12-10 Brian May <[email protected]>
9191
9192 tiff2pdf: Fix CVE-2017-9935.
9193 Fix for http://bugzilla.maptools.org/show_bug.cgi?id=2704
9194
9195 This vulnerability - at least for the supplied test case - is because we
9196 assume that a tiff will only have one transfer function that is the same
9197 for all pages. This is not required by the TIFF standards.
9198
9199 We than read the transfer function for every page. Depending on the
9200 transfer function, we allocate either 2 or 4 bytes to the XREF buffer.
9201 We allocate this memory after we read in the transfer function for the
9202 page.
9203
9204 For the first exploit - POC1, this file has 3 pages. For the first page
9205 we allocate 2 extra extra XREF entries. Then for the next page 2 more
9206 entries. Then for the last page the transfer function changes and we
9207 allocate 4 more entries.
9208
9209 When we read the file into memory, we assume we have 4 bytes extra for
9210 each and every page (as per the last transfer function we read). Which
9211 is not correct, we only have 2 bytes extra for the first 2 pages. As a
9212 result, we end up writing past the end of the buffer.
9213
9214 There are also some related issues that this also fixes. For example,
9215 TIFFGetField can return uninitialized pointer values, and the logic to
9216 detect a N=3 vs N=1 transfer function seemed rather strange.
9217
9218 It is also strange that we declare the transfer functions to be of type
9219 float, when the standard says they are unsigned 16 bit values. This is
9220 fixed in another patch.
9221
9222 This patch will check to ensure that the N value for every transfer
9223 function is the same for every page. If this changes, we abort with an
9224 error. In theory, we should perhaps check that the transfer function
9225 itself is identical for every page, however we don't do that due to the
9226 confusion of the type of the data in the transfer function.
9227
9228 2017-12-10 Even Rouault <[email protected]>
9229
9230 Merge branch 'undef-warn-fixes' into 'master'
9231 Fix a couple of harmless but annoying -Wundef warnings
9232
9233 See merge request libtiff/libtiff!8
9234
9235 2017-12-07 Vadim Zeitlin <[email protected]>
9236
9237 Remove tests for undefined SIZEOF_VOIDP.
9238 As configure never uses AC_CHECK_SIZEOF(void*), this symbol is never
9239 defined and so it doesn't make sense to test it in the code, this just
9240 results in -Wundef warnings if they're enabled.
9241
9242 Avoid harmless -Wundef warnings for __clang_major__
9243 Check that we're using Clang before checking its version.
9244
9245 2017-12-02 Even Rouault <[email protected]>
9246
9247 Merge branch 'remove_autogenerated_files' into 'master'
9248 Remove autogenerated files
9249
9250 See merge request libtiff/libtiff!5
9251
9252 2017-12-02 Bob Friesenhahn <[email protected]>
9253
9254 Merge branch 'tif_config_h_includes' into 'master'
9255 'tif_config.h' or 'tiffiop.h' must be included before any system header.
9256
9257 See merge request libtiff/libtiff!6
9258
9259 2017-12-02 Bob Friesenhahn <[email protected]>
9260
9261 'tif_config.h' or 'tiffio.h' must be included before any system header.
9262
9263 2017-12-01 Even Rouault <[email protected]>
9264
9265 .gitignore: add patterns for build from root.
9266
9267 Remove remaining .cvsignore files.
9268
9269 Remove autoconf/automake generated files, and add them to .gitignore.
9270
9271 2017-12-01 Olivier Paquet <[email protected]>
9272
9273 Merge branch 'makedistcheck' into 'master'
9274 build/gitlab-ci and build/travis-ci: add a 'make dist' step in autoconf_build()…
9275
9276 See merge request libtiff/libtiff!4
9277
9278 2017-12-01 Even Rouault <[email protected]>
9279
9280 build/gitlab-ci and build/travis-ci: add a 'make dist' step in autoconf_build() target, to check we are release-ready
9281
9282 2017-12-01 Even Rouault <[email protected]>
9283
9284 Merge branch 'git_updates' into 'master'
9285 CVS to Git updates
9286
9287 See merge request libtiff/libtiff!2
9288
9289 2017-12-01 Even Rouault <[email protected]>
9290
9291 HOWTO-RELEASE: update to use signed tags.
9292
9293 README.md: use markdown syntax for hyperlinks.
9294
9295 2017-11-30 Even Rouault <[email protected]>
9296
9297 Add .gitignore.
9298
9299 Regenerate autoconf files.
9300
9301 Makefile.am: update to reflect removal of README.vms and README -> README.md
9302
9303 Remove all $Id and $Headers comments with CVS versions.
9304
9305 HOWTO-RELEASE: update for git.
9306
9307 Remove outdated .cvsignore.
9308
9309 Remove outdated commit script.
9310
9311 Remove README.vms.
9312
9313 Rename README as README.md, and update content.
9314
9315 html/index.html: reflect change from CVS to gitlab.
9316
9317 2017-11-30 Olivier Paquet <[email protected]>
9318
9319 Merge branch 'test-ci' into 'master'
9320 Update CI configuration
9321
9322 See merge request libtiff/libtiff!1
9323
9324 2017-11-23 Roger Leigh <[email protected]>
9325
9326 appveyor: Correct path for git clone and skip artifact archival.
9327
9328 2017-11-22 Roger Leigh <[email protected]>
9329
9330 travis-ci: Remove unused matrix exclusion.
9331
9332 Add gitlab-ci build support.
9333
9334 2017-11-18 Bob Friesenhahn <[email protected]>
9335
9336 * configure.ac: libtiff 4.0.9 released.
9337
9338 * html/v4.0.9.html: Add HTML file to document changes in libtiff
9339 v4.0.9.
9340
9341 2017-11-17 Even Rouault <even.rouault at spatialys.com>
9342
9343 * libtiff/tif_aux.c, tif_getimage.c, tif_read.c: typo fixes in
9344 comments.
9345
9346 2017-11-02 Bob Friesenhahn <[email protected]>
9347
9348 * test/Makefile.am: Add some tests for tiff2bw.
9349
9350 2017-11-01 Bob Friesenhahn <[email protected]>
9351
9352 * tools/tiff2bw.c (main): Free memory allocated in the tiff2bw
9353 program. This is in response to the report associated with
9354 CVE-2017-16232 but does not solve the extremely high memory usage
9355 with the associated POC file.
9356
9357 2017-10-29 Bob Friesenhahn <[email protected]>
9358
9359 * tools/tiff2pdf.c (t2p_sample_realize_palette): Fix possible
9360 arithmetic overflow in bounds checking code and eliminate
9361 comparison between signed and unsigned type.
9362
9363 * tools/fax2tiff.c (_FAX_Client_Data): Pass FAX_Client_Data as the
9364 client data. This client data is not used at all at the moment,
9365 but it makes the most sense. Issue that the value of
9366 client_data.fd was passed where a pointer is expected was reported
9367 via email by Gerald Schade on Sun, 29 Oct 2017.
9368
9369 2017-10-23 Even Rouault <even.rouault at spatialys.com>
9370
9371 * libtiff/tif_getimage.c: avoid floating point division by zero in
9372 initCIELabConversion()
9373 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3733
9374 Credit to OSS Fuzz
9375
9376 2017-10-17 Even Rouault <even.rouault at spatialys.com>
9377
9378 * libtiff/tif_jpeg.c: add compatibility with libjpeg-turbo 1.5.2 that
9379 honours max_memory_to_use > 0.
9380 Cf https://github.com/libjpeg-turbo/libjpeg-turbo/issues/162
9381
9382 2017-10-10 Even Rouault <even.rouault at spatialys.com>
9383
9384 * nmake.opt: support a DEBUG=1 option, so as to adjust OPTFLAGS and use
9385 /MDd runtime in debug mode.
9386
9387 2017-10-01 Even Rouault <even.rouault at spatialys.com>
9388
9389 * tools/tiffset.c: fix setting a single value for the ExtraSamples tag
9390 (and other tags with variable number of values).
9391 So 'tiffset -s ExtraSamples 1 X'. This only worked
9392 when setting 2 or more values, but not just one.
9393
9394 2017-09-29 Even Rouault <even.rouault at spatialys.com>
9395
9396 * libtiff/libtiff.def: add TIFFReadRGBAStripExt and TIFFReadRGBATileExt
9397 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2735
9398
9399 2017-09-09 Even Rouault <even.rouault at spatialys.com>
9400
9401 * libtiff/tif_dirread.c: add NULL check to avoid likely false positive
9402 null-pointer dereference warning by CLang Static Analyzer.
9403
9404 2017-09-07 Even Rouault <even.rouault at spatialys.com>
9405
9406 * libtiff/tiffiop.h, tif_aux.c: redirect SeekOK() macro to a _TIFFSeekoK()
9407 function that checks if the offset is not bigger than INT64_MAX, so as
9408 to avoid a -1 error return code of TIFFSeekFile() to match a required
9409 seek to UINT64_MAX/-1.
9410 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2726
9411 Adapted from proposal by Nicolas Ruff.
9412
9413 2017-08-29 Even Rouault <even.rouault at spatialys.com>
9414
9415 * libtiff/tif_jpeg.c: accept reading the last strip of a JPEG compressed
9416 file if the codestream height is larger than the truncated height of the
9417 strip. Emit a warning in this situation since this is non compliant.
9418
9419 2017-08-28 Even Rouault <even.rouault at spatialys.com>
9420
9421 * test/Makefile.am: add missing reference to images/quad-lzw-compat.tiff
9422 to fix "make distcheck". Patch by Roger Leigh
9423
9424 2017-08-23 Even Rouault <even.rouault at spatialys.com>
9425
9426 * libtiff/tif_dirwrite.c: replace assertion to tag value not fitting
9427 on uint32 when selecting the value of SubIFD tag by runtime check
9428 (in TIFFWriteDirectoryTagSubifd()).
9429 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2728
9430 Reported by team OWL337
9431
9432 2017-08-23 Even Rouault <even.rouault at spatialys.com>
9433
9434 * libtiff/tif_dirwrite.c: replace assertion related to not finding the
9435 SubIFD tag by runtime check (in TIFFWriteDirectorySec())
9436 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2727
9437 Reported by team OWL337
9438
9439 2017-07-24 Even Rouault <even.rouault at spatialys.com>
9440
9441 * libtiff/tif_luv.c: further reduce memory requirements for temporary
9442 buffer when RowsPerStrip >= image_length in LogLuvInitState() and
9443 LogL16InitState().
9444 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2700
9445 Credit to OSS Fuzz
9446
9447 2017-07-24 Even Rouault <even.rouault at spatialys.com>
9448
9449 * libtiff/tif_getimage.c: fix fromskew computation when to-be-skipped
9450 pixel number is not a multiple of the horizontal subsampling, and
9451 also in some other cases. Impact putcontig8bitYCbCr44tile,
9452 putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile,
9453 putcontig8bitYCbCr21tile and putcontig8bitYCbCr12tile
9454 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2637 (discovered
9455 by Agostino Sarubbo)
9456 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2691 (credit
9457 to OSS Fuzz)
9458
9459 2017-07-24 Even Rouault <even.rouault at spatialys.com>
9460
9461 * libtiff/tif_getimage.c: gtTileContig() and gtTileSeparate():
9462 properly break from loops on error when stoponerr is set, instead
9463 of going on iterating on row based loop.
9464
9465 2017-07-18 Even Rouault <even.rouault at spatialys.com>
9466
9467 * libtiff/tif_luv.c: LogLuvInitState(): avoid excessive memory
9468 allocation when RowsPerStrip tag is missing.
9469 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2683
9470 Credit to OSS-Fuzz
9471
9472 2017-07-15 Even Rouault <even.rouault at spatialys.com>
9473
9474 * libtiff/tif_read.c: add protection against excessive memory
9475 allocation attempts in TIFFReadDirEntryArray() on short files.
9476 Effective for mmap'ed case. And non-mmap'ed case, but restricted
9477 to 64bit builds.
9478 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2675
9479
9480 2017-07-15 Even Rouault <even.rouault at spatialys.com>
9481
9482 * libtiff/tif_read.c: in TIFFFetchStripThing(), only grow the
9483 arrays that hold StripOffsets/StripByteCounts, when they are smaller
9484 than the expected number of striles, up to 1 million striles, and
9485 error out beyond. Can be tweaked by setting the environment variable
9486 LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT.
9487 This partially goes against a change added on 2002-12-17 to accept
9488 those arrays of wrong sizes, but is needed to avoid denial of services.
9489 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2350
9490 Credit to OSS Fuzz
9491
9492 2017-07-15 Even Rouault <even.rouault at spatialys.com>
9493
9494 * libtiff/tif_read.c: TIFFFillStrip() / TIFFFillTile().
9495 Complementary fix for http://bugzilla.maptools.org/show_bug.cgi?id=2708
9496 in the isMapped() case, so as to avoid excessive memory allocation
9497 when we need a temporary buffer but the file is truncated.
9498
9499 2017-07-15 Even Rouault <even.rouault at spatialys.com>
9500
9501 * tools/tiff2pdf.c: prevent heap buffer overflow write in "Raw"
9502 mode on PlanarConfig=Contig input images.
9503 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2715
9504 Reported by team OWL337
9505
9506 2017-07-11 Even Rouault <even.rouault at spatialys.com>
9507
9508 * libtiff/tif_dir.c: avoid potential null pointer dereference in
9509 _TIFFVGetField() on corrupted TIFFTAG_NUMBEROFINKS tag instance.
9510 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2713
9511
9512 2017-07-11 Even Rouault <even.rouault at spatialys.com>
9513
9514 * libtiff/tif_lzw.c: fix potential out-of-buffer read on 1-byte LZW
9515 strips. Crashing issue only on memory mapped files, where the strip
9516 offset is the last byte of the file, and the file size is a multiple
9517 of one page size on the CPU architecture (typically 4096). Credit
9518 to myself :-)
9519
9520 2017-07-11 Even Rouault <even.rouault at spatialys.com>
9521
9522 * test/tiffcp-lzw-compat.sh, test/images/quad-lzw-compat.tiff: new files
9523 to test old-style LZW decompression
9524 * test/common.sh, Makefile.am, CMakeList.txt: updated with above
9525
9526 2017-07-11 Even Rouault <even.rouault at spatialys.com>
9527
9528 * refresh autoconf/make stuff with what is on Ubuntu 16.04 (minor changes)
9529
9530 2017-07-11 Even Rouault <even.rouault at spatialys.com>
9531
9532 * libtiff/tif_lzw.c: fix 4.0.8 regression in the decoding of old-style LZW
9533 compressed files.
9534
9535 2017-07-10 Even Rouault <even.rouault at spatialys.com>
9536
9537 * libtiff/tif_pixarlog.c: avoid excessive memory allocation on decoding
9538 when RowsPerStrip tag is not defined (and thus td_rowsperstrip == UINT_MAX)
9539 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2554
9540 Credit to OSS Fuzz
9541
9542 2017-07-04 Even Rouault <even.rouault at spatialys.com>
9543
9544 * libtiff/tif_read.c, tiffiop.h: add a _TIFFReadEncodedTileAndAllocBuffer()
9545 and _TIFFReadTileAndAllocBuffer() variants of TIFFReadEncodedTile() and
9546 TIFFReadTile() that allocates the decoded buffer only after a first
9547 successful TIFFFillTile(). This avoids excessive memory allocation
9548 on corrupted files.
9549 * libtiff/tif_getimage.c: use _TIFFReadTileAndAllocBuffer().
9550 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2470
9551 Credit to OSS Fuzz.
9552
9553 2017-07-04 Even Rouault <even.rouault at spatialys.com>
9554
9555 * libtiff/tif_error.c, tif_warning.c: correctly use va_list when both
9556 an old-style and new-style warning/error handlers are installed.
9557 Patch by Paavo Helde (sent on the mailing list)
9558
9559 2017-07-02 Even Rouault <even.rouault at spatialys.com>
9560
9561 * libtiff/tif_read.c: TIFFStartTile(): set tif_rawcc to
9562 tif_rawdataloaded when it is set. Similarly to TIFFStartStrip().
9563 This issue was revealed by the change of 2017-06-30 in TIFFFileTile(),
9564 limiting the number of bytes read. But it could probably have been hit
9565 too in CHUNKY_STRIP_READ_SUPPORT mode previously ?
9566 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2454
9567 Credit to OSS Fuzz
9568
9569 2017-06-30 Even Rouault <even.rouault at spatialys.com>
9570
9571 * man: update documentation regarding SubIFD tag and
9572 TIFFSetSubDirectory() data type.
9573 Patch by Eric Piel
9574 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2671
9575
9576 2017-06-30 Even Rouault <even.rouault at spatialys.com>
9577
9578 * libtiff/tif_dirwrite.c: in TIFFWriteDirectoryTagCheckedXXXX()
9579 functions associated with LONG8/SLONG8 data type, replace assertion that
9580 the file is BigTIFF, by a non-fatal error.
9581 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2712
9582 Reported by team OWL337
9583
9584 2017-06-30 Even Rouault <even.rouault at spatialys.com>
9585
9586 * libtiff/tif_read.c, tiffiop.h: add a _TIFFReadEncodedStripAndAllocBuffer()
9587 function, variant of TIFFReadEncodedStrip() that allocates the
9588 decoded buffer only after a first successful TIFFFillStrip(). This avoids
9589 excessive memory allocation on corrupted files.
9590 * libtiff/tif_getimage.c: use _TIFFReadEncodedStripAndAllocBuffer().
9591 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2708 and
9592 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2433 .
9593 Credit to OSS Fuzz
9594
9595 2017-06-30 Even Rouault <even.rouault at spatialys.com>
9596
9597 * libtiff/tif_read.c: TIFFFillTile(): add limitation to the number
9598 of bytes read in case td_stripbytecount[strip] is bigger than
9599 reasonable, so as to avoid excessive memory allocation (similarly to
9600 what was done for TIFFFileStrip() on 2017-05-10)
9601
9602 2017-06-29 Even Rouault <even.rouault at spatialys.com>
9603
9604 * libtiff/tiffiop.h, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c,
9605 libtiff/tif_read.c: make TIFFReadScanline() works in
9606 CHUNKY_STRIP_READ_SUPPORT mode with JPEG stream with multiple scans.
9607 Also make configurable through a LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER
9608 environment variable the maximum number of scans allowed. Defaults to
9609 100.
9610
9611 2017-06-27 Even Rouault <even.rouault at spatialys.com>
9612
9613 * libtiff/tif_dirread.c: in TIFFReadDirEntryFloat(), check that a
9614 double value can fit in a float before casting. Patch by Nicolas RUFF
9615
9616 2017-06-26 Even Rouault <even.rouault at spatialys.com>
9617
9618 * libtiff/tif_jbig.c: fix memory leak in error code path of JBIGDecode()
9619 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2706
9620 Reported by team OWL337
9621
9622 2017-06-24 Even Rouault <even.rouault at spatialys.com>
9623
9624 * libtiff/tif_jpeg.c: error out at decoding time if anticipated libjpeg
9625 memory allocation is above 100 MB. libjpeg in case of multiple scans,
9626 which is allowed even in baseline JPEG, if components are spread over several
9627 scans and not interleavedin a single one, needs to allocate memory (or
9628 backing store) for the whole strip/tile.
9629 See http://www.libjpeg-turbo.org/pmwiki/uploads/About/TwoIssueswiththeJPEGStandard.pdf
9630 This limitation may be overridden by setting the
9631 LIBTIFF_ALLOW_LARGE_LIBJPEG_MEM_ALLOC environment variable, or recompiling
9632 libtiff with a custom value of TIFF_LIBJPEG_LARGEST_MEM_ALLOC macro.
9633
9634 2017-06-24 Even Rouault <even.rouault at spatialys.com>
9635
9636 * libtiff/tif_jpeg.c: add anti-denial of service measure to avoid excessive
9637 CPU consumption on progressive JPEGs with a huge number of scans.
9638 See http://www.libjpeg-turbo.org/pmwiki/uploads/About/TwoIssueswiththeJPEGStandard.pdf
9639 Note: only affects libtiff since 2014-12-29 where support of non-baseline JPEG
9640 was added.
9641
9642 2017-06-18 Even Rouault <even.rouault at spatialys.com>
9643
9644 * libtiff/tiffiop.h: add TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW macro to
9645 disable CLang warnings raised by -fsanitize=undefined,unsigned-integer-overflow
9646 * libtiff/tif_predict.c: decorate legitimate functions where unsigned int
9647 overflow occur with TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
9648 * libtiff/tif_dirread.c: avoid unsigned int overflow in EstimateStripByteCounts()
9649 and BYTECOUNTLOOKSBAD when file is too short.
9650 * libtiff/tif_jpeg.c: avoid (harmless) unsigned int overflow on tiled images.
9651 * libtiff/tif_fax3.c: avoid unsigned int overflow in Fax3Encode2DRow(). Could
9652 potentially be a bug with huge rows.
9653 * libtiff/tif_getimage.c: avoid many (harmless) unsigned int overflows.
9654
9655 2017-06-12 Even Rouault <even.rouault at spatialys.com>
9656
9657 * libtiff/tif_dirread.c: TIFFFetchStripThing(): limit the number of items
9658 read in StripOffsets/StripByteCounts tags to the number of strips to avoid
9659 excessive memory allocation.
9660 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2215
9661 Credit to OSS Fuzz
9662
9663 2017-06-12 Even Rouault <even.rouault at spatialys.com>
9664
9665 * libtiff/tif_dirread.c: fix regression of libtiff 4.0.8 in
9666 ChopUpSingleUncompressedStrip() regarding update of newly single-strip
9667 uncompressed files whose bytecount is 0. Before the change of 2016-12-03,
9668 the condition bytecount==0 used to trigger an early exit/disabling of
9669 strip chop. Re-introduce that in update mode. Otherwise this cause
9670 later incorrect setting for the value of StripByCounts/StripOffsets.
9671 ( https://trac.osgeo.org/gdal/ticket/6924 )
9672
9673 2017-06-10 Even Rouault <even.rouault at spatialys.com>
9674
9675 * .appveyor.yml, .travis.yml, build/travis-ci: apply patches
9676 0001-ci-Travis-script-improvements.patch and
9677 0002-ci-Invoke-helper-script-via-shell.patch by Roger Leigh
9678 (sent to mailing list)
9679
9680 2017-06-08 Even Rouault <even.rouault at spatialys.com>
9681
9682 * .travis.yml, build/travis-ci: new files from
9683 0001-ci-Add-Travis-support-for-Linux-builds-with-Autoconf.patch by
9684 Roger Leigh (sent to mailing list on 2017-06-08)
9685 This patch adds support for the Travis-CI service.
9686
9687 * .appveyor.yml: new file from
9688 0002-ci-Add-AppVeyor-support.patch by Roger Leigh (sent to mailing
9689 list on 2017-06-08)
9690 This patch adds a .appveyor.yml file to the top-level. This allows
9691 one to opt in to having a branch built on Windows with Cygwin,
9692 MinGW and MSVC automatically when a branch is pushed to GitHub,
9693 GitLab, BitBucket or any other supported git hosting service.
9694
9695 * CMakeLists.txt, test/CMakeLists.txt, test/TiffTestCommon.cmake: apply
9696 patch 0001-cmake-Improve-Cygwin-and-MingGW-test-support.patch from Roger
9697 Leigh (sent to mailing list on 2017-06-08)
9698 This patch makes the CMake build system support running the tests
9699 with MinGW or Cygwin.
9700
9701 2017-06-08 Even Rouault <even.rouault at spatialys.com>
9702
9703 * libtiff/tif_swab.c: if DISABLE_CHECK_TIFFSWABMACROS is defined, do not do
9704 the #ifdef TIFFSwabXXX checks. Make it easier for GDAL to rename the symbols
9705 of its internal libtiff copy.
9706
9707 2017-06-01 Even Rouault <even.rouault at spatialys.com>
9708
9709 * libtiff/tif_dirinfo.c, tif_dirread.c: add _TIFFCheckFieldIsValidForCodec(),
9710 and use it in TIFFReadDirectory() so as to ignore fields whose tag is a
9711 codec-specified tag but this codec is not enabled. This avoids TIFFGetField()
9712 to behave differently depending on whether the codec is enabled or not, and
9713 thus can avoid stack based buffer overflows in a number of TIFF utilities
9714 such as tiffsplit, tiffcmp, thumbnail, etc.
9715 Patch derived from 0063-Handle-properly-CODEC-specific-tags.patch
9716 (http://bugzilla.maptools.org/show_bug.cgi?id=2580) by Raphaël Hertzog.
9717 Fixes:
9718 http://bugzilla.maptools.org/show_bug.cgi?id=2580
9719 http://bugzilla.maptools.org/show_bug.cgi?id=2693
9720 http://bugzilla.maptools.org/show_bug.cgi?id=2625 (CVE-2016-10095)
9721 http://bugzilla.maptools.org/show_bug.cgi?id=2564 (CVE-2015-7554)
9722 http://bugzilla.maptools.org/show_bug.cgi?id=2561 (CVE-2016-5318)
9723 http://bugzilla.maptools.org/show_bug.cgi?id=2499 (CVE-2014-8128)
9724 http://bugzilla.maptools.org/show_bug.cgi?id=2441
9725 http://bugzilla.maptools.org/show_bug.cgi?id=2433
9726
9727 2017-05-29 Even Rouault <even.rouault at spatialys.com>
9728
9729 * libtiff/tif_getimage.c: initYCbCrConversion(): stricter validation for
9730 refBlackWhite coefficients values. To avoid invalid float->int32 conversion
9731 (when refBlackWhite[0] == 2147483648.f)
9732 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1907
9733 Credit to OSS Fuzz
9734
9735 2017-05-29 Even Rouault <even.rouault at spatialys.com>
9736
9737 * libtiff/tif_color.c: TIFFYCbCrToRGBInit(): stricter clamping to avoid
9738 int32 overflow in TIFFYCbCrtoRGB().
9739 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1844
9740 Credit to OSS Fuzz
9741
9742 2017-05-21 Bob Friesenhahn <[email protected]>
9743
9744 * configure.ac: libtiff 4.0.8 released.
9745
9746 * html/v4.0.8.html: Add description of changes targeting the 4.0.8
9747 release.
9748
9749 2017-05-20 Even Rouault <even.rouault at spatialys.com>
9750
9751 * libtiff/tif_getimage.c: initYCbCrConversion(): stricter validation for
9752 refBlackWhite coefficients values. To avoid invalid float->int32 conversion.
9753 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1718
9754 Credit to OSS Fuzz
9755
9756 2017-05-18 Even Rouault <even.rouault at spatialys.com>
9757
9758 * libtiff/tif_getimage.c: initYCbCrConversion(): check luma[1] is not zero
9759 to avoid division by zero.
9760 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1665
9761 Credit to OSS Fuzz
9762
9763 2017-05-17 Even Rouault <even.rouault at spatialys.com>
9764
9765 * libtiff/tif_read.c: _TIFFVSetField(): fix outside range cast of double to
9766 float.
9767 Credit to Google Autofuzz project
9768
9769 2017-05-17 Even Rouault <even.rouault at spatialys.com>
9770
9771 * libtiff/tif_getimage.c: initYCbCrConversion(): add basic validation of
9772 luma and refBlackWhite coefficients (just check they are not NaN for now),
9773 to avoid potential float to int overflows.
9774 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1663
9775 Credit to OSS Fuzz
9776
9777 2017-05-17 Even Rouault <even.rouault at spatialys.com>
9778
9779 * libtiff/tif_pixarlog.c: PixarLogDecode(): resync tif_rawcp with
9780 next_in and tif_rawcc with avail_in at beginning and end of function,
9781 similarly to what is done in LZWDecode(). Likely needed so that it
9782 works properly with latest chnges in tif_read.c in CHUNKY_STRIP_READ_SUPPORT
9783 mode. But untested...
9784
9785 2017-05-17 Even Rouault <even.rouault at spatialys.com>
9786
9787 * libtiff/tif_lzw.c: update dec_bitsleft at beginning of LZWDecode(),
9788 and update tif_rawcc at end of LZWDecode(). This is needed to properly
9789 work with the latest chnges in tif_read.c in CHUNKY_STRIP_READ_SUPPORT
9790 mode.
9791
9792 2017-05-14 Even Rouault <even.rouault at spatialys.com>
9793
9794 * libtiff/tif_luv.c: LogL16InitState(): avoid excessive memory
9795 allocation when RowsPerStrip tag is missing.
9796 Credit to OSS-Fuzz (locally run, on GDAL)
9797
9798 2017-05-14 Even Rouault <even.rouault at spatialys.com>
9799
9800 * libtiff/tif_packbits.c: fix out-of-buffer read in PackBitsDecode()
9801 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1563
9802 Credit to OSS-Fuzz
9803
9804 2017-05-13 Even Rouault <even.rouault at spatialys.com>
9805
9806 * libtiff/tif_pixarlog.c, tif_luv.c: avoid potential int32
9807 overflows in multiply_ms() and add_ms().
9808 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1558
9809 Credit to OSS-Fuzz
9810
9811 2017-05-13 Even Rouault <even.rouault at spatialys.com>
9812
9813 * libtiff/tif_color.c: avoid potential int32 overflow in
9814 TIFFYCbCrToRGBInit()
9815 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1533
9816 Credit to OSS-Fuzz
9817
9818 2017-05-13 Even Rouault <even.rouault at spatialys.com>
9819
9820 * libtiff/tif_read.c: update tif_rawcc in CHUNKY_STRIP_READ_SUPPORT
9821 mode with tif_rawdataloaded when calling TIFFStartStrip() or
9822 TIFFFillStripPartial(). This avoids reading beyond tif_rawdata
9823 when bytecount > tif_rawdatasize.
9824 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1545.
9825 Credit to OSS-Fuzz
9826
9827 2017-05-12 Even Rouault <even.rouault at spatialys.com>
9828
9829 * libtiff/tif_read.c: TIFFFillStripPartial():
9830 avoid excessive memory allocation in case of shorten files.
9831 Only effective on 64 bit builds.
9832 Credit to OSS-Fuzz (locally run, on GDAL)
9833
9834 2017-05-12 Even Rouault <even.rouault at spatialys.com>
9835
9836 * libtiff/tif_read.c: TIFFFillStripPartial() / TIFFSeek(),
9837 avoid potential integer overflows with read_ahead in
9838 CHUNKY_STRIP_READ_SUPPORT mode. Should
9839 especially occur on 32 bit platforms.
9840
9841 2017-05-10 Even Rouault <even.rouault at spatialys.com>
9842
9843 * libtiff/tif_read.c: TIFFFillStrip() and TIFFFillTile():
9844 avoid excessive memory allocation in case of shorten files.
9845 Only effective on 64 bit builds and non-mapped cases.
9846 Credit to OSS-Fuzz (locally run, on GDAL)
9847
9848 2017-05-10 Even Rouault <even.rouault at spatialys.com>
9849
9850 * libtiff/tif_zip.c, tif_pixarlog.c, tif_predict.c: fix memory
9851 leak when the underlying codec (ZIP, PixarLog) succeeds its
9852 setupdecode() method, but PredictorSetup fails.
9853 Credit to OSS-Fuzz (locally run, on GDAL)
9854
9855 2017-05-10 Even Rouault <even.rouault at spatialys.com>
9856
9857 * libtiff/tif_read.c: TIFFFillStrip(): add limitation to the number
9858 of bytes read in case td_stripbytecount[strip] is bigger than
9859 reasonable, so as to avoid excessive memory allocation.
9860
9861 2017-04-28 Even Rouault <even.rouault at spatialys.com>
9862
9863 * tools/tiff2bw.c: close TIFF handle in error code path.
9864 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2677
9865
9866 2017-04-27 Even Rouault <even.rouault at spatialys.com>
9867
9868 * litiff/tif_fax3.c: avoid crash in Fax3Close() on empty file.
9869 Patch by Alan Coopersmith + complement by myself.
9870 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2673
9871 * tools/fax2tiff.c: emit appropriate message if the input file is
9872 empty. Patch by Alan Coopersmith.
9873 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2672
9874
9875 2017-04-27 Even Rouault <even.rouault at spatialys.com>
9876
9877 * libtiff/tif_ojpeg.c: fix potential memory leak in
9878 OJPEGReadHeaderInfoSecTablesQTable, OJPEGReadHeaderInfoSecTablesDcTable
9879 and OJPEGReadHeaderInfoSecTablesAcTable
9880 Patch by Nicolás Peña.
9881 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2670
9882
9883 2017-04-27 Even Rouault <even.rouault at spatialys.com>
9884
9885 * libtiff/tif_dirread.c: fix memory leak in non DEFER_STRILE_LOAD
9886 mode (ie default) when there is both a StripOffsets and
9887 TileOffsets tag, or a StripByteCounts and TileByteCounts
9888 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2689
9889 * tools/tiff2ps.c: call TIFFClose() in error code paths.
9890
9891 2017-02-25 Even Rouault <even.rouault at spatialys.com>
9892
9893 * libtiff/tif_fax3.c, tif_predict.c, tif_getimage.c: fix GCC 7
9894 -Wimplicit-fallthrough warnings.
9895
9896 2017-02-18 Even Rouault <even.rouault at spatialys.com>
9897
9898 * libtiff/tif_pixarlog.c: fix memory leak in error code path of
9899 PixarLogSetupDecode(). Patch by Nicolás Peña.
9900 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2665
9901
9902 2017-02-18 Even Rouault <even.rouault at spatialys.com>
9903
9904 * libtiff/tif_lzw.c: in LZWPostEncode(), increase, if necessary, the
9905 code bit-width after flushing the remaining code and before emitting
9906 the EOI code.
9907 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=1982
9908
9909 2017-01-31 Even Rouault <even.rouault at spatialys.com>
9910
9911 * libtiff/tif_jpeg.c: only run JPEGFixupTagsSubsampling() if the
9912 YCbCrSubsampling tag is not explicitly present. This helps a bit to reduce
9913 the I/O amount when the tag is present (especially on cloud hosted files).
9914
9915 2017-01-14 Even Rouault <even.rouault at spatialys.com>
9916
9917 * tools/raw2tiff.c: avoid integer division by zero.
9918 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2631
9919
9920 2017-01-12 Even Rouault <even.rouault at spatialys.com>
9921
9922 * libtiff/tif_ojpeg.c: fix leak in OJPEGReadHeaderInfoSecTablesQTable,
9923 OJPEGReadHeaderInfoSecTablesDcTable and OJPEGReadHeaderInfoSecTablesAcTable
9924 when read fails.
9925 Patch by Nicolás Peña.
9926 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2659
9927
9928 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9929
9930 * libtiff/tif_luv.c, tif_lzw.c, tif_packbits.c: return 0 in Encode
9931 functions instead of -1 when TIFFFlushData1() fails.
9932 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2130
9933
9934 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9935
9936 * tools/tiffcp.c: error out cleanly in cpContig2SeparateByRow and
9937 cpSeparate2ContigByRow if BitsPerSample != 8 to avoid heap based overflow.
9938 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2656 and
9939 http://bugzilla.maptools.org/show_bug.cgi?id=2657
9940
9941 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9942
9943 * libtiff/tiffio.h, tif_unix.c, tif_win32.c, tif_vms.c: add _TIFFcalloc()
9944
9945 * libtiff/tif_read.c: TIFFReadBufferSetup(): use _TIFFcalloc() to zero
9946 initialize tif_rawdata.
9947 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2651
9948
9949 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9950
9951 * libtiff/tif_getimage.c: add explicit uint32 cast in putagreytile to
9952 avoid UndefinedBehaviorSanitizer warning.
9953 Patch by Nicolás Peña.
9954 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2658
9955
9956 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9957
9958 * libtiff/tif_read.c: avoid potential undefined behaviour on signed integer
9959 addition in TIFFReadRawStrip1() in isMapped() case.
9960 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2650
9961
9962 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9963
9964 * libtiff/tif_jpeg.c: validate BitsPerSample in JPEGSetupEncode() to avoid
9965 undefined behaviour caused by invalid shift exponent.
9966 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2648
9967
9968 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9969
9970 * libtiff/tif_dir.c, tif_dirread.c, tif_dirwrite.c: implement various clampings
9971 of double to other data types to avoid undefined behaviour if the output range
9972 isn't big enough to hold the input value.
9973 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2643
9974 http://bugzilla.maptools.org/show_bug.cgi?id=2642
9975 http://bugzilla.maptools.org/show_bug.cgi?id=2646
9976 http://bugzilla.maptools.org/show_bug.cgi?id=2647
9977
9978 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9979
9980 * libtiff/tif_dirread.c: avoid division by floating point 0 in
9981 TIFFReadDirEntryCheckedRational() and TIFFReadDirEntryCheckedSrational(),
9982 and return 0 in that case (instead of infinity as before presumably)
9983 Apparently some sanitizers do not like those divisions by zero.
9984 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2644
9985
9986 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9987
9988 * libtiff/tif_dirwrite.c: in TIFFWriteDirectoryTagCheckedRational, replace
9989 assertion by runtime check to error out if passed value is strictly
9990 negative.
9991 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2535
9992
9993 * tools/tiffcrop.c: remove extraneous TIFFClose() in error code path, that
9994 caused double free.
9995 Related to http://bugzilla.maptools.org/show_bug.cgi?id=2535
9996
9997 2017-01-11 Even Rouault <even.rouault at spatialys.com>
9998
9999 * libtiff/tif_jpeg.c: avoid integer division by zero in
10000 JPEGSetupEncode() when horizontal or vertical sampling is set to 0.
10001 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2653
10002
10003 2017-01-03 Even Rouault <even.rouault at spatialys.com>
10004
10005 * libtiff/tif_jpeg.c: increase libjpeg max memory usable to
10006 10 MB instead of libjpeg 1MB default. This helps when creating files
10007 with "big" tile, without using libjpeg temporary files.
10008 Related to https://trac.osgeo.org/gdal/ticket/6757
10009
10010 2016-12-20 Even Rouault <even.rouault at spatialys.com>
10011
10012 * tools/tiff2pdf.c: avoid potential heap-based overflow in
10013 t2p_readwrite_pdf_image_tile().
10014 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2640
10015
10016 2016-12-20 Even Rouault <even.rouault at spatialys.com>
10017
10018 * tools/tiff2pdf.c: avoid potential invalid memory read in
10019 t2p_writeproc.
10020 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2639
10021
10022 2016-12-20 Even Rouault <even.rouault at spatialys.com>
10023
10024 * tools/tiff2pdf.c: fix wrong usage of memcpy() that can trigger
10025 unspecified behaviour.
10026 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2638
10027
10028 2016-12-18 Even Rouault <even.rouault at spatialys.com>
10029
10030 * libtiff/tif_getimage.c: fix potential memory leaks in error code
10031 path of TIFFRGBAImageBegin().
10032 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2627
10033
10034 2016-12-18 Even Rouault <even.rouault at spatialys.com>
10035
10036 * tools/tiff2pdf.c: prevent heap-based buffer overflow in -j mode
10037 on a paletted image. Note: this fix errors out before the overflow
10038 happens. There could probably be a better fix.
10039 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2635
10040
10041 2016-12-17 Even Rouault <even.rouault at spatialys.com>
10042
10043 * libtiff/tiffio.h, libtiff/tif_getimage.c: add TIFFReadRGBAStripExt()
10044 and TIFFReadRGBATileExt() variants of the functions without ext, with
10045 an extra argument to control the stop_on_error behaviour.
10046
10047 2016-12-17 Even Rouault <even.rouault at spatialys.com>
10048
10049 * tools/tiff2ps.c: fix 2 heap-based buffer overflows (in PSDataBW
10050 and PSDataColorContig). Reported by Agostino Sarubbo.
10051 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2633 and
10052 http://bugzilla.maptools.org/show_bug.cgi?id=2634.
10053
10054 2016-12-13 Even Rouault <even.rouault at spatialys.com>
10055
10056 * libtiff/tif_fax3.h: revert change done on 2016-01-09 that made
10057 Param member of TIFFFaxTabEnt structure a uint16 to reduce size of
10058 the binary. It happens that the Hylafax software uses the tables that
10059 follow this typedef (TIFFFaxMainTable, TIFFFaxWhiteTable,
10060 TIFFFaxBlackTable), although they are not in a public libtiff header.
10061 Raised by Lee Howard.
10062 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2636
10063
10064 2016-12-04 Even Rouault <even.rouault at spatialys.com>
10065
10066 * html/man/Makefile.am: remove thumbnail.1.html and rgb2ycbcr.1.html
10067 from installed pages since the corresponding utilities are no longer
10068 installed. Reported by Havard Eidnes
10069 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2606
10070
10071 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10072
10073 * libtiff/tif_write.c: fix misleading indentation as warned by GCC.
10074
10075 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10076
10077 * tools/tiffcp.c: replace assert( (bps % 8) == 0 ) by a non assert check.
10078 Reported by Agostino Sarubbo.
10079 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2605
10080
10081 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10082
10083 * tools/tiffcp.c: fix uint32 underflow/overflow that can cause heap-based
10084 buffer overflow.
10085 Reported by Agostino Sarubbo.
10086 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2610
10087
10088 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10089
10090 * tools/tiffcp.c: avoid potential division by zero is BitsPerSamples tag is
10091 missing.
10092 Reported by Agostino Sarubbo.
10093 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2607
10094
10095 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10096
10097 * man/Makefile.am: remove thumbnail.1 and rgb2ycbcr.1 from installed man
10098 pages since the corresponding utilities are no longer installed.
10099 Reported by Havard Eidnes
10100 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2606
10101
10102 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10103
10104 * tools/tif_dir.c: when TIFFGetField(, TIFFTAG_NUMBEROFINKS, ) is called,
10105 limit the return number of inks to SamplesPerPixel, so that code that parses
10106 ink names doesn't go past the end of the buffer.
10107 Reported by Agostino Sarubbo.
10108 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2599
10109
10110 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10111
10112 * tools/tiffcp.c: avoid potential division by zero is BitsPerSamples tag is
10113 missing.
10114 Reported by Agostino Sarubbo.
10115 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2597
10116
10117 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10118
10119 * tools/tiffinfo.c: fix null pointer dereference in -r mode when the image has
10120 no StripByteCount tag.
10121 Reported by Agostino Sarubbo.
10122 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2594
10123
10124 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10125
10126 * tools/tiffcrop.c: fix integer division by zero when BitsPerSample is missing.
10127 Reported by Agostino Sarubbo.
10128 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2619
10129
10130 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10131
10132 * tools/tiffcrop.c: add 3 extra bytes at end of strip buffer in
10133 readSeparateStripsIntoBuffer() to avoid read outside of heap allocated buffer.
10134 Reported by Agostino Sarubbo.
10135 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2621
10136
10137 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10138
10139 * tools/tiffcrop.c: fix readContigStripsIntoBuffer() in -i (ignore) mode so
10140 that the output buffer is correctly incremented to avoid write outside bounds.
10141 Reported by Agostino Sarubbo.
10142 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2620
10143
10144 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10145
10146 * libtiff/tif_ojpeg.c: make OJPEGDecode() early exit in case of failure in
10147 OJPEGPreDecode(). This will avoid a divide by zero, and potential other issues.
10148 Reported by Agostino Sarubbo.
10149 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2611
10150
10151 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10152
10153 * libtiff/tif_dirread.c: modify ChopUpSingleUncompressedStrip() to
10154 instantiate compute nstrips as TIFFhowmany_32(td->td_imagelength, rowsperstrip),
10155 instead of a logic based on the total size of data. Which is faulty is
10156 the total size of data is not sufficient to fill the whole image, and thus
10157 results in reading outside of the StripByCounts/StripOffsets arrays when
10158 using TIFFReadScanline().
10159 Reported by Agostino Sarubbo.
10160 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2608.
10161
10162 * libtiff/tif_strip.c: revert the change in TIFFNumberOfStrips() done
10163 for http://bugzilla.maptools.org/show_bug.cgi?id=2587 / CVE-2016-9273 since
10164 the above change is a better fix that makes it unnecessary.
10165
10166 2016-12-03 Even Rouault <even.rouault at spatialys.com>
10167
10168 * libtiff/tif_pixarlog.c, libtiff/tif_luv.c: fix heap-based buffer
10169 overflow on generation of PixarLog / LUV compressed files, with
10170 ColorMap, TransferFunction attached and nasty plays with bitspersample.
10171 The fix for LUV has not been tested, but suffers from the same kind
10172 of issue of PixarLog.
10173 Reported by Agostino Sarubbo.
10174 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2604
10175
10176 2016-12-02 Even Rouault <even.rouault at spatialys.com>
10177
10178 * tools/tiffcp.c: avoid uint32 underflow in cpDecodedStrips that
10179 can cause various issues, such as buffer overflows in the library.
10180 Reported by Agostino Sarubbo.
10181 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2598
10182
10183 2016-12-02 Even Rouault <even.rouault at spatialys.com>
10184
10185 * libtiff/tif_read.c, libtiff/tiffiop.h: fix uint32 overflow in
10186 TIFFReadEncodedStrip() that caused an integer division by zero.
10187 Reported by Agostino Sarubbo.
10188 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2596
10189
10190 2016-11-20 Even Rouault <even.rouault at spatialys.com>
10191
10192 * libtiff/tif_getimage.c, libtiff/tif_open.c: add parenthesis to
10193 fix cppcheck clarifyCalculation warnings
10194 * libtiff/tif_predict.c, libtiff/tif_print.c: fix printf unsigned
10195 vs signed formatting (cppcheck invalidPrintfArgType_uint warnings)
10196
10197 2016-11-20 Bob Friesenhahn <[email protected]>
10198
10199 * tools/fax2tiff.c (main): Applied patch by Jörg Ahrens to fix
10200 passing client data for Win32 builds using tif_win32.c
10201 (USE_WIN32_FILEIO defined) for file I/O. Patch was provided via
10202 email on November 20, 2016.
10203
10204 2016-11-19 Bob Friesenhahn <[email protected]>
10205
10206 * libtiff 4.0.7 released.
10207
10208 * configure.ac: Update for 4.0.7 release.
10209
10210 * tools/tiffdump.c (ReadDirectory): Remove uint32 cast to
10211 _TIFFmalloc() argument which resulted in Coverity report. Added
10212 more mutiplication overflow checks.
10213
10214 2016-11-18 Even Rouault <even.rouault at spatialys.com>
10215
10216 * tools/tiffcrop.c: Fix memory leak in (recent) error code path.
10217 Fixes Coverity 1394415.
10218
10219 2016-11-17 Bob Friesenhahn <[email protected]>
10220
10221 * libtiff/tif_getimage.c: Fix some benign warnings which appear in
10222 64-bit compilation under Microsoft Visual Studio of the form
10223 "Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit
10224 value. Results might not be an expected value.". Problem was
10225 reported on November 16, 2016 on the tiff mailing list.
10226
10227 2016-11-16 Even Rouault <even.rouault at spatialys.com>
10228
10229 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), do not dereference
10230 NULL pointer when values of tags with TIFF_SETGET_C16_ASCII / TIFF_SETGET_C32_ASCII
10231 access are 0-byte arrays.
10232 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2593 (regression introduced
10233 by previous fix done on 2016-11-11 for CVE-2016-9297).
10234 Reported by Henri Salo. Assigned as CVE-2016-9448
10235
10236 2016-11-12 Bob Friesenhahn <[email protected]>
10237
10238 * tools/tiffinfo.c (TIFFReadContigTileData): Fix signed/unsigned
10239 comparison warning.
10240 (TIFFReadSeparateTileData): Fix signed/unsigned comparison
10241 warning.
10242
10243 * tools/tiffcrop.c (readContigTilesIntoBuffer): Fix
10244 signed/unsigned comparison warning.
10245
10246 * html/v4.0.7.html: Add a file to document the pending 4.0.7
10247 release.
10248
10249 2016-11-11 Even Rouault <even.rouault at spatialys.com>
10250
10251 * tools/tiff2pdf.c: avoid undefined behaviour related to overlapping
10252 of source and destination buffer in memcpy() call in
10253 t2p_sample_rgbaa_to_rgb()
10254 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2577
10255
10256 2016-11-11 Even Rouault <even.rouault at spatialys.com>
10257
10258 * tools/tiff2pdf.c: fix potential integer overflows on 32 bit builds
10259 in t2p_read_tiff_size()
10260 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2576
10261
10262 2016-11-11 Even Rouault <even.rouault at spatialys.com>
10263
10264 * libtiff/tif_aux.c: fix crash in TIFFVGetFieldDefaulted()
10265 when requesting Predictor tag and that the zip/lzw codec is not
10266 configured.
10267 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2591
10268
10269 2016-11-11 Even Rouault <even.rouault at spatialys.com>
10270
10271 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make sure that
10272 values of tags with TIFF_SETGET_C16_ASCII / TIFF_SETGET_C32_ASCII
10273 access are null terminated, to avoid potential read outside buffer
10274 in _TIFFPrintField().
10275 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2590 (CVE-2016-9297)
10276
10277 2016-11-11 Even Rouault <even.rouault at spatialys.com>
10278
10279 * libtiff/tif_dirread.c: reject images with OJPEG compression that
10280 have no TileOffsets/StripOffsets tag, when OJPEG compression is
10281 disabled. Prevent null pointer dereference in TIFFReadRawStrip1()
10282 and other functions that expect td_stripbytecount to be non NULL.
10283 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2585
10284
10285 2016-11-11 Even Rouault <even.rouault at spatialys.com>
10286
10287 * tools/tiffcrop.c: fix multiple uint32 overflows in
10288 writeBufferToSeparateStrips(), writeBufferToContigTiles() and
10289 writeBufferToSeparateTiles() that could cause heap buffer overflows.
10290 Reported by Henri Salo from Nixu Corporation.
10291 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2592 (CVE-2016-9532)
10292
10293 2016-11-10 Even Rouault <even.rouault at spatialys.com>
10294
10295 * libtiff/tif_strip.c: make TIFFNumberOfStrips() return the td->td_nstrips
10296 value when it is non-zero, instead of recomputing it. This is needed in
10297 TIFF_STRIPCHOP mode where td_nstrips is modified. Fixes a read outsize of
10298 array in tiffsplit (or other utilities using TIFFNumberOfStrips()).
10299 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2587 (CVE-2016-9273)
10300
10301 2016-11-04 Even Rouault <even.rouault at spatialys.com>
10302
10303 * libtiff/tif_predic.c: fix memory leaks in error code paths added in
10304 previous commit (fix for MSVR 35105)
10305
10306 2016-10-31 Even Rouault <even.rouault at spatialys.com>
10307
10308 * libtiff/tif_predict.h, libtiff/tif_predict.c:
10309 Replace assertions by runtime checks to avoid assertions in debug mode,
10310 or buffer overflows in release mode. Can happen when dealing with
10311 unusual tile size like YCbCr with subsampling. Reported as MSVR 35105
10312 by Axel Souchet & Vishal Chauhan from the MSRC Vulnerabilities & Mitigations
10313 team.
10314
10315 2016-10-26 Even Rouault <even.rouault at spatialys.com>
10316
10317 * tools/fax2tiff.c: fix segfault when specifying -r without
10318 argument. Patch by Yuriy M. Kaminskiy.
10319 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2572
10320
10321 2016-10-25 Even Rouault <even.rouault at spatialys.com>
10322
10323 * libtiff/tif_dir.c: discard values of SMinSampleValue and
10324 SMaxSampleValue when they have been read and the value of
10325 SamplesPerPixel is changed afterwards (like when reading a
10326 OJPEG compressed image with a missing SamplesPerPixel tag,
10327 and whose photometric is RGB or YCbCr, forcing SamplesPerPixel
10328 being 3). Otherwise when rewriting the directory (for example
10329 with tiffset, we will expect 3 values whereas the array had been
10330 allocated with just one), thus causing a out of bound read access.
10331 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2500
10332 (CVE-2014-8127, duplicate: CVE-2016-3658)
10333
10334 * libtiff/tif_dirwrite.c: avoid null pointer dereference on td_stripoffset
10335 when writing directory, if FIELD_STRIPOFFSETS was artificially set
10336 for a hack case in OJPEG case.
10337 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2500
10338 (CVE-2014-8127, duplicate: CVE-2016-3658)
10339
10340 2016-10-25 Even Rouault <even.rouault at spatialys.com>
10341
10342 * tools/tiffinfo.c: fix out-of-bound read on some tiled images.
10343 (http://bugzilla.maptools.org/show_bug.cgi?id=2517)
10344
10345 * libtiff/tif_compress.c: make TIFFNoDecode() return 0 to indicate an
10346 error and make upper level read routines treat it accordingly.
10347 (linked to the test case of http://bugzilla.maptools.org/show_bug.cgi?id=2517)
10348
10349 2016-10-14 Even Rouault <even.rouault at spatialys.com>
10350
10351 * tools/tiffcrop.c: fix out-of-bound read of up to 3 bytes in
10352 readContigTilesIntoBuffer(). Reported as MSVR 35092 by Axel Souchet
10353 & Vishal Chauhan from the MSRC Vulnerabilities & Mitigations team.
10354
10355 2016-10-09 Even Rouault <even.rouault at spatialys.com>
10356
10357 * tools/tiff2pdf.c: fix write buffer overflow of 2 bytes on JPEG
10358 compressed images. Reported by Tyler Bohan of Cisco Talos as
10359 TALOS-CAN-0187 / CVE-2016-5652.
10360 Also prevents writing 2 extra uninitialized bytes to the file stream.
10361
10362 2016-10-08 Even Rouault <even.rouault at spatialys.com>
10363
10364 * tools/tiffcp.c: fix out-of-bounds write on tiled images with odd
10365 tile width vs image width. Reported as MSVR 35103
10366 by Axel Souchet and Vishal Chauhan from the MSRC Vulnerabilities &
10367 Mitigations team.
10368
10369 2016-10-08 Even Rouault <even.rouault at spatialys.com>
10370
10371 * tools/tiff2pdf.c: fix read -largely- outsize of buffer in
10372 t2p_readwrite_pdf_image_tile(), causing crash, when reading a
10373 JPEG compressed image with TIFFTAG_JPEGTABLES length being one.
10374 Reported as MSVR 35101 by Axel Souchet and Vishal Chauhan from
10375 the MSRC Vulnerabilities & Mitigations team. CVE-2016-9453
10376
10377 2016-10-08 Even Rouault <even.rouault at spatialys.com>
10378
10379 * tools/tiffcp.c: fix read of undefined variable in case of missing
10380 required tags. Found on test case of MSVR 35100.
10381 * tools/tiffcrop.c: fix read of undefined buffer in
10382 readContigStripsIntoBuffer() due to uint16 overflow. Probably not a
10383 security issue but I can be wrong. Reported as MSVR 35100 by Axel
10384 Souchet from the MSRC Vulnerabilities & Mitigations team.
10385
10386 2016-09-25 Bob Friesenhahn <[email protected]>
10387
10388 * html: Change as many remotesensing.org broken links to a working
10389 URL as possible.
10390
10391 2016-09-24 Bob Friesenhahn <[email protected]>
10392
10393 * libtiff/tif_getimage.c (TIFFRGBAImageOK): Reject attempts to
10394 read floating point images.
10395
10396 * libtiff/tif_predict.c (PredictorSetup): Enforce bits-per-sample
10397 requirements of floating point predictor (3). Fixes CVE-2016-3622
10398 "Divide By Zero in the tiff2rgba tool."
10399
10400 2016-09-23 Even Rouault <even.rouault at spatialys.com>
10401
10402 * tools/tiffcrop.c: fix various out-of-bounds write vulnerabilities
10403 in heap or stack allocated buffers. Reported as MSVR 35093,
10404 MSVR 35096 and MSVR 35097. Discovered by Axel Souchet and Vishal
10405 Chauhan from the MSRC Vulnerabilities & Mitigations team.
10406 * tools/tiff2pdf.c: fix out-of-bounds write vulnerabilities in
10407 heap allocate buffer in t2p_process_jpeg_strip(). Reported as MSVR
10408 35098. Discovered by Axel Souchet and Vishal Chauhan from the MSRC
10409 Vulnerabilities & Mitigations team.
10410 * libtiff/tif_pixarlog.c: fix out-of-bounds write vulnerabilities
10411 in heap allocated buffers. Reported as MSVR 35094. Discovered by
10412 Axel Souchet and Vishal Chauhan from the MSRC Vulnerabilities &
10413 Mitigations team.
10414 * libtiff/tif_write.c: fix issue in error code path of TIFFFlushData1()
10415 that didn't reset the tif_rawcc and tif_rawcp members. I'm not
10416 completely sure if that could happen in practice outside of the odd
10417 behaviour of t2p_seekproc() of tiff2pdf). The report points that a
10418 better fix could be to check the return value of TIFFFlushData1() in
10419 places where it isn't done currently, but it seems this patch is enough.
10420 Reported as MSVR 35095. Discovered by Axel Souchet & Vishal Chauhan &
10421 Suha Can from the MSRC Vulnerabilities & Mitigations team.
10422
10423 2016-09-20 Bob Friesenhahn <[email protected]>
10424
10425 * html/man/index.html: Comment out links to documentation for
10426 abandoned utilities.
10427
10428 2016-09-17 Even Rouault <even.rouault at spatialys.com>
10429
10430 * libtiff/tif_lzma.c: typo fix in comment
10431
10432 2016-09-04 Even Rouault <even.rouault at spatialys.com>
10433
10434 * libtiff/*.c: fix warnings raised by clang 3.9 -Wcomma
10435
10436 2016-09-03 Even Rouault <even.rouault at spatialys.com>
10437
10438 * libtiff/tif_dirwrite.c, libtiff/tif_color.c: fix warnings raised
10439 by GCC 5 / clang -Wfloat-conversion
10440
10441 2016-08-16 Even Rouault <even.rouault at spatialys.com>
10442
10443 * tools/tiffcrop.c: fix C99'ism.
10444
10445 2016-08-15 Even Rouault <even.rouault at spatialys.com>
10446
10447 * tools/tiff2bw.c: fix weight computation that could result of color
10448 value overflow (no security implication). Fix bugzilla #2550.
10449 Patch by Frank Freudenberg.
10450
10451 2016-08-15 Even Rouault <even.rouault at spatialys.com>
10452
10453 * tools/rgb2ycbcr.c: validate values of -v and -h parameters to
10454 avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569)
10455
10456 2016-08-15 Even Rouault <even.rouault at spatialys.com>
10457
10458 * tools/tiffcrop.c: Fix out-of-bounds write in loadImage().
10459 From patch libtiff-CVE-2016-3991.patch from
10460 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543)
10461
10462 2016-08-15 Even Rouault <even.rouault at spatialys.com>
10463
10464 * libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode
10465 if more input samples are provided than expected by PixarLogSetupEncode.
10466 Idea based on libtiff-CVE-2016-3990.patch from
10467 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and
10468 simpler check. (bugzilla #2544)
10469
10470 2016-08-15 Even Rouault <even.rouault at spatialys.com>
10471
10472 * tools/tiff2rgba.c: Fix integer overflow in size of allocated
10473 buffer, when -b mode is enabled, that could result in out-of-bounds
10474 write. Based initially on patch tiff-CVE-2016-3945.patch from
10475 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for
10476 invalid tests that rejected valid files. (bugzilla #2545)
10477
10478 2016-07-11 Even Rouault <even.rouault at spatialys.com>
10479
10480 * tools/tiffcrop.c: Avoid access outside of stack allocated array
10481 on a tiled separate TIFF with more than 8 samples per pixel.
10482 Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360
10483 (CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559)
10484
10485 2016-07-10 Even Rouault <even.rouault at spatialys.com>
10486
10487 * libtiff/tif_read.c: Fix out-of-bounds read on
10488 memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1()
10489 when stripoffset is beyond tmsize_t max value (reported by
10490 Mathias Svensson)
10491
10492 2016-07-10 Even Rouault <even.rouault at spatialys.com>
10493
10494 * tools/tiffdump.c: fix a few misaligned 64-bit reads warned
10495 by -fsanitize
10496
10497 2016-07-03 Even Rouault <even.rouault at spatialys.com>
10498
10499 * libtiff/tif_read.c: make TIFFReadEncodedStrip() and
10500 TIFFReadEncodedTile() directly use user provided buffer when
10501 no compression (and other conditions) to save a memcpy().
10502
10503 * libtiff/tif_write.c: make TIFFWriteEncodedStrip() and
10504 TIFFWriteEncodedTile() directly use user provided buffer when
10505 no compression to save a memcpy().
10506
10507 2016-07-01 Even Rouault <even.rouault at spatialys.com>
10508
10509 * libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and
10510 PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid
10511 potential invalid memory write on corrupted/unexpected images when
10512 using the TIFFRGBAImageBegin() interface (reported by
10513 Clay Wood)
10514
10515 2016-06-28 Even Rouault <even.rouault at spatialys.com>
10516
10517 * libtiff/tif_pixarlog.c: fix potential buffer write overrun in
10518 PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson)
10519 (CVE-2016-5875)
10520
10521 2016-06-15 Bob Friesenhahn <[email protected]>
10522
10523 * libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64
10524 to libtiff.def
10525
10526 2016-06-05 Bob Friesenhahn <[email protected]>
10527
10528 * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,
10529 ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from
10530 the distribution. The libtiff tools rgb2ycbcr and thumbnail are
10531 only built in the build tree for testing. Old files are put in
10532 new 'archive' subdirectory of the source repository, but not in
10533 distribution archives. These changes are made in order to lessen
10534 the maintenance burden.
10535
10536 2016-05-10 Bob Friesenhahn <[email protected]>
10537
10538 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the
10539 HAVE_SNPRINTF definition.'
10540
10541 2016-05-09 Bob Friesenhahn <[email protected]>
10542
10543 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward
10544 Lam to define HAVE_SNPRINTF for Visual Studio 2015.
10545
10546 2016-04-27 Even Rouault <even.rouault at spatialys.com>
10547
10548 * libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD,
10549 fix regression, introduced on 2014-12-23, when reading a one-strip
10550 file without a StripByteCounts tag. GDAL #6490
10551
10552 2016-04-07 Bob Friesenhahn <[email protected]>
10553
10554 * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
10555 purposes of security issue reporting.
10556
10557 2016-01-23 Even Rouault <even.rouault at spatialys.com>
10558
10559 * libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr)
10560 coming from GDAL internal libtiff
10561
10562 2016-01-09 Even Rouault <even.rouault at spatialys.com>
10563
10564 * libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure
10565 a uint16 to reduce size of the binary.
10566
10567 2016-01-03 Even Rouault <even.rouault at spatialys.com>
10568
10569 * libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised
10570 by GCC 6 -Wmisleading-indentation
10571
10572 2015-12-27 Even Rouault <even.rouault at spatialys.com>
10573
10574 * libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL
10575 string to %s formatter, which is undefined behaviour in sprintf().
10576
10577 2015-12-27 Even Rouault <even.rouault at spatialys.com>
10578
10579 * libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode()
10580 triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif
10581 (bugzilla #2508)
10582
10583 2015-12-27 Even Rouault <even.rouault at spatialys.com>
10584
10585 * libtiff/tif_luv.c: fix potential out-of-bound writes in decode
10586 functions in non debug builds by replacing assert()s by regular if
10587 checks (bugzilla #2522).
10588 Fix potential out-of-bound reads in case of short input data.
10589
10590 2015-12-26 Even Rouault <even.rouault at spatialys.com>
10591
10592 * libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage
10593 interface in case of unsupported values of SamplesPerPixel/ExtraSamples
10594 for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in
10595 TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and
10596 CVE-2015-8683 reported by zzf of Alibaba.
10597
10598 2015-12-21 Even Rouault <even.rouault at spatialys.com>
10599
10600 * libtiff/tif_dirread.c: workaround false positive warning of Clang Static
10601 Analyzer about null pointer dereference in TIFFCheckDirOffset().
10602
10603 2015-12-19 Even Rouault <even.rouault at spatialys.com>
10604
10605 * libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found
10606 by Clang Static Analyzer
10607
10608 2015-12-18 Even Rouault <even.rouault at spatialys.com>
10609
10610 * libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in
10611 TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory
10612 offsets on a even offset (affects BigTIFF). This was a regression of the
10613 changeset of 2015-10-19.
10614
10615 2015-12-12 Even Rouault <even.rouault at spatialys.com>
10616
10617 * libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile()
10618 should return -1 in case of failure of tif_encodestrip() as documented
10619 * libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of
10620 failure so that the above mentioned functions detect the error.
10621
10622 2015-12-06 Even Rouault <even.rouault at spatialys.com>
10623
10624 * libtiff/uvcode.h: const'ify uv_code array
10625
10626 2015-12-06 Even Rouault <even.rouault at spatialys.com>
10627
10628 * libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields,
10629 tiffFieldArray and exifFieldArray arrays
10630
10631 2015-12-06 Even Rouault <even.rouault at spatialys.com>
10632
10633 * libtiff/tif_print.c: constify photoNames and orientNames arrays
10634
10635 2015-12-06 Even Rouault <even.rouault at spatialys.com>
10636
10637 * libtiff/tif_close.c, libtiff/tif_extension.c : rename link
10638 variable to avoid -Wshadow warnings
10639
10640 2015-11-22 Even Rouault <even.rouault at spatialys.com>
10641
10642 * libtiff/*.c: fix typos in comments (patch by Kurt Schwehr)
10643
10644 2015-11-22 Even Rouault <even.rouault at spatialys.com>
10645
10646 * libtiff/*.c: fix MSVC warnings related to cast shortening and
10647 assignment within conditional expression
10648
10649 2015-11-18 Even Rouault <even.rouault at spatialys.com>
10650
10651 * libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
10652
10653 2015-11-18 Even Rouault <even.rouault at spatialys.com>
10654
10655 * libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
10656 to please MSVC 2013
10657
10658 2015-11-17 Even Rouault <even.rouault at spatialys.com>
10659
10660 * libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
10661 if BitsPerPixel > 24, so as to avoid huge memory allocation and file
10662 read attempts
10663
10664 2015-11-02 Even Rouault <even.rouault at spatialys.com>
10665
10666 * libtiff/tif_dirread.c: remove duplicated assignment (reported by
10667 Clang static analyzer)
10668
10669 2015-10-28 Even Rouault <even.rouault at spatialys.com>
10670
10671 * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
10672 libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
10673 declaration/prototype'
10674
10675 2015-10-19 Even Rouault <even.rouault at spatialys.com>
10676
10677 * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
10678 'warning: negative integer implicitly converted to unsigned type' warning
10679 (part of -Wconversion)
10680
10681 2015-10-17 Even Rouault <even.rouault at spatialys.com>
10682
10683 * libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
10684 libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
10685
10686 2015-09-12 Bob Friesenhahn <[email protected]>
10687
10688 * libtiff 4.0.6 released.
10689
10690 * html/v4.0.6.html: Added release notes for 4.0.6.
10691
10692 2015-09-06 Bob Friesenhahn <[email protected]>
10693
10694 * tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
10695 X. Patch by Roger Leigh.
10696
10697 * Makefile.am: Added a 'coverity' rule to assist with Coverity
10698 submissions.
10699
10700 * tools/tiff2pdf.c: Fix compiler warning about unused function
10701 when JPEG is not available.
10702
10703 * tools/fax2ps.c (main): Detect failure to write to temporary
10704 file.
10705
10706 2015-09-05 Bob Friesenhahn <[email protected]>
10707
10708 * libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
10709 Change implementation so that it does not sometimes overflow the
10710 range of a 32-bit int and to avoid a signed vs unsigned compare
10711 compiler warning.
10712 (TIFF_INT64_MAX): Avoid use of platform-specific large constants.
10713 (TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
10714
10715 2015-09-01 Bob Friesenhahn <[email protected]>
10716
10717 * Makefile.am (distcheck-hook), configure.ac: Applied patches by
10718 Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
10719 with BSD make and to make use of cmake in 'distcheck' target
10720 conditional on if cmake is available.
10721
10722 * CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
10723 Roger Leigh (via tiff mailing list on 2015-09-01).
10724
10725 CMake build is now included in 'distcheck' target.
10726
10727 Builds with CMake 2.8.9 and newer.
10728
10729 Tar is now resquested to use POSIX PAX format.
10730
10731 2015-08-31 Bob Friesenhahn <[email protected]>
10732
10733 * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
10734 Roger Leigh (via tiff mailing list on 2015-08-31.
10735
10736 CMake reads all version information directly from configure.ac to
10737 avoid duplication of values. This basically greps over the file
10738 for the LIBTIFF_* variables, then translates them to the form
10739 needed for cmake. This includes the release version and libtool
10740 shared library version information.
10741
10742 Make shared/static library building configurable. Currently it
10743 always builds shared libraries, with static libs having a _static
10744 suffix (copying zlib, but it means it's got a non-standard name).
10745 CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
10746 other, which is now used instead. There's now a single "tiff"
10747 target to build either shared or static as required, and all the
10748 tests and tools are linked with this. Note: the Windows tests fail
10749 when linked with a static libtiff (says: libtiff.dll not found).
10750 Not really a regression since this was not tested up to this
10751 point, and it's likely the unit tests haven't (ever?) been run on
10752 Windows with a static libtiff, so there's some additional
10753 portability issue here to address. Works fine on UNIX systems,
10754 and fine on Windows with the default to build a DLL.
10755
10756 Add a missing file which wasn't being distributed, causing unit
10757 tests to fail. Note that "find . -name '*.cmake'" lists all the
10758 CMake files which need distributing in addition to all the
10759 CMakeLists.txt files (which now are distributed).
10760
10761 2015-08-31 Even Rouault <even.rouault at spatialys.com>
10762
10763 * libtiff/tif_predict.c: pedantic change to add explicit masking
10764 with 0xff before casting to uchar in floating-point horizontal
10765 differencing and accumulation routines.
10766
10767 2015-08-31 Even Rouault <even.rouault at spatialys.com>
10768
10769 * libtiff/tif_predict.c: fix generation of output with 16 bit
10770 or 32 bit integer, when byte swapping is needed, in
10771 horizontal predictor (#2521). Also fixes decoding when there is
10772 a single pixel to code (unlikely case...) and byte swapping is
10773 involved.
10774
10775 2015-08-30 Even Rouault <even.rouault at spatialys.com>
10776
10777 * libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
10778 undefined behaviour with shifts (gcc -fsanitize=shift)
10779
10780 2015-08-30 Even Rouault <even.rouault at spatialys.com>
10781
10782 * libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
10783 add explicit masking with 0xff before casting
10784 to unsigned char (make icc -check=conversions happy)
10785
10786 * libtiff/tif_predict.c: operate on unsigned datatypes when
10787 computing/applying differences to avoid undefined behaviour of
10788 signed types (C standard compliance)
10789
10790 2015-08-30 Bob Friesenhahn <[email protected]>
10791
10792 * configure.ac: libtiff 4.0.5 released.
10793
10794 2015-08-29 Bob Friesenhahn <[email protected]>
10795
10796 * CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
10797 list on 2015-08-29) to add ld-version-script option to cmake build
10798 to match autoconf. Note: defaults to 'on' to be ABI-compatible by
10799 default with common Linux distribution builds. Note that the
10800 autoconf configure script defaults to 'off'.
10801
10802 * html/build.html: Applied patch by Roger Leigh (via tiff mailing
10803 list on 2015-08-29) to describe how to use CMake to build libtiff.
10804
10805 2015-08-28 Bob Friesenhahn <[email protected]>
10806
10807 * html/v4.0.5.html: Added HTML file describing the changes which
10808 will appear in the 4.0.5 release.
10809
10810 2015-08-23 Bob Friesenhahn <[email protected]>
10811
10812 * libtiff/tiffiop.h: For MinGW comiles, make sure that build
10813 supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
10814 Otherwise large files can not be supported for POSIX-style I/O.
10815
10816 * tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
10817 builds about cast to thandle_t.
10818
10819 * test/rewrite_tag.c (main): Does not require any arguments.
10820
10821 2015-08-20 Bob Friesenhahn <[email protected]>
10822
10823 * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
10824 fix build issues when using Cmake due to Windows large file
10825 changes.
10826
10827 2015-08-18 Bob Friesenhahn <[email protected]>
10828
10829 * libtiff/tiffiop.h: First cut at supporting large files under
10830 Microsoft Windows using tif_unix.c and the libtiff tools. This
10831 only works if the Windows CDK is new enough to support the APIs
10832 used (Visual C++ 2005 or later). Support for large files is not
10833 actually tested yet.
10834
10835 2015-08-15 Bob Friesenhahn <[email protected]>
10836
10837 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
10838 client_data is initialized to a known value, and to report an
10839 error on two memory allocation failures.
10840
10841 2015-08-13 Bob Friesenhahn <[email protected]>
10842
10843 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
10844 symbol versioning. Patch was mailed to libtiff list on Thu, 13
10845 Aug 2015.
10846
10847 2015-07-04 Bob Friesenhahn <[email protected]>
10848
10849 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3
10850 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
10851 +0100.
10852
10853 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh
10854 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
10855
10856 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by
10857 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
10858
10859 2015-06-24 Bob Friesenhahn <[email protected]>
10860
10861 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
10862 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
10863 corrections to ensure that the autotools build still works were
10864 added by me. I have not yet tested the build using 'cmake' or
10865 MSVC with 'nmake'.
10866
10867 2015-06-21 Bob Friesenhahn <[email protected]>
10868
10869 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
10870 library so only execute if JPEG is available.
10871
10872 * libtiff 4.0.4 released.
10873
10874 * configure.ac: Add a HAVE_FOO Automake conditional for each
10875 add-on library.
10876
10877 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
10878 requires JPEG support to compile. Use Automake conditional to
10879 only include it when JPEG support is available.
10880
10881 * html/build.html: Try to improve the nmake-based VC++ build
10882 description.
10883
10884 * libtiff/tiffconf.vc.h: Build fixes based on testing.
10885
10886 * libtiff/tif_config.vc.h: Build fixes based on testing.
10887
10888 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
10889 export for it.
10890
10891 2015-06-20 Bob Friesenhahn <[email protected]>
10892
10893 * libtiff/tif_config.vc.h: Make adjustments to match the new
10894 definitions that configure produces, including for WIN64. Still
10895 needs to be tested.
10896
10897 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
10898 specifier. 64-bit MinGW supports 'long long' but support for
10899 'lld' is not assured by the run-time DLLs and so GCC warns.
10900 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
10901 and printf format specifier to deal with printing values of
10902 'size_t' type. In particular, this was necessary for WIN64.
10903 Added a configure test for if the system headers provide 'optarg'
10904 (normal case) and block out the many explicit 'extern' statements
10905 in the utilities. This was found to be necessary under Windows
10906 when getopt is in a DLL and the symbols are already imported with
10907 dllimport via standard header files.
10908
10909 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
10910 and boolean in MinGW build due to including jpeglib.h.
10911
10912 * test/rewrite_tag.c (main): Fix problem with location of variable
10913 declaration.
10914
10915 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
10916 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
10917 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
10918 TIFFRasterScanline, TIFFSetErrorHandlerExt,
10919 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
10920 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
10921 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
10922 Roger Leigh and justified by use in libtiff tests, documentation,
10923 and changelog notes. Also sorted symbol list and removed
10924 duplicate entries.
10925
10926 2015-06-16 Bob Friesenhahn <[email protected]>
10927
10928 * libtiff/tif_getimage.c: Fix four Coverity issues related to
10929 unintended sign extension.
10930
10931 2015-06-16 Even Rouault <even.rouault at spatialys.com>
10932
10933 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
10934
10935 2015-06-14 Lee Howard <[email protected]>
10936
10937 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on
10938 Bugzilla Bug #2510 fixes several harmless but still annoying
10939 warnings
10940
10941 * configure: contribution from Ludolf Holzheid on Bugzilla
10942 Bug #2498. Adds an option to select the file I/O style on
10943 Windows hosts.
10944
10945 * libtiff/tif_getimage.c: contribution from Gary Cramblitt
10946 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs.
10947
10948 * configure, configure.ac: contribution from Marcos H. Woehrmann
10949 on Bugzilla Bug #2405. Correct shell equality operator.
10950
10951 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
10952 on Bugzilla Bug #2401. Appropriately call glFlush().
10953
10954 * tools/tiff2pdf.c: change ColorTransform from "0" to "1"
10955 following Bugzilla Bug #2150.
10956
10957 2015-06-13 Lee Howard <[email protected]>
10958
10959 * libtiff/tif_lzw.c: contribution from Andy Cave - decode
10960 files that contain consecutive CODE_CLEAR codes.
10961
10962 * tools/tiff2pdf.c: contribution from Antti S. Lankila on
10963 Bugzilla Bug #2078. Suppress initial output of the header.
10964
10965 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
10966 Take care in using the return value from snprintf().
10967
10968 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
10969 correctly copy the compression tag from the source TIFF.
10970
10971 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
10972 correct sizing and scaling problems with output document.
10973
10974 2015-06-10 Bob Friesenhahn <[email protected]>
10975
10976 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
10977 clean implementations in order to avoid pre-processor hell. Only
10978 one of the implementations is used in a given build.
10979
10980 2015-06-08 Even Rouault <even.rouault at spatialys.com>
10981
10982 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
10983 case
10984
10985 2015-06-07 Bob Friesenhahn <[email protected]>
10986
10987 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
10988 "Division or modulo by zero".
10989 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
10990 or modulo by zero".
10991 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
10992 zero".
10993 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
10994 zero".
10995
10996 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
10997 715974 "Division or modulo by zero".
10998
10999 2015-05-31 Bob Friesenhahn <[email protected]>
11000
11001 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
11002 1134470 "Logically dead code" by making the roll-over check
11003 explicit.
11004
11005 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
11006 "Division or modulo by zero".
11007 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
11008 zero".
11009 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
11010 zero".
11011 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
11012 zero".
11013
11014 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
11015 Coverity 298626 "Logically dead code".
11016 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
11017 code".
11018 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
11019 code".
11020 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
11021 code"
11022
11023 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
11024 operator precedenc in evaluation. Might quench Coverity 1134470
11025 "Logically dead code".
11026
11027 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
11028 don't affect result". This change uses ifdefs to include
11029 applicable code based on properties of libjpeg. Still needs to be
11030 re-tested with 12-bit "6b" and "MK1".
11031
11032 2015-05-30 Bob Friesenhahn <[email protected]>
11033
11034 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
11035 "Resource leak".
11036
11037 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
11038 Coverity 601720 "Resource leak".
11039
11040 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
11041 "Dereference before null check".
11042
11043 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
11044 "Missing break in switch".
11045
11046 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
11047 size calculation for overflow.
11048
11049 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
11050 1024226 "Untrusted value as argument".
11051
11052 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
11053 value as argument".
11054 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes
11055 read".
11056 (readextension): Fix Coverity 1024893 "Ignoring number of bytes
11057 read".
11058 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
11059 read".
11060 (readraster): Fix Coverity 1024891 "Ignoring number of bytes
11061 read".
11062 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
11063 read".
11064
11065 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
11066 "Structurally dead code".
11067
11068 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
11069 value from library".
11070 (guessSize): Fix Coverity 1024888 "Unchecked return value from
11071 library".
11072 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
11073 (guessSize): Fix Coverity 1024889 "Unchecked return value from
11074 library".
11075
11076 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
11077 "Resource leak".
11078 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
11079 code".
11080 (t2p_write_pdf): Fix Coverity 1227690 "Unused value".
11081
11082 2015-05-29 Bob Friesenhahn <[email protected]>
11083
11084 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
11085 "Infinite loop".
11086 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
11087 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
11088
11089 2015-05-28 Bob Friesenhahn <[email protected]>
11090
11091 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
11092 Coverity 298615 "Resource leak".
11093 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
11094 extension".
11095
11096 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
11097 as argument".
11098 (main): Fix Coverity 1024678 "Unchecked return value from
11099 library".
11100 (main): Fix Coverity 1024679 "Unchecked return value from
11101 library".
11102 (main): Fix Coverity 1214160 "Ignoring number of bytes read".
11103
11104 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
11105 Coverity 298615 "Resource leak".
11106
11107 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
11108 "Resource leak".
11109
11110 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
11111 leak".
11112 (cpStrips): Fix Coverity 1024305 "Resource leak".
11113
11114 2015-05-27 Bob Friesenhahn <[email protected]>
11115
11116 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe
11117 for 64-bit systems. Add some header validations. Should fix many
11118 Coverity issues.
11119 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)".
11120 (main): Quiet Coverity 1024223 "Untrusted value as argument".
11121
11122 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
11123 level does not match indentation".
11124 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
11125 This was a benign mis-diagnosis but added code to enforce against
11126 buffer overflow.
11127
11128 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
11129 vs. bitwise operator".
11130 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
11131 modulo by zero".
11132 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
11133 code".
11134 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not
11135 match indentation".
11136 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
11137 match indentation".
11138 (loadImage): Fix Coverity 1299741 "Dereference before null check".
11139 (loadImage): Fix Coverity 1299740 "Out-of-bounds write".
11140
11141 2015-03-02 Even Rouault <[email protected]>
11142
11143 * tools/tiffdither.c: check memory allocations to avoid writing to
11144 NULL pointer. Also check multiplication overflow. Fixes #2501,
11145 CVE-2014-8128. Derived from patch by Petr Gajdos.
11146
11147 2015-01-26 Even Rouault <[email protected]>
11148
11149 * add html/v4.0.4beta.html under version control
11150 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
11151
11152 2015-01-26 Even Rouault <[email protected]>
11153
11154 * libtiff 4.0.4beta released
11155
11156 2015-01-26 Even Rouault <[email protected]>
11157
11158 * automake: updated to 1.15
11159 * libtool: updated to 2.4.5
11160
11161 2015-01-22 Even Rouault <[email protected]>
11162
11163 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
11164
11165 2015-01-05 Frank Warmerdam <[email protected]>
11166
11167 * html/bugs.html: remove note about needing to email the tiff mailing
11168 list administrator about being approved for membership, this appears
11169 not to be true.
11170
11171 2015-01-05 Olivier Paquet <[email protected]>
11172
11173 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
11174
11175 2015-01-03 Even Rouault <[email protected]>
11176
11177 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
11178 when reading more than 65535 directories, and effectively error out when
11179 reaching that limit.
11180
11181 2014-12-29 Even Rouault <[email protected]>
11182
11183 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
11184 markers to avoid emitting a warning (even if, according to the TechNote,
11185 there are admittedly unusual/not recommended or even forbidden variants, but
11186 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
11187 SOF9 and SOF10).
11188 Define in_color_space and input_components to the right values in
11189 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
11190 libjpeg API documentation, so as to be compatible with mozjpeg library.
11191 Note: the default settings of mozjpeg will produce progressive scans, which
11192 is forbidden by the TechNote.
11193
11194 2014-12-29 Even Rouault <[email protected]>
11195
11196 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
11197 to avoid buffer leak (fix previous fix, found by Coverity scan)
11198
11199 2014-12-29 Even Rouault <[email protected]>
11200
11201 * libtiff/tif_next.c: add new tests to check that we don't read outside of
11202 the compressed input stream buffer.
11203
11204 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
11205 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
11206 putcontig8bitYCbCr21tile cases.
11207
11208 2014-12-27 Even Rouault <[email protected]>
11209
11210 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
11211 extended tags installed by user code through the extender mechanism before
11212 calling the extender callback (GDAL #5054)
11213
11214 2014-12-26 Bob Friesenhahn <[email protected]>
11215
11216 * tools/tiffcrop.c: Fix warnings about variables set but not used.
11217
11218 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set
11219 but not used.
11220
11221 * tools/tiffgt.c: Fix warnings about unused parameters.
11222
11223 * libtiff/tif_stream.cxx: Fix warnings about unused parameters.
11224
11225 2014-12-25 Even Rouault <[email protected]>
11226
11227 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
11228 various typos found by Debian lintian tool (GDAL #5756)
11229
11230 2014-12-24 Even Rouault <[email protected]>
11231
11232 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
11233 http://bugzilla.maptools.org/show_bug.cgi?id=2235
11234
11235 2014-12-24 Even Rouault <[email protected]>
11236
11237 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
11238 http://bugzilla.maptools.org/show_bug.cgi?id=2445
11239
11240 2014-12-24 Even Rouault <[email protected]>
11241
11242 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
11243 Derived from patch by Petr Gajdos,
11244 http://bugzilla.maptools.org/show_bug.cgi?id=2443
11245
11246 2014-12-23 Even Rouault <[email protected]>
11247
11248 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
11249 of _TIFFFillStriles(). This solves crashing bug on corrupted
11250 images generated by afl.
11251
11252 2014-12-23 Even Rouault <[email protected]>
11253
11254 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
11255 <= 0 by casting it to int64 first. This solves crashing bug on corrupted
11256 images generated by afl.
11257
11258 2014-12-21 Bob Friesenhahn <[email protected]>
11259
11260 * tools/tiffdump.c: Guard against arithmetic overflow when
11261 calculating allocation buffer sizes.
11262
11263 2014-12-21 Even Rouault <[email protected]>
11264
11265 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if
11266 SamplesPerPixel = 3. Enforce that
11267 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
11268
11269 2014-12-21 Even Rouault <[email protected]>
11270
11271 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
11272 copying. The right fix would be to properly copy it, but not worth the burden
11273 for those esoteric utilities.
11274 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
11275
11276 2014-12-21 Even Rouault <[email protected]>
11277
11278 * tools/thumbnail.c: fix out-of-buffer write
11279 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
11280
11281 2014-12-21 Even Rouault <[email protected]>
11282
11283 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
11284 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
11285 COMPRESSION_CCITTFAX4
11286 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
11287
11288 2014-12-21 Even Rouault <[email protected]>
11289
11290 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
11291 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
11292
11293 2014-12-21 Even Rouault <[email protected]>
11294
11295 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading
11296 TIFFTAG_SAMPLESPERPIXEL
11297
11298 2014-12-21 Even Rouault <[email protected]>
11299
11300 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
11301 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
11302 Description: fix for Debian bug #741451
11303 tiffcp crashes when converting JPEG-encoded TIFF to a different
11304 encoding (like none or lzw). For example this will probably fail:
11305 tiffcp -c none jpeg_encoded_file.tif output.tif
11306 The reason is that when the input file contains JPEG data,
11307 the tiffcp code forces conversion to RGB space. However,
11308 the output normally inherits YCbCr subsampling parameters
11309 from the input, which leads to a smaller working buffer
11310 than necessary. The buffer is subsequently overrun inside
11311 cpStripToTile() (called from writeBufferToContigTiles).
11312 Note that the resulting TIFF file would be scrambled even
11313 if tiffcp wouldn't crash, since the output file would contain
11314 RGB data interpreted as subsampled YCbCr values.
11315 This patch fixes the problem by forcing RGB space on the output
11316 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
11317 Author: Tomasz Buchert <[email protected]>
11318
11319 2014-12-21 Even Rouault <[email protected]>
11320
11321 Fix various crash bugs on fuzzed images.
11322 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
11323 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
11324 the directory
11325 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
11326 TransferFunction if BitsPerSample has not yet been read, otherwise reading
11327 it later will cause user code to crash if BitsPerSample > 1
11328 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
11329 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
11330 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
11331 instead of imagewidth to avoid crash
11332 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
11333 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
11334 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
11335 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
11336 * tools/tiffdump.c: fix crash due to overflow of entry count.
11337
11338 2014-12-15 Even Rouault <[email protected]>
11339
11340 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
11341 all tiles/strips to include quantization tables even when the jpegtablesmode
11342 had the JPEGTABLESMODE_QUANT bit set.
11343 Also add explicit removal of Huffman tables when jpegtablesmode has the
11344 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
11345 first tile/strip (only useful in update scenarios. create-only was
11346 fine)
11347
11348 2014-12-09 Bob Friesenhahn <[email protected]>
11349
11350 * tools/tiff2pdf.c: Assure that memory size calculations for
11351 _TIFFmalloc() do not overflow the range of tmsize_t.
11352
11353 2014-12-07 Even Rouault <[email protected]>
11354
11355 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
11356 Valgrind and Address Sanitizer on test suite
11357
11358 2014-12-07 Bob Friesenhahn <[email protected]>
11359
11360 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
11361 tag can return one channel, with the other two channels set to
11362 NULL. The tiff2pdf code was expecting that other two channels
11363 were duplicate pointers in the case where there is only one
11364 channel. Detect this condition in order to avoid a crash, and
11365 presumably perform correctly with just one channel.
11366
11367 2014-12-06 Bob Friesenhahn <[email protected]>
11368
11369 * tools/tiffdump.c: Fix double-free bug.
11370
11371 2014-11-27 Even Rouault <[email protected]>
11372
11373 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
11374 Visual Studio 2015 aka VC 14 aka MSVC 1900
11375
11376 2014-11-20 Even Rouault <[email protected]>
11377
11378 * libtiff/tif_lzw.c: prevent potential null dereference of
11379 sp->dec_codetab in LZWPreDecode (bug #2459)
11380
11381 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
11382 to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
11383
11384 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
11385
11386 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
11387 Coverity happier (not a bug, #2459)
11388
11389 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
11390 (not a bug, #2459)
11391
11392 * tools/tiff2pdf.c: close PDF file (bug #2479)
11393
11394 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
11395
11396 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
11397 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
11398
11399 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option
11400 (bug #2459) and add missing va_end in dump_info (#2459)
11401
11402 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
11403
11404 2014-11-20 Even Rouault <[email protected]>
11405 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
11406 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
11407
11408 2014-11-20 Even Rouault <[email protected]>
11409 * automake: updated to 1.14.1
11410 * libtool: updated to 2.4.3
11411 * HOWTO-RELEASE: small update about autotools building order
11412
11413 2014-10-20 Olivier Paquet <[email protected]>
11414 * tools/tiff2pdf.c: Preserve input file directory order when pages
11415 are tagged with the same page number.
11416
11417 2014-08-31 Bob Friesenhahn <[email protected]>
11418
11419 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
11420 count for tag should be a warning rather than an error since
11421 errors terminate processing.
11422
11423 2014-06-07 Bob Friesenhahn <[email protected]>
11424
11425 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
11426 was wrongly described. Fix suggested by Miguel Medalha.
11427
11428 2014-05-06 Bob Friesenhahn <[email protected]>
11429
11430 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
11431 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood.
11432 Reviewed and forwarded by Lee Howard.
11433
11434 2013-11-30 Frank Warmerdam <[email protected]>
11435
11436 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
11437
11438 2013-10-21 Frank Warmerdam <[email protected]>
11439
11440 * libtiff/tif_dir.c: generate error in case of directory count
11441 overflow.
11442
11443 2013-10-01 Frank Warmerdam <[email protected]>
11444
11445 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
11446 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
11447
11448 2013-09-12 Bob Friesenhahn <[email protected]>
11449
11450 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
11451 be defective, then set it to zero before returning error in order
11452 to terminate processing of truncated TIFF. Issue found and fix
11453 suggested by Richard Nolde.
11454
11455 2013-08-14 Frank Warmerdam <[email protected]>
11456
11457 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
11458
11459 2013-08-13 Frank Warmerdam <[email protected]>
11460
11461 * tools/gif2tiff.c: Be more careful about corrupt or
11462 hostile input files (#2450, CVE-2013-4231)
11463
11464 * tools/tiff2pdf.c: terminate after failure of allocating
11465 ycbcr buffer (bug #2449, CVE-2013-4232)
11466
11467 2013-07-09 Frank Warmerdam <[email protected]>
11468
11469 * tools/tiffinfo.c: Default various values fetched with
11470 TIFFGetField() to avoid being uninitialized.
11471
11472 2013-05-02 Tom Lane <[email protected]>
11473
11474 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in
11475 t2p_process_jpeg_strip to be at least marginally competent. The
11476 approach is still fundamentally flawed, but at least now it won't
11477 stomp all over memory when given bogus input. Fixes CVE-2013-1960.
11478
11479 2013-05-02 Tom Lane <[email protected]>
11480
11481 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
11482 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
11483 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
11484 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
11485 large enough, and eliminate substantially all uses of sprintf(buf,
11486 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to
11487 protect against overflow of fixed-size buffers. This responds in
11488 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
11489 t2p_write_pdf_page(), but in general it seems like a good idea to
11490 deprecate use of sprintf().
11491
11492 2013-03-29 Bob Friesenhahn <[email protected]>
11493
11494 * configure.ac: Applied patch by Brad Smith to improve pkg-config
11495 static linking by adding -lm to Libs.private when needed.
11496
11497 2013-03-05 Tom Lane <[email protected]>
11498
11499 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
11500 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
11501 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
11502 tools/tiffdither.c: Sync tool usage printouts and man pages with
11503 reality (quite a few options had escaped being documented in one
11504 or both places). Per an old report from Miroslav Vadkerti.
11505
11506 2013-01-25 Bob Friesenhahn <[email protected]>
11507
11508 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
11509 rotation angle was set by the auto rotate check, it was retained
11510 for all pages that followed instead ofa being retested for each
11511 page. Patch by Richard Nolde.
11512
11513 2013-01-18 Frank Warmerdam <[email protected]>
11514
11515 * libtiff/tif_write.c: tmsize_t related casting warning fixed for
11516 64bit linux.
11517
11518 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
11519 http://bugzilla.maptools.org/show_bug.cgi?id=2427
11520
11521 2012-12-20 Tom Lane <[email protected]>
11522
11523 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that
11524 it will pass with more versions of libjpeg. (There are at least
11525 three in active use now, and JPEG_LIB_VERSION doesn't tell us
11526 enough to uniquely identify expected results.)
11527
11528 2012-12-12 Tom Lane <[email protected]>
11529
11530 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
11531 field_passcount fields: it had the TIFF_VARIABLE and
11532 TIFF_VARIABLE2 cases backwards.
11533
11534 2012-12-10 Tom Lane <[email protected]>
11535
11536 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
11537 check the linebytes calculation too, get the max() calculation
11538 straight, avoid redundant error messages, check for malloc
11539 failure.
11540
11541 2012-12-10 Tom Lane <[email protected]>
11542
11543 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
11544 (to enlarge tbuf for possible partial stride at end) so that
11545 overflow in the integer addition is detected. Per gripe from
11546 Huzaifa Sidhpurwala.
11547
11548 2012-12-03 Bob Friesenhahn <[email protected]>
11549
11550 * tools/tiffset.c: tiffset now supports a -u option to unset a
11551 tag. Patch by Zach Baker. See
11552 http://bugzilla.maptools.org/show_bug.cgi?id=2419
11553
11554 2012-11-18 Bob Friesenhahn <[email protected]>
11555
11556 * automake: Update Automake to 1.12.5 release.
11557
11558 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
11559 require malloc() to return NULL pointer if requested allocation
11560 size is zero. Assure that _TIFFmalloc does.
11561
11562 2012-11-01 Frank Warmerdam <[email protected]>
11563
11564 * tools/ppm2tiff.c: avoid zero size buffer vulnerability.
11565 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
11566 Red Hat Security Response team for the fix.
11567
11568 2012-10-18 Frank Warmerdam <[email protected]>
11569
11570 * tif_zip.c: Avoid crash on NULL error messages.
11571
11572 2012-09-22 Bob Friesenhahn <[email protected]>
11573
11574 * libtiff 4.0.3 released.
11575
11576 2012-09-20 Bob Friesenhahn <[email protected]>
11577
11578 * Makefile.am: Update to Automake 1.12.4
11579
11580 2012-08-19 Bob Friesenhahn <[email protected]>
11581
11582 * Makefile.in: Update to Automake 1.12.3
11583
11584 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
11585 some TIFF/FX support in libtiff. Add the tag definitions to
11586 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c,
11587 and also fixes an error in a comment. Adds the photometric values
11588 to tif_print.c, and fixes a bug. These changes are by Steve
11589 Underwood.
11590
11591 2012-08-13 Frank Warmerdam <[email protected]>
11592
11593 * libtiff/tif_write.c: Fix bug rewriting image tiles in a
11594 compressed file: http://trac.osgeo.org/gdal/ticket/4771
11595
11596 2012-08-02 Frank Warmerdam <[email protected]>
11597
11598 * libtiff/tif_dirread.c: report error in case of mismatch value
11599 counts for tags (ie. DotRange).
11600
11601 2012-07-26 Tom Lane <[email protected]>
11602
11603 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
11604 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
11605 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
11606 as external accessors for the opaque type TIFFField.
11607
11608 * tools/tiffset.c: Make tiffset use the above functions instead of
11609 relying on library private headers.
11610
11611 2012-07-19 Tom Lane <[email protected]>
11612
11613 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
11614 after a malloc failure. No crash risk AFAICS, but the program
11615 might not report exit code 1 as desired. h/t [email protected]
11616
11617 2012-07-18 Tom Lane <[email protected]>
11618
11619 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This
11620 prevents core dumps or perhaps even arbitrary code execution when
11621 processing a corrupt input file (CVE-2012-3401).
11622
11623 2012-07-06 Bob Friesenhahn <[email protected]>
11624
11625 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
11626 IJG JPEG 7+ uses a different upsampling algorithm which produces
11627 different numeric results.
11628
11629 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
11630 work with IJG JPEG 7+.
11631
11632 2012-07-04 Bob Friesenhahn <[email protected]>
11633
11634 * test/raw_decode.c: Add changes so that test can run with build
11635 directory outside of source directory.
11636
11637 2012-07-02 Frank Warmerdam <[email protected]>
11638
11639 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
11640 imagery (http://trac.osgeo.org/gdal/ticket/4732)
11641
11642 2012-06-20 Frank Warmerdam <[email protected]>
11643
11644 * libtiff/tif_fax3.c: fix memory initialization of runs, only
11645 partly done.
11646
11647 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
11648 full "stride" past the end.
11649
11650 2012-06-19 Frank Warmerdam <[email protected]>
11651
11652 * libtiff/tif_packbits.c: fix read past end of data buffer.
11653
11654 2012-06-15 Frank Warmerdam <[email protected]>
11655
11656 * libtiff 4.0.2 released.
11657
11658 * tools/tif2pdf.c, tools/tifdump.c: avoid uninitialized variable
11659 warnings with clang.
11660
11661 2012-06-15 Tom Lane <[email protected]>
11662
11663 * tools/tiff2pdf.c: Defend against integer overflows while
11664 calculating required buffer sizes (CVE-2012-2113).
11665
11666 2012-06-12 Frank Warmerdam <[email protected]>
11667
11668 * libtiff/tif_print.c: Be careful about printing corrupt inknames.
11669
11670 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
11671
11672 2012-06-07 Frank Warmerdam <[email protected]>
11673
11674 * libtiff/tif_print.c: avoid pretty printing other fields when
11675 we don't have the proper amount and type of data or if the field
11676 is actually autodefined.
11677
11678 2012-06-05 Frank Warmerdam <[email protected]>
11679
11680 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
11681 ycbcrsubsampling values result in a runtime error, not just an
11682 assertion.
11683
11684 * tests/custom_dir.c: Add testing of EXIF and custom directory
11685 reading and writing.
11686
11687 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
11688 and TIFFCreateEXIFDirectory() functions.
11689
11690 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
11691 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE
11692 differently. This is to avoid using special TIFFGetField/TIFFSetField
11693 rules for these fields in non-image directories (like EXIF).
11694
11695 2012-06-04 Frank Warmerdam <[email protected]>
11696
11697 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
11698 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner
11699 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
11700
11701 2012-06-01 Frank Warmerdam <[email protected]>
11702
11703 * tools/tiffinfo.c: Do not try to read image data in EXIF directories.
11704
11705 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
11706 http://bugzilla.maptools.org/show_bug.cgi?id=2379
11707
11708 * libtiff/tif_unix.c: use strerror() to return a more specific error message
11709 on failed open.
11710 http://bugzilla.maptools.org/show_bug.cgi?id=2341
11711
11712 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
11713 http://bugzilla.maptools.org/show_bug.cgi?id=2386
11714
11715 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
11716 for testing jpeg in tiff image decoding including the "raw" decode interface.
11717
11718 2012-05-31 Frank Warmerdam <[email protected]>
11719
11720 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
11721 JPEGDecodeRaw() - mostly likely to occur when there is confusion about
11722 sampling values.
11723
11724 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
11725
11726 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
11727 http://bugzilla.maptools.org/show_bug.cgi?id=2398
11728
11729 2012-05-29 Frank Warmerdam <[email protected]>
11730
11731 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
11732 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting
11733 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations
11734 to get/set functions for different tags!
11735
11736 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
11737 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
11738
11739 2012-05-24 Frank Warmerdam <[email protected]>
11740
11741 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
11742 accumulate" and overwrite the end by one word in at least some cases.
11743
11744 2012-05-23 Frank Warmerdam <[email protected]>
11745
11746 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
11747
11748 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
11749
11750 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
11751 the same image.
11752
11753 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without
11754 stripbytecounts or stripoffsets or where loading these fails.
11755
11756 * libtiff/tif_print.c: be careful about whether min/max values are singular
11757 or one per sample.
11758
11759 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
11760 May affect things like ISOSpeedRatings.
11761
11762 * libtiff/tif_dir.c: avoid one byte past end of ink names reading
11763 in some cases.
11764
11765 2012-05-19 Bob Friesenhahn <[email protected]>
11766
11767 * man/TIFFGetField.3tiff: Correct the 'count' field type in the
11768 example for how to retrieve the value of unsupported tags.
11769
11770 2012-03-30 Frank Warmerdam <[email protected]>
11771
11772 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
11773 care of Tom Lane @ Red Hat.
11774
11775 2012-02-18 Bob Friesenhahn <[email protected]>
11776
11777 * libtiff 4.0.1 released.
11778
11779 * Update automake used to 1.11.3.
11780
11781 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf
11782 attribute specification to lessen the risk of accidental macro
11783 substitution. Patch from Vincent Torri.
11784
11785 2012-01-31 Frank Warmerdam <[email protected]>
11786
11787 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
11788 assumption tag fetching is always successful.
11789
11790 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
11791
11792 2012-01-22 Bob Friesenhahn <[email protected]>
11793
11794 * configure.ac: Add support for using library symbol versioning on
11795 ELF systems with the GNU linker. Support is enabled via
11796 --enable-ld-version-script. Disabled by default for now until
11797 there is a decision for how to deploy a libtiff with versioned
11798 symbols after libtiff 4.0.0 was already released.
11799
11800 2011-12-22 Bob Friesenhahn <[email protected]>
11801
11802 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
11803
11804 tif_win32.c. Patch by Edward Lam.
11805
11806 * configure.ac: Add libtiff private dependency on -llzma for
11807 pkg-config. Patch by Mark Brand.
11808 Updated Automake to 1.11.2.
11809
11810 2011-12-21 Bob Friesenhahn <[email protected]>
11811
11812 * libtiff 4.0.0 released.
11813
11814 2011-12-08 Frank Warmerdam <[email protected]>
11815
11816 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
11817 of _TIFFFillStriles() results (#gdal 4372)
11818
11819 2011-12-07 Frank Warmerdam <[email protected]>
11820
11821 * libtiff/tif_dirread.c: fixes to deal with invalid files where
11822 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
11823
11824 * libtiff/tif_dirread.c: fix error reporting when there is no
11825 tag information struct and name (gdal #4373)
11826
11827 2011-10-22 Bob Friesenhahn <[email protected]>
11828
11829 * Update GNU libtool to 2.4.2.
11830
11831 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
11832 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe
11833 Deroulers.
11834
11835 2011-06-21 Frank Warmerdam <[email protected]>
11836
11837 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
11838
11839 2011-05-31 Jim Meyering <[email protected]>
11840
11841 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
11842 upon failure to allocate "resizeddata".
11843 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
11844 allocation failure, not before.
11845 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
11846 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
11847 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
11848 NULL-deref and possible overflow
11849 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
11850 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
11851 and set of otherwise unused local, data_is_empty.
11852 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
11853 Diagnose out-of-memory failure and return 0 rather than
11854 dereferencing NULL.
11855
11856 2011-05-24 Frank Warmerdam <[email protected]>
11857
11858 * libtiff/tif_dirread.c: produce special error message for zero tag
11859 directories instead of error out on the malloc(0) failure.
11860
11861 2011-05-16 Frank Warmerdam <[email protected]>
11862
11863 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
11864 related declarations as they are in active use by libraries
11865 such as libgeotiff, and work just fine. (#2315)
11866
11867 2011-04-20 Frank Warmerdam <[email protected]>
11868
11869 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
11870 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
11871 http://bugzilla.maptools.org/show_bug.cgi?id=2315
11872
11873 * libtiff/libtiff.def: add some missing (64bit) APIs.
11874 http://bugzilla.maptools.org/show_bug.cgi?id=2316
11875
11876 2011-04-09 Bob Friesenhahn <[email protected]>
11877
11878 * libtiff 4.0.0beta7 released.
11879
11880 2011-04-09 Bob Friesenhahn <[email protected]>
11881
11882 * configure.ac: Should use AC_CANONICAL_HOST since host specifies
11883 the run-time target whereas target is used to specify the final
11884 output target if the package is a build tool (like a compiler),
11885 which libtiff is not. Resolves libtiff bug 2307 "Use
11886 AC_CANONICAL_HOST macro".
11887
11888 2011-04-02 Bob Friesenhahn <[email protected]>
11889
11890 * configure.ac: Support configuring TIFF_INT64_FORMAT and
11891 TIFF_UINT64_FORMAT appropriately for MinGW32.
11892
11893 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
11894 printf conventions for 64-bit types because it uses the WIN32 CRT.
11895
11896 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
11897 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
11898 printf conventions for 64-bit types because it uses the WIN32 CRT.
11899
11900 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
11901 understood by WIN32 CRT.
11902
11903 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
11904
11905 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
11906 it is much more portable. Tmpfile is included in ISO/IEC
11907 9899:1990 and the WIN32 CRT.
11908
11909 2011-03-26 Frank Warmerdam <[email protected]>
11910
11911 * tools/tiffset.c: add -d and -sd switches to allow operation on
11912 a particular directory, not just the first (jef).
11913
11914 2011-03-21 Frank Warmerdam <[email protected]>
11915
11916 * libtiff/tif_thunder.c: Correct potential buffer overflow with
11917 thunder encoded files with wrong bitspersample set. The libtiff
11918 development team would like to thank Marin Barbella and TippingPoint's
11919 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
11920 CVE-2011-1167).
11921 http://bugzilla.maptools.org/show_bug.cgi?id=2300
11922
11923 2011-03-10 Frank Warmerdam <[email protected]>
11924
11925 * libtiff/tif_fax3.h: Fix to last change allowing zero length
11926 runs at the start of a scanline - needed for legal cases.
11927
11928 2011-03-02 Frank Warmerdam <[email protected]>
11929
11930 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
11931 a move left. Without this, a malicious input file can generate an
11932 indefinitely large series of runs without a0 ever reaching the right
11933 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192.
11934 This is a modified version of a patch proposed by Drew Yao of Apple
11935 Product Security. It adds an unexpected() report, and disallows the
11936 equality case, since emitting a run without increasing a0 still allows
11937 buffer overrun.
11938
11939 2011-02-23 Frank Warmerdam <[email protected]>
11940
11941 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
11942
11943 * tools/tiff2rgba.c: close source file on error to make leak
11944 detection easier.
11945
11946 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
11947
11948 http://bugzilla.maptools.org/show_bug.cgi?id=2295
11949
11950 2011-02-22 Frank Warmerdam <[email protected]>
11951
11952 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
11953 _SUPPORT)
11954
11955 2011-02-18 Frank Warmerdam <[email protected]>
11956
11957 * configure.ac, configure: Added support for --enable-chunky-strip-read
11958 configure option to enable the experimental feature from a couple
11959 months ago for reading big strips in chunks.
11960
11961 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
11962 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
11963 Implement optional support for deferring the load of strip/tile
11964 offset and size tags for optimized scanning of directories. Enabled
11965 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
11966 #define in tif_config.h).
11967
11968 2011-02-11 Frank Warmerdam <[email protected]>
11969
11970 * libtiff/tif_print.c: remove unused variable.
11971
11972 2011-02-09 Frank Warmerdam <[email protected]>
11973
11974 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem
11975 with non-console (popup message) builds on win32.
11976
11977 http://bugzilla.maptools.org/show_bug.cgi?id=2293
11978
11979 2011-01-24 Olivier Paquet <[email protected]>
11980
11981 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
11982 tif_print.c, tiff.h, tiffiop.h} : Added support for
11983 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
11984 values for each sample. Presents the min/max of all samples by default for
11985 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
11986 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
11987 http://www.asmail.be/msg0055458208.html
11988
11989 2011-01-06 Frank Warmerdam <[email protected]>
11990
11991 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
11992 maintained.
11993
11994 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
11995 for CHUNKY_STRIP_READ_SUPPORT.
11996
11997 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
11998 during JPEGPreDecode and JPEGDecode calls.
11999 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
12000 as compression formats like JPEG keep 16 lines interleaved in a sense
12001 and might need to touch quite a bit of data.
12002
12003 http://trac.osgeo.org/gdal/ticket/3894
12004
12005 2011-01-03 Lee Howard <[email protected]>
12006
12007 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
12008 caused by commit on 2010-12-14. Submitted by e-mail from
12009 Even Rouault <[email protected]>
12010
12011 2010-12-31 Olivier Paquet <[email protected]>
12012
12013 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
12014 http://bugzilla.maptools.org/show_bug.cgi?id=2266
12015
12016 2010-12-23 Andrey Kiselev <[email protected]>
12017
12018 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
12019 compression level parameter (preset) for Deflate and LZMA encoders,
12020 e.g "-c lzma:p1" or "-c zip:p9".
12021
12022 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level
12023 (preset) in LZMAVSetField().
12024
12025 2010-12-18 Bob Friesenhahn <[email protected]>
12026
12027 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
12028 Makefile.
12029
12030 2010-12-14 Andrey Kiselev <[email protected]>
12031
12032 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
12033 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
12034 TIFF compression scheme LZMA reserving a new value 34925 for
12035 Compression tag. As per
12036 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
12037
12038 2010-12-14 Lee Howard <[email protected]>
12039
12040 * libtiff/tif_dirread.c: tolerate some cases where
12041 FIELD_COLORMAP is missing
12042 http://bugzilla.maptools.org/show_bug.cgi?id=2189
12043
12044 2010-12-14 Lee Howard <[email protected]>
12045
12046 * libtiff/tif_read.c: change read_ahead to tmsize_t
12047 http://bugzilla.maptools.org/show_bug.cgi?id=2222
12048
12049 2010-12-14 Lee Howard <[email protected]>
12050
12051 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on
12052 Windows except on Cygwin
12053 http://bugzilla.maptools.org/show_bug.cgi?id=2224
12054
12055 2010-12-14 Lee Howard <[email protected]>
12056
12057 * tools/gif2tiff.c: fix buffer overrun
12058 http://bugzilla.maptools.org/show_bug.cgi?id=2270
12059
12060 2010-12-14 Lee Howard <[email protected]>
12061
12062 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
12063 to improve compatibility with various viewers
12064 submitted by e-mail from Dwight Kelly <[email protected]>
12065
12066 2010-12-13 Lee Howard <[email protected]>
12067
12068 * tools/fax2ps.c: be consistent with page-numbering
12069 http://bugzilla.maptools.org/show_bug.cgi?id=2225
12070
12071 2010-12-13 Lee Howard <[email protected]>
12072
12073 * libtiff/tif_color.c: prevent crash in handling bad TIFFs
12074 resolves CVE-2010-2595
12075 http://bugzilla.maptools.org/show_bug.cgi?id=2208
12076
12077 2010-12-13 Lee Howard <[email protected]>
12078
12079 * tools/tiffcrop.c: new release by Richard Nolde
12080 http://bugzilla.maptools.org/show_bug.cgi?id=2004
12081
12082 2010-12-12 Lee Howard <[email protected]>
12083
12084 * tools/tiff2pdf.c: fix colors for images with RGBA
12085 interleaved data
12086 http://bugzilla.maptools.org/show_bug.cgi?id=2250
12087
12088 2010-12-12 Lee Howard <[email protected]>
12089
12090 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
12091 http://bugzilla.maptools.org/show_bug.cgi?id=2164
12092
12093 2010-12-11 Lee Howard <[email protected]>
12094
12095 * tools/tiff2pdf.c: remove invalid duplication for Lab
12096 http://bugzilla.maptools.org/show_bug.cgi?id=2162
12097
12098 2010-12-11 Lee Howard <[email protected]>
12099
12100 * libtiff/tif_jpeg.c: fix use of clumplines calculation
12101 http://bugzilla.maptools.org/show_bug.cgi?id=2149
12102
12103 2010-12-11 Lee Howard <[email protected]>
12104
12105 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
12106 http://bugzilla.maptools.org/show_bug.cgi?id=2118
12107
12108 2010-12-11 Lee Howard <[email protected]>
12109
12110 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
12111 libtiff/tif_zip.c: fix build errors for VC6
12112 http://bugzilla.maptools.org/show_bug.cgi?id=2105
12113
12114 2010-12-11 Lee Howard <[email protected]>
12115
12116 * libtiff/tif_stream.cxx: warnings cleanup
12117 http://bugzilla.maptools.org/show_bug.cgi?id=2091
12118 * libtiff/tif_dirread.c: warnings cleanup
12119 http://bugzilla.maptools.org/show_bug.cgi?id=2092
12120
12121 2010-12-11 Lee Howard <[email protected]>
12122
12123 * tools/tiff2pdf.c: add fill-page option
12124 http://bugzilla.maptools.org/show_bug.cgi?id=2051
12125
12126 2010-12-11 Lee Howard <[email protected]>
12127
12128 * libtiff/tif_dirread.c: modify warnings
12129 http://bugzilla.maptools.org/show_bug.cgi?id=2016
12130
12131 2010-12-11 Lee Howard <[email protected]>
12132
12133 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data
12134 http://bugzilla.maptools.org/show_bug.cgi?id=1999
12135
12136 2010-12-11 Lee Howard <[email protected]>
12137
12138 * tools/tiffinfoce.c: strip byte counts are uint64* now
12139
12140 2010-12-11 Lee Howard <[email protected]>
12141
12142 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
12143 or missing byte-count tag
12144 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
12145 per http://bugzilla.maptools.org/show_bug.cgi?id=1996
12146
12147 2010-12-08 Lee Howard <[email protected]>
12148
12149 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
12150 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
12151
12152 2010-12-06 Lee Howard <[email protected]>
12153
12154 * libtiff/tif_open.c: Fix mode check before opening a file.
12155 http://bugzilla.maptools.org/show_bug.cgi?id=1906
12156
12157 2010-11-27 Bob Friesenhahn <[email protected]>
12158
12159 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
12160 Patch by Vincent Torri.
12161
12162 2010-10-21 Frank Warmerdam <[email protected]>
12163
12164 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
12165
12166 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
12167
12168 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
12169
12170 2010-09-25 Lee Howard <[email protected]>
12171
12172 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde
12173 with additional command line options for Document Title,
12174 Document Creator, and Page Orientation
12175
12176 2010-07-13 Bob Friesenhahn <[email protected]>
12177
12178 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a
12179 potentially unterminated buffer due to using an exceptionally long
12180 file name.
12181
12182 2010-07-08 Andrey Kiselev <[email protected]>
12183
12184 * tools/tiff2pdf.c: Fixed ID buffer filling in
12185 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
12186
12187 2010-07-07 Andrey Kiselev <[email protected]>
12188
12189 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
12190 to expected value as the warning message suggests. As per bug
12191 http://bugzilla.maptools.org/show_bug.cgi?id=1963
12192
12193 2010-07-06 Andrey Kiselev <[email protected]>
12194
12195 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
12196 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
12197 which should be set by value.
12198
12199 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
12200 and _TIFFFieldWithName() if the tag is not found in the tag table.
12201 This should be normal situation and returned NULL value should be
12202 properly handled by the caller.
12203
12204 2010-07-02 Andrey Kiselev <[email protected]>
12205
12206 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
12207 integer type conversions. As per bug
12208 http://bugzilla.maptools.org/show_bug.cgi?id=2207
12209
12210 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
12211 WhitePoint tag as per bug
12212 http://bugzilla.maptools.org/show_bug.cgi?id=2042
12213
12214 * libtiff/tif_getimage.c: Check the number of samples per pixel when
12215 working with YCbCr image in PickContigCase(). As per bug
12216 http://bugzilla.maptools.org/show_bug.cgi?id=2216
12217
12218 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
12219 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
12220 we don't need any post-processing. That helps to reset the hook if we
12221 previously set this field to some other value and the hook was
12222 initialized accordingly. As per bug
12223 http://bugzilla.maptools.org/show_bug.cgi?id=2035
12224
12225 2010-07-01 Andrey Kiselev <[email protected]>
12226
12227 * tools/tiffgt.c: Properly check the raster buffer allocations for
12228 integer overflows. As per bug
12229 http://bugzilla.maptools.org/show_bug.cgi?id=2108
12230
12231 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
12232 upstream.
12233
12234 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
12235 multiply_32() and multiply_64() functions into tif_aux.c file and
12236 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
12237
12238 2010-06-30 Andrey Kiselev <[email protected]>
12239
12240 * tools/tiff2pdf.c: Better generation of ID field in
12241 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
12242
12243 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when
12244 converting JPEG encoded tiles.
12245
12246 * tools/tiff2pdf.c: Better handling of string fields, use static
12247 string buffers instead of dynamically allocated, use strncpy() instead
12248 of strcpy(), control the string lengths.
12249
12250 2010-06-25 Andrey Kiselev <[email protected]>
12251
12252 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid
12253 referencing to uninitialized memory in some cases (e.g. when tile size
12254 set bigger than the image size).
12255
12256 2010-06-15 Bob Friesenhahn <[email protected]>
12257
12258 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
12259 subsampled data since tiffcrop currently doesn't support it. Fix
12260 JPEG support.
12261
12262 2010-06-13 Frank Warmerdam <[email protected]>
12263
12264 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
12265
12266 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
12267 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
12268 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
12269 size is larger. Also, there are a bunch of places that try to
12270 memset() a malloc'd buffer before checking for malloc failure, which
12271 would result in core dump if there actually were a failure. (#2211)
12272
12273 2010-06-11 Bob Friesenhahn <[email protected]>
12274
12275 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
12276 avoid compiler warnings if parameter types are not sign
12277 consistent.
12278
12279 * libtiff 4.0.0alpha6 released.
12280
12281 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
12282 European page size dimensions. Added an option to allow the user
12283 to specify a custom page size on the command line. Fix the case
12284 where a page size specified with a fractional part was being
12285 coerced to an integer by retyping the variables that define the
12286 paper size.
12287
12288 * html/index.html: Update for the 3.9.3 release.
12289
12290 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
12291 YCbCr subsampled data since tiffcp currently doesn't support it.
12292 http://bugzilla.maptools.org/show_bug.cgi?id=2097
12293
12294 * Update libtool to version 2.2.10.
12295
12296 2010-06-10 Bob Friesenhahn <[email protected]>
12297
12298 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
12299 multiplier is zero.
12300
12301 2010-06-09 Bob Friesenhahn <[email protected]>
12302
12303 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
12304 CVE-2010-1411 was not complete.
12305
12306 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
12307 multiply two integers. Returns zero if there is an integer
12308 overflow.
12309
12310 * tools/tiffcp.c (main): tiffcp should not leak memory if an error
12311 is reported when reading the input file.
12312
12313 2010-06-08 Bob Friesenhahn <[email protected]>
12314
12315 * Update libtool to version 2.2.8.
12316
12317 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
12318 buffer due to integer overflow in TIFFroundup() and several other
12319 potential overflows. In conjunction with the fix to TIFFhowmany(),
12320 fixes CVE-2010-1411.
12321
12322 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
12323 result in an integer overflow. This causes TIFFroundup() to also
12324 return zero if there would be an integer overflow.
12325
12326 * contrib: Add an emacs formatting mode footer to all source files
12327 so that emacs can be effectively used.
12328
12329 2010-06-03 Oliver Chen Feng <[email protected]>
12330
12331 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
12332 file PAGENUMBER value in sequence for users who care the page
12333 sequence, this will also prevent tiff2pdf from creating pdf file from
12334 the merged tiff file with wrong page sequence.
12335
12336 2010-05-08 Olivier Paquet <[email protected]>
12337
12338 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
12339 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
12340 * libtiff/tif_dirinfo.c: Use correct set_field_type for
12341 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
12342 http://bugzilla.maptools.org/show_bug.cgi?id=2192
12343
12344 2010-05-07 Frank Warmerdam <[email protected]>
12345
12346 * libtiff/tif_jpeg.c: Ensure that quality is always set in
12347 JPEGPreEncode(), not just when we want to output local tables.
12348 Otherwise the quality used during compression may not be right and
12349 might not match the tables in the tables tag. This bug only occurs
12350 when seeking between directories in the midst of writing blocks.
12351 http://trac.osgeo.org/gdal/ticket/3539
12352
12353 2010-05-06 Andrey Kiselev <[email protected]>
12354
12355 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
12356 Regenerated from the source.
12357
12358 2010-05-05 Olivier Paquet <[email protected]>
12359
12360 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
12361 had stopped working. Also made it always print 6 floats instead of
12362 2*SamplesPerPixel.
12363 http://bugzilla.maptools.org/show_bug.cgi?id=2191
12364 http://bugzilla.maptools.org/show_bug.cgi?id=2186
12365 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
12366 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
12367
12368 2010-05-05 Frank Warmerdam <[email protected]>
12369
12370 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
12371 if the jpeg table was written. This is a fix for the last fix on 04-21.
12372
12373 2010-04-21 Frank Warmerdam <[email protected]>
12374
12375 * libtiff/tif_jpeg.c: avoid preparing jpeg tables every time
12376 JPEGSetupEncode() is called if the tables already seem to be
12377 established. This prevents spurious updates and rewriting of
12378 directories with jpegtables when doing updates to existing images.
12379 http://trac.osgeo.org/gdal/ticket/3539
12380
12381 2010-04-20 Olivier Paquet <[email protected]>
12382
12383 * libtiff/tif_dirinfo.c: Use correct set_field_type for
12384 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
12385 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
12386 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
12387 http://bugzilla.maptools.org/show_bug.cgi?id=2139
12388
12389 2010-04-10 Bob Friesenhahn <[email protected]>
12390
12391 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
12392 when the tag count value is zero. Error handling is still a
12393 regression since in 3.9.2, empty tags are skipped (with a warning)
12394 rather than returning a hard error and refusing to read the file.
12395
12396 * tools/ppm2tiff.c (main): While case for parsing comment line
12397 requires extra parenthesis to work as expected. Reported by
12398 Thomas Sinclair.
12399
12400 2010-04-02 Frank Warmerdam <[email protected]>
12401
12402 * libtiff/tif_read.c (primarily): Add support for
12403 CHUNKY_STRIP_READ_SUPPORT where large strips are
12404 read in chunks for applications using TIFFReadScanline().
12405 This is intended to make it more practical work with very
12406 large compressed one-strip files. Feature is off by default.
12407 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
12408 http://trac.osgeo.org/gdal/ticket/3514
12409
12410 2010-03-31 Frank Warmerdam <[email protected]>
12411
12412 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
12413 directories so previously placed directories will be migrated to
12414 the end of file if needed.
12415
12416 2010-03-30 Frank Warmerdam <[email protected]>
12417
12418 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
12419 to support operating on strips/tiles of more than 256MB.
12420 http://trac.osgeo.org/gdal/ticket/3512
12421
12422 2010-03-10 Bob Friesenhahn <[email protected]>
12423
12424 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
12425 that it is clearly a memory allocation error message, and also
12426 includes the size of the allocation request.
12427
12428 2010-02-22 Lee Howard <[email protected]>
12429
12430 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
12431 the JPEG TIFF as is is not required in order to prevent it from
12432 being unused and filled with invalid data. (Leave it to be
12433 generated by later activity.)
12434 http://bugzilla.maptools.org/show_bug.cgi?id=2135
12435 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
12436 data rather than skipping them. This fixes the ability to view in
12437 Acrobat Reader, Evince, and Ghostscript.
12438 http://bugzilla.maptools.org/show_bug.cgi?id=2135
12439 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
12440 strips.
12441 http://bugzilla.maptools.org/show_bug.cgi?id=2029
12442
12443 2009-12-03 Frank Warmerdam <[email protected]>
12444
12445 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
12446 Made so that when working with downsampled images a stub function
12447 reporting an error is used for tif_decoderow. We cannot meaningfully
12448 support reading scanlines in this situation. (#1936)
12449
12450 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
12451 resetting of the upsampling values (gdal:#3259).
12452 http://bugzilla.maptools.org/show_bug.cgi?id=1936
12453
12454 2009-11-30 Frank Warmerdam <[email protected]>
12455
12456 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
12457 tools/ras2tiff.c: Fix resource leaks on error.
12458 http://bugzilla.maptools.org/show_bug.cgi?id=2121
12459
12460 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
12461 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
12462 of as a custom(generic) field to avoid a potential reentrancy problem.
12463 http://bugzilla.maptools.org/show_bug.cgi?id=2125
12464
12465 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
12466 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
12467 const, and display_sRGB static and const.
12468 http://bugzilla.maptools.org/show_bug.cgi?id=2124
12469
12470 2009-11-04 Bob Friesenhahn <[email protected]>
12471
12472 * libtiff 4.0.0alpha5 released.
12473
12474 2009-11-03 Bob Friesenhahn <[email protected]>
12475
12476 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This
12477 version has undergone substantial testing with arbitrary sample
12478 bit depths. Also eliminates GCC compilation warnings.
12479
12480 2009-11-02 Bob Friesenhahn <[email protected]>
12481
12482 * port/libport.h: Add extern declarations for getopt standard
12483 globals.
12484
12485 2009-10-31 Bob Friesenhahn <[email protected]>
12486
12487 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
12488 noticed in 64-bit build of libtiff with Visual Studio 2005.
12489 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
12490 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
12491
12492 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
12493 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
12494 Visual Studio 2005 64-bit warning in tif_pixarlog.c",
12495 http://bugzilla.maptools.org/show_bug.cgi?id=2068
12496
12497 2009-10-29 Bob Friesenhahn <[email protected]>
12498
12499 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
12500 pointer" warnings.
12501
12502 2009-10-28 Bob Friesenhahn <[email protected]>
12503
12504 * html/tools.html: Add manual page links, and a summary
12505 description of tiffcrop.
12506
12507 2009-10-07 Bob Friesenhahn <[email protected]>
12508
12509 * configure.ac: x86_64 should use the same fill order as i386.
12510
12511 2009-09-24 Bob Friesenhahn <[email protected]>
12512
12513 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
12514 Nolde. Major updates to add significant functionality for reading
12515 and writing tile based images with bit depths not a multiple of 8
12516 which cannot be handled by tiffcp.
12517
12518 2009-09-03 Bob Friesenhahn <[email protected]>
12519
12520 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
12521 do_fancy_upsampling=FALSE in order to read raw data. Resolves
12522 "Bug 2090 - OJPEG crash with libjpeg v7".
12523 http://bugzilla.maptools.org/show_bug.cgi?id=2090
12524
12525 2009-09-03 Frank Warmerdam <[email protected]>
12526
12527 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
12528 interface when stoponerror is set.
12529 http://bugzilla.maptools.org/show_bug.cgi?id=2071
12530
12531 2009-08-30 Bob Friesenhahn <[email protected]>
12532
12533 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
12534 fix build with gcc when using the "-Wformat
12535 -Werror=format-security" flags.
12536
12537 2009-08-29 Bob Friesenhahn <[email protected]>
12538
12539 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
12540 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
12541 utilities tests.
12542
12543 2009-08-28 Bob Friesenhahn <[email protected]>
12544
12545 * tools/tiffinfo.c: tiffinfo should return error status to the
12546 caller. Register a private error callback to accomplish that.
12547
12548 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
12549 PNM formats so that we will be able to test more of the tools.
12550 While adding these test images I notice that bmp2tiff and gif2tiff
12551 only support ancient versions of their respective formats.
12552
12553 2009-08-27 Bob Friesenhahn <[email protected]>
12554
12555 * libtiff 4.0.0alpha4 released.
12556
12557 * HOWTO-RELEASE: Improved release instructions.
12558
12559 2009-08-24 Bob Friesenhahn <[email protected]>
12560
12561 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
12562 fixes for "Bug 2023 - nroff errors in manual pages".
12563 http://bugzilla.maptools.org/show_bug.cgi?id=2023
12564
12565 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
12566 CVE-2009-2347 libtiff: integer overflows in various inter-color
12567 space conversion tools".
12568 http://bugzilla.maptools.org/show_bug.cgi?id=2079
12569
12570 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
12571 Berkenbilt for "Bug 2024 - possible null pointer dereference with
12572 one-line fix".
12573 http://bugzilla.maptools.org/show_bug.cgi?id=2024
12574
12575 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
12576 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
12577 segfault after setting tdir_tag = IGNORE".
12578 http://bugzilla.maptools.org/show_bug.cgi?id=1895
12579
12580 2009-08-23 Bob Friesenhahn <[email protected]>
12581
12582 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing
12583 tiffcrop.sh into a collection of many specific tests. Re-wrote
12584 all of the existing tests to be based on some simple shell
12585 functions. Make distcheck works again.
12586
12587 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
12588 added 'memcheck' and 'ptrcheck' targets to make it easy to run the
12589 tests under valgrind.
12590
12591 2009-08-21 Bob Friesenhahn <[email protected]>
12592
12593 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
12594 build.
12595
12596 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
12597 actually activated since it needed to be enabled in this
12598 Makefile.am. Also activated parallel-tests mode since it offers
12599 useful features such as per-test .log files and a summary test
12600 report .log file.
12601
12602 2009-08-20 Bob Friesenhahn <[email protected]>
12603
12604 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11,
12605 libtool 2.2.6. Enabled support for silent build rules
12606 (--enable-silent-rules or 'make V=0') and colorized tests.
12607
12608 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
12609
12610 2009-06-30 Frank Warmerdam <[email protected]>
12611
12612 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
12613
12614 * tools/tiffcp.c: add -c sgilog support.
12615
12616 * libtiff/tif_luv.c: correct return codes from encoderow to be
12617 1 on success instead of zero.
12618 http://bugzilla.maptools.org/show_bug.cgi?id=2069
12619
12620 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
12621 #1085 for a better underflow fix that errors properly.
12622 http://bugzilla.maptools.org/show_bug.cgi?id=2065
12623 http://bugzilla.maptools.org/show_bug.cgi?id=1985
12624
12625 2009-06-26 Frank Warmerdam <[email protected]>
12626
12627 * libtiff/tif_strip.c: Remove an inappropriate assertion that often
12628 fails on oddly sized 12bit jpeg compressed ycbcr images.
12629
12630 2009-06-22 Frank Warmerdam <[email protected]>
12631
12632 * libtiff/tif_lzw.c: Fix buffer underflow bug.
12633 http://bugzilla.maptools.org/show_bug.cgi?id=2065
12634
12635 2009-06-21 Frank Warmerdam <[email protected]>
12636
12637 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
12638 for dual mode 8/12 bit jpeg support.
12639
12640 2009-06-03 Frank Warmerdam <[email protected]>
12641
12642 * libtiff/tif_write.c: do not override the planar configuration to be
12643 contig for one sample files if planar configuration is already set.
12644 http://bugzilla.maptools.org/show_bug.cgi?id=2057
12645
12646 2009-06-02 Frank Warmerdam <[email protected]>
12647
12648 * libtiff/libtiff.def: Add TIFFUnsetField.
12649
12650 2009-05-03 Frank Warmerdam <[email protected]>
12651
12652 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
12653 error reports to use "%s" as format string.
12654 http://trac.osgeo.org/gdal/ticket/2976
12655
12656 2009-03-12 Frank Warmerdam <[email protected]>
12657
12658 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
12659 for some codecs (#2020).
12660
12661 2009-02-12 Frank Warmerdam <[email protected]>
12662
12663 * libtiff/tif_luv.c: Fix handling of tiled logluv images.
12664 http://bugzilla.maptools.org/show_bug.cgi?id=2005
12665
12666 2009-02-09 Frank Warmerdam <[email protected]>
12667
12668 * libtiff/tif_dirread.c: Improve allocation safety when allocated
12669 buffer for large tags. (#1998) Related to (#1993)
12670
12671 2009-02-06 Frank Warmerdam <[email protected]>
12672
12673 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the
12674 test suite should pass.
12675
12676 2009-02-05 Frank Warmerdam <[email protected]>
12677
12678 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
12679 but at the 2GB boundary to avoid overflow on 32bit systems.
12680 http://bugzilla.maptools.org/show_bug.cgi?id=1993
12681
12682 * libtiff/tif_dirread.c: Remove some assertions that blow due to
12683 corrupt files rather than in response to library internal
12684 inconsistencies.
12685 http://bugzilla.maptools.org/show_bug.cgi?id=1995
12686 http://bugzilla.maptools.org/show_bug.cgi?id=1991
12687
12688 * libtiff/tif_dirread.c: Fixed testing for failed result from
12689 TIFFReadDirectoryFindFieldInfo().
12690 http://bugzilla.maptools.org/show_bug.cgi?id=1992
12691
12692 2009-01-23 Frank Warmerdam <[email protected]>
12693
12694 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
12695 http://bugzilla.maptools.org/show_bug.cgi?id=1911
12696
12697 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
12698
12699 http://bugzilla.maptools.org/show_bug.cgi?id=1924
12700
12701 * tools/tiffcrop.c: initialize xres/yres values.
12702
12703 * test/*.sh - default ${srcdir} to local directory.
12704
12705 * test/common.sh - start verbose mode after common settings.
12706
12707 * libtiff/tif_dirinfo.c: Replace lfind() with local equivalent to
12708 avoid type mismatches on different platforms.
12709 http://bugzilla.maptools.org/show_bug.cgi?id=1889
12710
12711 2009-01-22 Frank Warmerdam <[email protected]>
12712
12713 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
12714 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
12715
12716 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
12717 defined, primarily to reduce prototype warnings on windows.
12718
12719 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
12720 about unused parameters, and uninitialized variables.
12721
12722 2009-01-21 Bob Friesenhahn <[email protected]>
12723
12724 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
12725 order to trace full execution detail while executing the test suite.
12726
12727 2009-01-20 Frank Warmerdam <[email protected]>
12728
12729 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
12730
12731 2009-01-20 Bob Friesenhahn <[email protected]>
12732
12733 * test/Makefile.am (CLEANFILES): Make sure that test output files
12734 are removed by 'make clean'
12735
12736 * Update autotools for 4.0.0 beta3
12737
12738 * 4.0.0 beta3 produced.
12739
12740 2009-01-12 Bob Friesenhahn <[email protected]>
12741
12742 * test/tiffcrop.sh: New test script for tiffcrop from Richard
12743 Nolde.
12744
12745 * tools/tiff2ps.c: Remove spurious message to stderr.
12746
12747 2009-01-11 Bob Friesenhahn <[email protected]>
12748
12749 * tools/tiff2ps.c: Incorporated significant functionality update
12750 from Richard Nolde. In particular, support for rotating the image
12751 by 90, 180, 270, and 'auto' has been added.
12752
12753 * man/tiffcrop.1: Incorporated documentation updates from Richard
12754 Nolde.
12755
12756 * tools/tiffcrop.c: Incorporated significant functionality update
12757 from Richard Nolde.
12758
12759 2008-12-31 Bob Friesenhahn <[email protected]>
12760
12761 * libtiff/tiffio.h: GCC will now validate format specifications
12762 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
12763 TIFFWarningExt() in order to reveal bugs.
12764
12765 * Many fixes throughout to work better as a 64-bit build.
12766
12767 2008-12-30 Bob Friesenhahn <[email protected]>
12768
12769 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
12770 tags now require 64-bit parameter rather than 32-bit.
12771
12772 * libtiff/tif_dirread.c: Fixed issues with unaligned access to
12773 64-bit values.
12774
12775 * tools/thumbnail.c: Eliminate crash noticed while running test
12776 suite.
12777
12778 2008-12-29 Bob Friesenhahn <[email protected]>
12779
12780 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
12781 Initialize stack variables to avoid compiler warning.
12782
12783 * tools/tiffinfoce.c (main): Use toff_t for offset type when
12784 retrieving offset of EXIF IFD.
12785
12786 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
12787 TIFFClientOpen() callback and other external function definitions.
12788
12789 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
12790 type now. Fixes crash when dumping files containing an EXIF IFD.
12791
12792 * m4/libtool.m4: Update to libtool 2.2.6.
12793
12794 2008-12-21 Frank Warmerdam <[email protected]>
12795
12796 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
12797
12798 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full
12799 strip for the last partial strip in a jpeg compressed file.
12800 http://bugzilla.maptools.org/show_bug.cgi?id=1981
12801
12802 2008-10-29 Frank Warmerdam <[email protected]>
12803
12804 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
12805 we take the shortcut to only update the strip/tile offsets in place.
12806 http://trac.osgeo.org/gdal/ticket/2621
12807
12808 2008-10-21 Andrey Kiselev <[email protected]>
12809
12810 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
12811 the older versions retained).
12812
12813 2008-10-09 Frank Warmerdam <[email protected]>
12814
12815 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
12816 IPP enabled version of libjpeg from Intel.
12817 http://bugzilla.maptools.org/show_bug.cgi?id=1951
12818
12819 2008-09-05 Andrey Kiselev <[email protected]>
12820
12821 * tools/tiffsplit.c: Use byte counts of proper size (uint64).
12822 Required for libtiff 4.0.
12823
12824 * tools/tiffsplit.c: Use dynamically allocated array instead of static
12825 when constructing output file names.
12826
12827 2008-09-03 Andrey Kiselev <[email protected]>
12828
12829 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
12830 doing the filename/path construction.
12831
12832 * tools/tiff2pdf.c: More appropriate format string in
12833 t2p_write_pdf_string(); avoid signed/unsigned mismatch.
12834
12835 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
12836
12837 http://bugzilla.maptools.org/show_bug.cgi?id=1929
12838
12839 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes
12840 CVE-2008-2327 security issue.
12841
12842 2008-09-01 Frank Warmerdam <[email protected]>
12843
12844 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
12845
12846 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
12847 depending on whether the file is bigtiff or classic tiff.
12848 http://bugzilla.maptools.org/show_bug.cgi?id=1917
12849
12850 2008-08-12 Edward Lam <[email protected]>
12851
12852 * tools/tiffdump.c: When compiling for Microsoft Windows, apply
12853 consistent (__int64) casting when testing if _lseeki64 has
12854 successfully sought as requested. This is necessary for large
12855 file support to work since off_t is only 32-bit.
12856
12857 2008-07-29 Frank Warmerdam <[email protected]>
12858
12859 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or
12860 the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
12861 with control logic to return runtime errors (c/o Even Rouault) (#1927).
12862
12863 2008-06-17 Frank Warmerdam <[email protected]>
12864
12865 * tools/tiffcrop.c: Fix some portability problems.
12866
12867 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
12868 used in tif_jpeg.c.
12869
12870 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
12871 as TIFFOpen().
12872
12873 2008-06-01 Frank Warmerdam <[email protected]>
12874
12875 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
12876 like Sparc/Solaris.
12877 http://bugzilla.maptools.org/show_bug.cgi?id=1892
12878
12879 2008-05-27 Frank Warmerdam <[email protected]>
12880
12881 * libtiff.def: Add TIFFFindField
12882 http://bugzilla.maptools.org/show_bug.cgi?id=1891
12883
12884 2008-05-26 Frank Warmerdam <[email protected]>
12885
12886 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
12887
12888 * li2008-04-15 Andrey Kiselev <[email protected]>
12889
12890 btiff/tif_win32.c: Replace custom Win32 memory api with generic
12891 POSIX one. No apparent value to use of GlobalAlloc() in the modern
12892 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885
12893
12894 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
12895 in windows version (care of Edward Lam).
12896
12897 2008-05-24 Frank Warmerdam <[email protected]>
12898
12899 * tif_codec.c: Avoid NULL pointer dereferencing for exotic
12900 compression codec codes.
12901
12902 * tif_dirwrite.c: fix potential memory leak.
12903
12904 * tif_dirread.c: Fix unchecked malloc result.
12905
12906 2008-05-24 Bob Friesenhahn <[email protected]>
12907
12908 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
12909 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
12910 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
12911 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
12912 tiffdump.sh tiffinfo.sh}: Added more test scripts based on
12913 suggestions from Lee Howard posted to the tiff list on 13 Sep
12914 2007.
12915
12916 2008-05-23 Frank Warmerdam <[email protected]>
12917
12918 * libtiff/tif_fax3.c: Add an assert in an effort to detect a
12919 possible runtime problem reported by coverity.
12920
12921 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
12922
12923 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
12924 http://bugzilla.maptools.org/show_bug.cgi?id=1888
12925
12926 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak.
12927
12928 * tools/rgb2ycbcr.c: fix memory leak of raster buffer.
12929
12930 * tools/tiffcp.c: Simplify inknames code to avoid pointless test.
12931 Cleanup scanline allocation to avoid coverity warning.
12932
12933 * tools/thumbnail.c: Check for TIFFOpen() failure.
12934
12935 2008-05-18 Frank Warmerdam <[email protected]>
12936
12937 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
12938 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear
12939 why this is needed.
12940
12941 2008-05-09 Bob Friesenhahn <[email protected]>
12942
12943 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
12944 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4".
12945
12946 2008-04-15 Andrey Kiselev <[email protected]>
12947
12948 * test/: Test suite updated. Everything is passed now.
12949
12950 * libtiff/tif_dirinfo.c: Fixed description of the
12951 TIFFTAG_NUMBEROFINKS tag.
12952
12953 2008-04-14 Andrey Kiselev <[email protected]>
12954
12955 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
12956 Get rid of some of "dereferencing type-punned" warnings by converting
12957 tdir_offset field of TIFFDirEntry structure into union.
12958
12959 2008-04-10 Andrey Kiselev <[email protected]>
12960
12961 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
12962 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
12963 from the public interface. Type of its 'count' parameter changed
12964 from uint32 to tmsize_t.
12965
12966 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
12967 of the tiff structure have the size_t type instead of uint32.
12968
12969 2008-04-09 Andrey Kiselev <[email protected]>
12970
12971 * tools/tiffdump.c: Added support for MSVS 6.0.
12972
12973 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
12974 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
12975 point values on MSVS 6.0 platform.
12976
12977 2008-03-14 Frank Warmerdam <[email protected]>
12978
12979 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in
12980 TIFFReadDirEntryArray() since they are interfering with seemingly
12981 legitimate files. http://trac.osgeo.org/gdal/ticket/2005
12982
12983 2008-02-09 Joris Van Damme <[email protected]>
12984
12985 * tif_dirread.c: Added handling for the case of number of values for
12986 PageNumber tag different from 2 (previously resulted in an assert
12987 indicating lack of handling and was forgotten about)
12988
12989 2008-02-01 Frank Warmerdam <[email protected]>
12990
12991 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
12992 the actual jpeg data stream if the first strip/tile has zero size.
12993 This is the case when GDAL creates a new file with zero sizes, closes
12994 and reopens it.
12995
12996 2008-01-07 Frank Warmerdam <[email protected]>
12997
12998 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
12999
13000 2008-01-01 Frank Warmerdam <[email protected]>
13001
13002 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
13003
13004 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
13005 targets.
13006
13007 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
13008 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
13009 (x64).
13010
13011 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
13012 and TIFFFieldWithName() now return TIFFField pointers instead of
13013 TIFFFieldInfo pointers.
13014
13015 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
13016 exist. This makes it compile again on Windows
13017
13018 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
13019 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
13020
13021 * test/rewrite_tag.c: New test for TIFFRewriteField().
13022
13023 2007-12-31 Frank Warmerdam <[email protected]>
13024
13025 * tif_dirwrite.c: Added TIFFRewriteField(). This new function
13026 rewrites one field "on disk" updating an existing directory
13027 entry. Lots of limitations still...
13028
13029 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
13030 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
13031 the strip offset/size values are dirty but nothing else about the
13032 directory is dirty. In flush handle "just stripmaps dirty" as a
13033 special case that just rewrites these values without otherwise
13034 modifying the directory on disk using TIFFRewriteField().
13035
13036 We also modify logic so that in update mode the directory is not
13037 marked dirty on read, but only when something is changed. This
13038 means we need to keep track of updates to the stripmap stuff in
13039 TIFFAppendToStrip().
13040
13041 2007-12-10 Frank Warmerdam <[email protected]>
13042
13043 * tif_jpeg.c: Improve ability to switch between encoding and decoding
13044 in the jpeg code (gdal bug #2033).
13045
13046 2007-11-23 Frank Warmerdam <[email protected]>
13047
13048 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
13049 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
13050 rawcp/rawcc buffer are for writing and thus may require flushing.
13051 Necessary to distinguish whether they need to be written to disk when
13052 in mixed read/write mode and doing a mixture of writing followed by
13053 reading. http://trac.osgeo.org/gdal/ticket/1758
13054
13055 2007-11-23 Andrey Kiselev <[email protected]>
13056
13057 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
13058 from Alexey Chupahin.
13059
13060 2007-11-02 Frank Warmerdam <[email protected]>
13061
13062 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
13063 establishing if an existing tile can be rewritten to the same location
13064 by comparing the current size to all the other blocks in the same
13065 directory. This is dangerous in many situations and can easily
13066 corrupt a file. (observed in esoteric GDAL situation that's hard to
13067 document). This change involves leaving the stripbytecount[] values
13068 unaltered till TIFFAppendToStrip(). Now we only write a block back
13069 to the same location it used to be at if the new data is the same
13070 size or smaller - otherwise we move it to the end of file.
13071
13072 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
13073 data when writing the directory just because we have BEENWRITING at
13074 some point in the past. This was causing odd junk to be written out
13075 in a tile of data when a single tile had an interleaving of reading
13076 and writing with reading last. (highlighted by gdal
13077 autotest/gcore/tif_write.py test 7.
13078
13079 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid
13080 modifying callers buffer.
13081 http://trac.osgeo.org/gdal/ticket/1965
13082
13083 * tif_predict.c/h: more fixes related to last item, keeping a
13084 distinct pfunc for encode and decode cases as these were getting
13085 mixed up sometimes.
13086 http://trac.osgeo.org/gdal/ticket/1948
13087
13088 2007-11-01 Frank Warmerdam <[email protected]>
13089
13090 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
13091 predictor based encoding and decoding works in read-write update
13092 mode properly.
13093 http://trac.osgeo.org/gdal/ticket/1948
13094
13095 2007-10-24 Joris Van Damme <[email protected]>
13096
13097 * tif_dirread.c: Fixed problem with bogus file triggering
13098 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
13099 ChopUpSingleUncompressedStrip
13100
13101 2007-10-22 Joris Van Damme <[email protected]>
13102
13103 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
13104 at best, access violation at worst, when subsampled JPEG compressed imagery
13105 is decoded without the JPEG_COLORMODE feature
13106
13107 2007-10-11 Frank Warmerdam <[email protected]>
13108
13109 * html/index.html: Update "people responsible" section.
13110
13111 2007-10-05 Frank Warmerdam <[email protected]>
13112
13113 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases
13114 as reported on the mailing list.
13115
13116 2007-10-01 Joris Van Damme <[email protected]>
13117
13118 * changed some more incorrect %lud printf flags to %lu
13119
13120 2007-09-29 Joris Van Damme <[email protected]>
13121
13122 * tif_dirread.c: Strip chopping interfered badly with uncompressed
13123 subsampled images because it tried to divide subsampled rowblocks,
13124 leading to all sorts of errors throughout the library for these
13125 images. Fixed by making strip chopping divide in row counts that
13126 are a multiple of vertical subsampling value.
13127
13128 2007-09-28 Joris Van Damme <[email protected]>
13129
13130 * tif_dirread.c: Logical cast working around compiler warning
13131
13132 * tif_read.c: Correction of some error flags and parameter lists
13133
13134 2007-09-27 Joris Van Damme <[email protected]>
13135
13136 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust
13137 when dealing with large bitspersample values, shutting up purification
13138 tools that warn about truncation, though it remains incorrect and
13139 indicates a conceptual problem there.
13140
13141 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading
13142 of first IFD) to proper place because it badly interfered with memory
13143 mapping, resulting in mapping flag even with dummy mapping functions
13144 that returned 0 whilst at the same time the mapping tif_size wasn't
13145 set, thus resulting in continuous incorrect beyond-eof errors.
13146
13147 2007-09-24 Joris Van Damme <[email protected]>
13148
13149 * tif_dirinfo.c: Fixed (MSVC) compiler reports about
13150 inconsistent use of const in tiffFields and exifFields definition
13151
13152 2007-09-20 Frank Warmerdam <[email protected]>
13153
13154 * tif_dirwrite.c: Always write tile/strip offsets and sizes
13155 using LONG8 type when output format is BigTIFF. The
13156 TIFFWriteDirectoryTagLongLong8Array() function was restructured
13157 accordingly.
13158
13159 * tif_dirread.c: Improvements to error reporting text in
13160 TIFFFetchDirectory().
13161
13162 2007-09-19 Bob Friesenhahn <[email protected]>
13163
13164 * test/images: Added a small collection of test images for use by
13165 test programs and scripts.
13166 * test/tiffinfo.sh: A trivial example test script.
13167 * test/common.sh: Added small script for setting the environment
13168 used by script-based tests.
13169
13170 2007-08-24 Frank Warmerdam <[email protected]>
13171
13172 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
13173 zero when writing directory contents to preserve the ability to
13174 rewrite directories in place, even in the middle of a directory
13175 chain.
13176
13177 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field
13178 definitions that are missing. Existing definitions are silently
13179 ignored.
13180
13181 * tif_dirread.c: Add runtime error for fields for which no definition
13182 is found (in addition to an assert for developers) in
13183 TIFFFetchNormalTag(). Not sure if this is needed, but it seems
13184 prudent.
13185
13186 2007-08-10 Joris Van Damme <[email protected]>
13187
13188 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
13189 from _TIFFRGBAImage structure to revert unwanted ABI change.
13190
13191 2007-08-10 Joris Van Damme <[email protected]>
13192
13193 * libtiff/tif_win32.c: use SetFilePointer instead of
13194 SetFilePointerEx, as per bug
13195
13196 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
13197
13198 2007-07-19 Andrey Kiselev <[email protected]>
13199
13200 * libtiff/tif_stream.cxx: Put all callback functions declarations
13201 inside extern "C" block.
13202
13203 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
13204 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
13205 formatter instead of "%lld" with MSVC compiler.
13206
13207 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and
13208 _TIFFUInt64ToDouble() functions.
13209
13210 2007-07-18 Andrey Kiselev <[email protected]>
13211
13212 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
13213 integer constants.
13214
13215 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
13216 remove tif_config.h/tiffconf.h during cleaning. As per bug
13217
13218 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
13219
13220 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
13221
13222 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
13223
13224 2007-07-13 Andrey Kiselev <[email protected]>
13225
13226 * libtiff 4.0.0alpha released.
13227
13228 2007-07-12 Andrey Kiselev <[email protected]>
13229
13230 * tools/tiff2pdf.c: Added missed extern optind as per bug
13231
13232 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
13233
13234 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
13235 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
13236 extending scheme completed.
13237
13238 2007-07-11 Bob Friesenhahn <[email protected]>
13239
13240 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to
13241 use standard C++ library size types and attempt to detect overflow
13242 cases.
13243
13244 2007-07-08 Andrey Kiselev <[email protected]>
13245
13246 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
13247 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
13248 tag extending scheme. Use the new scheme everywhere.
13249
13250 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
13251 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
13252 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
13253 TIFFFIeldInfo structure replaced with TIFFField structure.
13254 TIFFFieldInfo retained for the backward compatibility.
13255
13256 2007-07-05 Bob Friesenhahn <[email protected]>
13257
13258 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
13259 defined.
13260
13261 2007-07-04 Andrey Kiselev <[email protected]>
13262
13263 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
13264 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
13265 removed.
13266
13267 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
13268 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
13269 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
13270 These tags are not codec-specific and relate to image content, so
13271 process them as other normal tags.
13272
13273 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
13274 public tiffio.h to private tif_dir.h.
13275
13276 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
13277 outdated.
13278
13279 2007-07-03 Andrey Kiselev <[email protected]>
13280
13281 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
13282 tif_win3.c}: Obsoleted portability stuff removed.
13283
13284 * tools/tiff2ps.c: Added support 16-bit images as per bug
13285
13286 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
13287
13288 Patch from William Bader.
13289
13290 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
13291 significant upgrade of the whole utility as per bug
13292
13293 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
13294
13295 Now we don't need tiffiop.h in tiff2pdf anymore and will open output
13296 PDF file using TIFFClientOpen() machinery as it is implemented
13297 by Leon Bottou.
13298
13299 2007-06-26 Bob Friesenhahn <[email protected]>
13300
13301 * configure.ac: Fix typo when substituting value for unsigned 8 bit type.
13302 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
13303 Added support for a TIFF_SSIZE_T in order to return memory sizes but still
13304 allow returning -1 for errors.
13305 * libtiff/tiffconf.vc.h: Add porting type definitions for WIN32.
13306
13307 2007-06-25 Bob Friesenhahn <[email protected]>
13308
13309 * port/strtoull.c: New porting function in case strtoull() is not
13310 available on the target system.
13311 * configure.ac: Add configure support for determining sized types
13312 in a portable way and performing necessary substitutions in
13313 tif_config.h and tiffconf.h. Updated tiff.h to use the new
13314 definitions.
13315
13316 2007-04-27 Andrey Kiselev <[email protected]>
13317
13318 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug
13319
13320 http://bugzilla.remotesensing.org/show_bug.cgi?id=154
13321
13322 2007-04-07 Andrey Kiselev <[email protected]>
13323
13324 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
13325 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
13326 tif_predict.c, tif_zip.c}: Finally fix bug
13327
13328 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
13329
13330 by introducing _TIFFMergeFieldInfo() returning integer error status
13331 instead of void in case of problems with field merging (e.g., if the
13332 field with such a tag already registered). TIFFMergeFieldInfo() in
13333 public API remains void. Use _TIFFMergeFieldInfo() everywhere and
13334 check returned value.
13335
13336 2007-04-07 Frank Warmerdam <[email protected]>
13337
13338 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
13339 blocks in TIFF_DownSample_Subsampled() (bug 1542).
13340
13341 2007-04-06 Frank Warmerdam <[email protected]>
13342
13343 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
13344 will convert from decompressor to compressor or compress to decompress
13345 if required by the force arguments. This works around a problem in
13346 where the JPEGFixupTestSubsampling() may cause a decompressor to
13347 be setup on a directory when later a compressor is required with the
13348 force flag set. Occurs with the addtiffo program for instance.
13349
13350 2007-04-06 Andrey Kiselev <[email protected]>
13351
13352 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in
13353 functionality from Richard Nolde. As per bug
13354
13355 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
13356
13357 2007-03-28 Frank Warmerdam <[email protected]>
13358
13359 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
13360
13361 2007-03-17 Joris Van Damme <[email protected]>
13362
13363 * start of BigTIFF upgrade - CVS HEAD unstable until further notice
13364
13365 2007-03-07 Joris Van Damme <[email protected]>
13366
13367 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
13368 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
13369 factor. This bug is mentioned in:
13370 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
13371 http://www.asmail.be/msg0054766825.html
13372
13373 2007-03-07 Joris Van Damme <[email protected]>
13374
13375 * libtiff/tif_win32.c: made inclusion of windows.h unconditional
13376
13377 * libtiff/tif_win32.c: replaced preprocessor indication for consiously
13378 unused arguments by standard C indication for the same
13379
13380 2007-02-27 Andrey Kiselev <[email protected]>
13381
13382 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
13383 counters in TIFFFetchData(). Should finally fix the issue
13384
13385 http://bugzilla.remotesensing.org/show_bug.cgi?id=890
13386
13387 2007-02-24 Andrey Kiselev <[email protected]>
13388
13389 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
13390 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
13391
13392 * libtiff/tif_dirread.c: Added special function to handle
13393 SubjectDistance EXIF tag as per bug
13394
13395 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
13396
13397 * tools/tiff2pdf.c: Do not assume inches when the resolution units
13398 do not specified. As per bug
13399
13400 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
13401
13402 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
13403 it was set as infinite. As per bug
13404
13405 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
13406
13407 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
13408 by Richard Nolde. As per bug
13409
13410 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
13411
13412 2007-02-22 Andrey Kiselev <[email protected]>
13413
13414 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with
13415 ExtraSamples == 999 produced by Corel Draw. As per bug
13416
13417 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
13418
13419 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
13420 changed from tsize_t to uint32 to be able to work with data arrays
13421 larger than 2GB. Fixes bug
13422
13423 http://bugzilla.remotesensing.org/show_bug.cgi?id=890
13424
13425 Idea submitted by Matt Hancher.
13426
13427 2007-01-31 Andrey Kiselev <[email protected]>
13428
13429 * tools/tif2rgba.c: This utility does not work properly on big-endian
13430 architectures. It was fixed including the bug
13431
13432 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
13433
13434 2007-01-15 Mateusz Loskot <[email protected]>
13435
13436 * Submitted libtiff port for Windows CE platform
13437 * libtiff/tif_config.wince.h: Added configuration header for WinCE.
13438 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
13439 * libtiff/tif_wince.c: Added WinCE-specific implementation of some
13440 functions from tif_win32.c.
13441 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
13442 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
13443 standard header files for Windows CE build.
13444 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
13445
13446 2006-11-19 Frank Warmerdam <[email protected]>
13447
13448 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
13449 we move a strip.
13450 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
13451
13452 2006-10-13 Andrey Kiselev <[email protected]>
13453
13454 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported
13455 in Gentoo bug ():
13456
13457 http://bugs.gentoo.org/show_bug.cgi?id=142383
13458
13459 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
13460 Though it is still far from the state of being working and useful.
13461
13462 2006-10-12 Andrey Kiselev <[email protected]>
13463
13464 * libtiff/tif_fax3.c: Save the state of printdir codec dependent
13465 method.
13466
13467 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
13468 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
13469
13470 * libtiff/tif_win32.c: Fixed problem with offset value manipulation
13471 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
13472
13473 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
13474 vulnerabilities, reported in Gentoo bug ():
13475
13476 http://bugs.gentoo.org/show_bug.cgi?id=142383
13477
13478 2006-09-28 Andrey Kiselev <[email protected]>
13479
13480 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
13481 vulnerabilities, as per Gentoo bug ():
13482
13483 http://bugs.gentoo.org/show_bug.cgi?id=142383
13484
13485 2006-09-27 Frank Warmerdam <[email protected]>
13486
13487 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
13488 encoding and decoding on the same read-write TIFF handle. The LZW
13489 code can now maintain encode and decode state at the same time. The
13490 ZIP code will switch back and forth as needed.
13491 http://bugzilla.remotesensing.org/show_bug.cgi?id=757
13492
13493 2006-09-20 Frank Warmerdam <[email protected]>
13494
13495 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
13496 tif_config.vc.h for easier identification by folks using an IDE.
13497
13498 2006-07-25 Frank Warmerdam <[email protected]>
13499
13500 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron
13501
13502 2006-07-19 Frank Warmerdam <[email protected]>
13503
13504 * tif_dirwrite.c: take care not to flush out buffer of strip/tile
13505 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates
13506 to bug report by Peng Gao with black strip at bottom of images.
13507
13508 2006-07-12 Frank Warmerdam <[email protected]>
13509
13510 * tif_dirwrite.c: make sure to use uint32 for wordcount in
13511 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
13512 It already seems to have been done for other field types. Needed
13513 for "tiffset" on files with geotiff ascii text.
13514
13515 2006-07-04 Bob Friesenhahn <[email protected]>
13516
13517 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
13518 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
13519 its use does not appear to be required, so use it only when it is
13520 available.
13521
13522 2006-06-24 Andrey Kiselev <[email protected]>
13523
13524 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
13525
13526 * libtiff/tif_dirread.c: Move IFD fetching code in the separate
13527 function TIFFFetchDirectory() avoiding code duplication in
13528 TIFFReadDirectory() and TIFFReadCustomDirectory().
13529
13530 2006-06-19 Frank Warmerdam <[email protected]>
13531
13532 * tools/tiff2pdf.c: Fix handling of -q values.
13533 http://bugzilla.remotesensing.org/show_bug.cgi?id=587
13534
13535 2006-06-17 Frank Warmerdam <[email protected]>
13536
13537 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
13538 files. Modified TIFFReadDirectory() to not invoke
13539 EstimateStripByteCounts() for case where entry 0 and 1 are unequal
13540 but one of them is zero.
13541 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
13542
13543 2006-06-08 Andrey Kiselev <[email protected]>
13544
13545 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
13546 checking code in the separate function TIFFCheckDirOffset().
13547
13548 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
13549
13550 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug
13551
13552 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
13553
13554 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
13555
13556 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
13557
13558 * tools/tiff2pdf.c: Fixed buffer overflow condition in
13559 t2p_write_pdf_string() as per bug
13560
13561 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
13562
13563 2006-06-07 Andrey Kiselev <[email protected]>
13564
13565 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
13566 support for JBIG compression scheme (34661 code) contributed by Lee
13567 Howard. As per bug
13568
13569 http://bugzilla.remotesensing.org/show_bug.cgi?id=896
13570
13571 * configure, configure.ac: OJPEG support enabled by default.
13572
13573 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
13574
13575 2006-06-03 Bob Friesenhahn <[email protected]>
13576
13577 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
13578 TIFFPrintDirectory(). Joris Van Damme authored the fix.
13579
13580 2006-04-21 Andrey Kiselev <[email protected]>
13581
13582 * tools/tiff2pdf.c: Unified line ending characters (always use '\n')
13583 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
13584
13585 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
13586 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
13587 Added support for OpenVMS by Alexey Chupahin, [email protected].
13588
13589 2006-04-20 Andrey Kiselev <[email protected]>
13590
13591 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
13592 Properly set the binary mode for stdin stream as per bug
13593 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
13594
13595 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
13596 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
13597 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1,
13598 tiffset.1}: Improvements in page formatting as per bug
13599 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
13600
13601 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
13602 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
13603
13604 2006-04-18 Frank Warmerdam <[email protected]>
13605
13606 * nmake.opt: use /EHsc for VS2005 compatibility. Also define
13607 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
13608
13609 2006-04-12 Joris Van Damme <[email protected]>
13610
13611 * libtiff/tif_getimage.c: Added support for planarconfig separate
13612 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
13613
13614 2006-04-11 Joris Van Damme <[email protected]>
13615
13616 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines
13617 - Conversion of unassociated alpha to associated alpha now done with
13618 more performant LUT, and calculation more correct
13619 - Conversion of 16bit data to 8bit data now done with
13620 more performant LUT, and calculation more correct
13621 - Bugfix of handling of 16bit RGB with unassociated alpha
13622
13623 2006-04-11 Joris Van Damme <[email protected]>
13624
13625 * libtiff/tif_getimage.c:
13626 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated
13627 buffer for alpha strile and filled it, only to never read it back.
13628 Removed allocation and fill.
13629 - Minor rename of vars in gtTileSeparate and gtStripSeparate
13630 anticipating planned functionality extension
13631
13632 2006-04-08 Joris Van Damme <[email protected]>
13633
13634 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
13635 and pickTileSeparateCase to PickSeparateCase as both work on strips as
13636 well
13637
13638 * libtiff/tif_getimage.c: moved img->get selection from
13639 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
13640 logical hook for planned functionality extension
13641
13642 2006-04-08 Joris Van Damme <[email protected]>
13643
13644 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
13645 of inappropriate use of jpeg_abort instead of jpeg_destroy
13646
13647 2006-04-07 Joris Van Damme <[email protected]>
13648
13649 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
13650 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
13651 on subsampled images - this ought to get sorted when we feel brave
13652 enough to replace TIFFScanlineSize altogether
13653
13654 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
13655
13656 2006-04-04 Joris Van Damme <[email protected]>
13657
13658 * libtiff/tiffio.h: added new type tstrile_t
13659
13660 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
13661 to new tstrile_t, types of td_stripoffset and td_stripbytecount to
13662 toff_t*
13663
13664 * libtiff/tif_ojpeg.c: totally new implementation
13665
13666 * libtiff/tif_dirread.c: added several hacks to suit new support of
13667 OJPEG
13668
13669 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
13670 of OJPEG images in favor of tif_getimage.c native handling of
13671 YCbCr and desubsampling
13672
13673 2006-03-29 Frank Warmerdam <[email protected]>
13674
13675 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
13676 interpretation causes the "upsampled" flag to be recomputed. Fixes
13677 peculiar bug where photometric flag had to be set before jpegcolormode
13678 flag.
13679
13680 2006-03-25 Joris Van Damme <[email protected]>
13681
13682 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw
13683
13684 * libtiff/tif_strip.c: temporarily added two new versions of
13685 TIFFScanlineSize
13686 - TIFFNewScanlineSize: proposed new version, after all related
13687 issues and side-effects are sorted out
13688 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
13689 This needs further sorting out.
13690
13691 2006-03-25 Joris Van Damme <[email protected]>
13692
13693 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
13694 of last truncated strip data to TIFFWriteEncodedStrip
13695
13696 2006-03-25 Joris Van Damme <[email protected]>
13697
13698 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
13699
13700 2006-03-25 Joris Van Damme <[email protected]>
13701
13702 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
13703
13704 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
13705
13706 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
13707 prepare the path for new tif_ojpeg.c
13708
13709 2006-03-23 Andrey Kiselev <[email protected]>
13710
13711 * libtiff 3.8.2 released.
13712
13713 * tools/Makefile.am: Use runtime paths linker flags when rpath
13714 option enabled.
13715
13716 2006-03-21 Andrey Kiselev <[email protected]>
13717
13718 * libtiff/libtiff.def: Added missed exports as per bug
13719 http://bugzilla.remotesensing.org/attachment.cgi?id=337
13720
13721 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
13722 tools/Makefile.vc: Makefiles improvements as per bug
13723 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
13724
13725 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
13726 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
13727 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
13728
13729 * libtiff/tif_strip.c: Take subsampling in account when calculating
13730 TIFFScanlineSize().
13731
13732 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
13733
13734 2006-03-17 Andrey Kiselev <[email protected]>
13735
13736 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
13737 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
13738
13739 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
13740 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
13741
13742 2006-03-16 Andrey Kiselev <[email protected]>
13743
13744 * libtiff/tiffiop.h: Added declaration for
13745 _TIFFSetDefaultCompressionState().
13746
13747 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
13748 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
13749 codec cleanup methods. As per bug
13750
13751 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
13752
13753 2006-03-15 Andrey Kiselev <[email protected]>
13754
13755 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
13756 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
13757
13758 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
13759 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
13760
13761 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
13762 removed; move here the STRIP_SIZE_DEFAULT macro definition.
13763
13764 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
13765 macro definition.
13766
13767 * libtiff/tif_dir.c: Use double type instead of dblparam_t.
13768
13769 2006-03-14 Andrey Kiselev <[email protected]>
13770
13771 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
13772 in TIFFReadDirectory, because it is always set at the start of
13773 function and we allow TIFFs without that tag set.
13774
13775 2005-03-13 Andrey Kiselev <[email protected]>
13776
13777 * libtiff 3.8.1 released.
13778
13779 2006-03-07 Andrey Kiselev <[email protected]>
13780
13781 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
13782 function as per bug
13783 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
13784
13785 * libtiff/tif_dirread.c: More wise check for integer overflow
13786 condition as per bug
13787 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
13788
13789 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
13790 Properly restore setfield/getfield methods in cleanup functions. As
13791 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
13792
13793 2006-03-03 Andrey Kiselev <[email protected]>
13794
13795 * libtiff/{tif_predict.c, tif_predict.h}: Added new function
13796 TIFFPredictorCleanup() to restore parent decode/encode/field methods.
13797
13798 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
13799 TIFFPredictorCleanup() in codec cleanup methods. As per bug
13800
13801 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
13802
13803 * libtiff/tif_dirread.c: Fixed integer overflow condition in
13804 TIFFFetchData() function. As per bug
13805
13806 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
13807
13808 2006-03-01 Andrey Kiselev <[email protected]>
13809
13810 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
13811 TIFFSetField() method, not directly. As per bug
13812
13813 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
13814
13815 * tools/ppm2tiff.c: Added support for PBM files as per bug
13816 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
13817
13818 2006-02-27 Andrey Kiselev <[email protected]>
13819
13820 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
13821 to avoid crash as per bug
13822
13823 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
13824
13825 2006-02-26 Andrey Kiselev <[email protected]>
13826
13827 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
13828 t2p_sample_rgba_to_rgb() was used in place of each other, that was
13829 resulted in problems with RGBA images with associated alpha.
13830 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
13831
13832 2006-02-23 Andrey Kiselev <[email protected]>
13833
13834 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
13835 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
13836
13837 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
13838 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
13839 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
13840
13841 * tools/tiff2ps.c: Properly scale all the pages when converting
13842 multipage TIFF with /width/height/center options set. As per bug
13843
13844 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
13845
13846 2006-02-15 Andrey Kiselev <[email protected]>
13847
13848 * tools/tiff2pdf.c: Do not create output file until all option checks
13849 will be done. As per bug
13850
13851 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
13852
13853 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
13854 list of input files as per bug:
13855
13856 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
13857
13858 2006-02-09 Andrey Kiselev <[email protected]>
13859
13860 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
13861 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
13862
13863 * tools/tiffgt.c: Avoid crashing in case of image unsupported by
13864 TIFFRGBAImage interface.
13865
13866 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per
13867 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
13868
13869 2006-02-07 Frank Warmerdam <[email protected]>
13870
13871 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
13872 compressed TIFF files, per submission from Dan Cobra.
13873
13874 2006-02-07 Andrey Kiselev <[email protected]>
13875
13876 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
13877 cast values to avoid warnings. As per bug
13878 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
13879
13880 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
13881 appropriate. As per bug
13882 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
13883
13884 * libtiff/tif_aux.c: Fixed type of temporary variable in
13885 _TIFFCheckMalloc() as per bug
13886 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
13887
13888 2006-02-06 Andrey Kiselev <[email protected]>
13889
13890 * libtiff/tif_aux.c: Return static array when fetching default
13891 YCbCrCoefficients (another problem, reported a the
13892 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
13893
13894 2006-02-03 Andrey Kiselev <[email protected]>
13895
13896 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
13897 YCbCrSubsampling and DotRange tags as per bugs
13898
13899 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
13900 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
13901
13902 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
13903 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
13904
13905 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
13906
13907 2006-01-23 Andrey Kiselev <[email protected]>
13908
13909 * libtool related stuff updated from the 2.1a branch.
13910
13911 2006-01-11 Frank Warmerdam <[email protected]>
13912
13913 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
13914 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
13915 properly as per bug:
13916 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
13917
13918 2006-01-09 Bob Friesenhahn <[email protected]>
13919
13920 * configure.ac: Fix with_default_strip_size comparison as reported
13921 by Norihiko Murase.
13922
13923 2006-01-08 Bob Friesenhahn <[email protected]>
13924
13925 * test/Makefile.am (LIBTIFF): Due to linking against libtiff
13926 incorrectly, tests were not actually testing the uninstalled
13927 libtiff. Now they are.
13928
13929 2006-01-04 Andrey Kiselev <[email protected]>
13930
13931 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
13932 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
13933 should be uint32 value.
13934
13935 2006-01-02 Bob Friesenhahn <[email protected]>
13936
13937 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
13938 be used if build directory is not the same as source directory.
13939 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
13940 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
13941 and re-sorted tag names in alphabetical order.
13942
13943 2005-12-29 Andrey Kiselev <[email protected]>
13944
13945 * libtiff 3.8.0 released.
13946
13947 2005-12-28 Bob Friesenhahn <[email protected]>
13948
13949 * tools/bmp2tiff.c (main): Fixed warning regarding returning
13950 inconsistent types from a condition.
13951 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
13952 format.
13953 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
13954
13955 2005-12-28 Joris Van Damme <[email protected]>
13956
13957 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
13958
13959 2005-12-27 Andrey Kiselev <[email protected]>
13960
13961 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
13962 windows.h, to reduce the compile time.
13963
13964 2005-12-26 Bob Friesenhahn <[email protected]>
13965
13966 * libtiff/tif_jpeg.c: Improve compilation under MinGW.
13967
13968 2005-12-26 Andrey Kiselev <[email protected]>
13969
13970 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
13971 tiffFieldInfo and exifFieldInfo arrays definitions moved back to
13972 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
13973 private functions to retrieve FieldInfo arrays.
13974
13975 2005-12-24 Bob Friesenhahn <[email protected]>
13976
13977 * html/build.html: Added some additional instructions for when
13978 building using MSVC under Windows. Also fixed two HTML syntax
13979 errors and used HTML Tidy to tidy up the HTML syntax and
13980 formatting.
13981
13982 2005-12-24 Andrey Kiselev <[email protected]>
13983
13984 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
13985 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
13986 StoNits tags custom.
13987
13988 2005-12-23 Andrey Kiselev <[email protected]>
13989
13990 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
13991 WhitePoint tag custom.
13992
13993 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
13994
13995 2005-12-23 Joris Van Damme <[email protected]>
13996
13997 * libtiff/tiffio.h: fixed typo that potentially resulted in
13998 redefininition of USE_WIN32_FILEIO
13999
14000 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
14001 calls in core LibTiff.
14002
14003 2005-12-21 Andrey Kiselev <[email protected]>
14004
14005 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
14006 Photoshop and ICCProfile tags custom.
14007
14008 2005-12-21 Joris Van Damme <[email protected]>
14009
14010 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
14011 newer code to get context indicator in error handler and still
14012 remain compatible with older code: Done TIFFError calls everywhere
14013 except in tools
14014
14015 2005-12-20 Andrey Kiselev <[email protected]>
14016
14017 * tools/tiffcp.c: Added many error reporting messages; fixed integer
14018 overflow as per bug
14019
14020 http://bugzilla.remotesensing.org/show_bug.cgi?id=789
14021
14022 2005-12-16 Frank Warmerdam <[email protected]>
14023
14024 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled
14025 YCbCr images in jpeg compressed TIFF files.
14026
14027 2005-12-14 Andrey Kiselev <[email protected]>
14028
14029 * tools/tiffcp.c: Return non-zero status when reading fails (again).
14030
14031 2005-12-13 Andrey Kiselev <[email protected]>
14032
14033 * tools/tiffcp.c: Return non-zero status when reading fails.
14034
14035 2005-12-12 Andrey Kiselev <[email protected]>
14036
14037 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
14038
14039 2005-12-09 Andrey Kiselev <[email protected]>
14040
14041 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
14042 custom.
14043
14044 * tools/tiffinfo.c: Print EXIF directory contents if exist.
14045
14046 * libtiff/tiff.h: Few EXIF tag numbers added.
14047
14048 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
14049 tiffio.h}: Preliminary support to read custom directories. New
14050 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
14051
14052 2005-12-07 Andrey Kiselev <[email protected]>
14053
14054 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
14055 More work to implement custom directory read support.
14056
14057 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
14058 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
14059 tags custom.
14060
14061 2005-12-05 Andrey Kiselev <[email protected]>
14062
14063 * libtiff/tif_dirread.c: One more workaround for broken
14064 StripByteCounts tag. Handle the case when StripByteCounts array filled
14065 with completely wrong values.
14066
14067 2005-11-30 Andrey Kiselev <[email protected]>
14068
14069 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure
14070 in the TIFFOpenW() function as per bug
14071
14072 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
14073
14074 * libtiff/tif_dirinfo.c: Correctly use bsearch() and lfind()
14075 functions as per bug
14076
14077 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
14078
14079 2005-11-20 Frank Warmerdam <[email protected]>
14080
14081 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
14082 for MS MDI format.
14083 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
14084
14085 * .cvsignore: many files added, and a few update according
14086 to suggestion of Brad HArds on tiff mailing list.
14087
14088 2005-11-03 Frank Warmerdam <[email protected]>
14089
14090 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
14091 public.
14092
14093 2005-10-31 Andrey Kiselev <[email protected]>
14094
14095 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays
14096 as per bug
14097
14098 http://bugzilla.remotesensing.org/show_bug.cgi?id=943
14099
14100 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
14101 as per bug
14102
14103 http://bugzilla.remotesensing.org/show_bug.cgi?id=944
14104
14105 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
14106 problem as per bug
14107
14108 http://bugzilla.remotesensing.org/show_bug.cgi?id=946
14109
14110 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
14111
14112 http://bugzilla.remotesensing.org/show_bug.cgi?id=965
14113
14114 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and
14115 ResolutionUnit tags modifiable during write process. As per bug
14116
14117 http://bugzilla.remotesensing.org/show_bug.cgi?id=977
14118
14119 * tools/tiffsplit.c: Copy fax related fields over split parts
14120 as per bug
14121
14122 http://bugzilla.remotesensing.org/show_bug.cgi?id=983
14123
14124 2005-10-21 Frank Warmerdam <[email protected]>
14125
14126 * tif_dirread.c: Don't try and split single strips into "0" strips
14127 in ChopUpSingleUncompressedStrip. This happens in some degenerate
14128 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
14129
14130 2005-10-20 Joris Van Damme <[email protected]>
14131
14132 * tif_fax3.c: changed 'at scanline ...' style warning/errors
14133 with incorrect use of tif_row, to 'at line ... of
14134 strip/tile ...' style
14135
14136 2005-10-15 Frank Warmerdam <[email protected]>
14137
14138 * tif_write.c: fixed setting of planarconfig as per bug report
14139 on the mailing list from Joris.
14140
14141 2005-10-07 Andrey Kiselev <[email protected]>
14142
14143 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
14144 tif_dirread.c}: Make the default strip size configurable via the
14145 --with-default-strip-size and STRIP_SIZE_DEFAULT options.
14146
14147 2005-09-30 Bob Friesenhahn <[email protected]>
14148
14149 * html/support.html: Fixed link to documentation on Greg Ward's
14150 LogLuv TIFF format.
14151
14152 2005-09-28 Andrey Kiselev <[email protected]>
14153
14154 * tools/tiffdump.c: Fixed crash when reading malformed tags.
14155
14156 2005-09-20 Andrey Kiselev <[email protected]>
14157
14158 * tools/tiff2pdf.c: Added missed 'break' statement as per bug
14159 http://bugzilla.remotesensing.org/show_bug.cgi?id=932
14160
14161 2005-09-12 Andrey Kiselev <[email protected]>
14162
14163 * libtiff 3.7.4 released.
14164
14165 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
14166 from Patrick Welche (all scripts moved in the 'config' and 'm4'
14167 directories).
14168
14169 2005-09-12 Frank Warmerdam <[email protected]>
14170
14171 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
14172
14173 2005-09-05 Frank Warmerdam <[email protected]>
14174
14175 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
14176 also set it to NULL to avoid double free when re-setting custom
14177 string fields as per:
14178
14179 http://bugzilla.remotesensing.org/show_bug.cgi?id=922
14180
14181 2005-08-12 Frank Warmerdam <[email protected]>
14182
14183 * libtiff/tif_print.c: avoid signed/unsigned warning.
14184
14185 * libtiff/tif_dirread.c: removed unused variable.
14186
14187 2005-07-30 Frank Warmerdam <[email protected]>
14188
14189 * libtiff/tif_dir.c: Fixed up support for swapping "double complex"
14190 values (128 bits as 2 64 bits doubles). GDAL gcore tests now
14191 pass on bigendian (macosx) system.
14192
14193 2005-07-28 Andrey Kiselev <[email protected]>
14194
14195 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
14196 CheckMalloc() function to _TIFFCheckMalloc() and make it available
14197 globally as an internal helper routine.
14198
14199 2005-07-27 Andrey Kiselev <[email protected]>
14200
14201 * libtiff/tif_dir.c: More improvements in the "pass by value" part of
14202 the custom tags handling code.
14203
14204 2005-07-26 Andrey Kiselev <[email protected]>
14205
14206 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
14207 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
14208 function, use TIFFFetchNormalTag() instead as per bug
14209
14210 http://bugzilla.remotesensing.org/show_bug.cgi?id=831
14211
14212 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
14213 instead.
14214
14215 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
14216
14217 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
14218
14219 2005-07-25 Andrey Kiselev <[email protected]>
14220
14221 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
14222
14223 * tools/tiffdump.c: Added support for TIFF_IFD datatype.
14224
14225 2005-07-21 Andrey Kiselev <[email protected]>
14226
14227 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in
14228 the TIFFWriteCheck() function in case of single band images (as per
14229 TIFF spec).
14230
14231 2005-07-12 Andrey Kiselev <[email protected]>
14232
14233 * SConstruct, libtiff/SConstruct: Added the first very preliminary
14234 support for SCons software building tool (http://www.scons.org/).
14235 This is experimental infrastructure and it will exist along with the
14236 autotools mechanics.
14237
14238 2005-07-07 Andrey Kiselev <[email protected]>
14239
14240 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
14241 the NetBSD source tree (the old 4-clause BSD license changed to
14242 the new 3-clause one).
14243
14244 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
14245 replacement module.
14246
14247 * port/dummy.c: Make the dummy function static.
14248
14249 2005-07-06 Andrey Kiselev <[email protected]>
14250
14251 * tools/tiffcp.c: Fixed WhitePoint tag copying.
14252
14253 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
14254 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
14255 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
14256
14257 2005-07-04 Andrey Kiselev <[email protected]>
14258
14259 * libtiff 3.7.3 released.
14260
14261 * configure, configure.ac: Do not use empty -R option when linking
14262 with --enable-rpath.
14263
14264 2005-07-01 Andrey Kiselev <[email protected]>
14265
14266 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
14267 reading the first IFD when needed. As per bug
14268
14269 http://bugzilla.remotesensing.org/show_bug.cgi?id=875
14270
14271 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
14272 effects.
14273
14274 2005-06-23 Andrey Kiselev <[email protected]>
14275
14276 * tools/tiff2pdf.c: Print two characters per loop in the
14277 t2p_write_pdf_trailer(). As per bug
14278
14279 http://bugzilla.remotesensing.org/show_bug.cgi?id=594
14280
14281 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
14282 per bug
14283
14284 http://bugzilla.remotesensing.org/show_bug.cgi?id=844
14285
14286 * acinclude.m4: Updated to latest OpenGL test macros versions.
14287
14288 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
14289 platform. As per bug
14290
14291 http://bugzilla.remotesensing.org/show_bug.cgi?id=855
14292
14293 2005-06-14 Andrey Kiselev <[email protected]>
14294
14295 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
14296 and YClipPathUnits tags.
14297
14298 2005-06-07 Andrey Kiselev <[email protected]>
14299
14300 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
14301 use pixel sized shift in contiguous case.
14302
14303 2005-06-06 Andrey Kiselev <[email protected]>
14304
14305 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
14306 Make overviews working for contiguous images.
14307
14308 2005-06-03 Andrey Kiselev <[email protected]>
14309
14310 * libtiff/tif_open.c: Replace runtime endianness check with the compile
14311 time one.
14312
14313 * libtiff/tif_predict.c: Floating point predictor now works on
14314 big-endian hosts.
14315
14316 2005-06-01 Andrey Kiselev <[email protected]>
14317
14318 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
14319 ASCII values.
14320
14321 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
14322 DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
14323 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
14324 TargetPrinter tags custom.
14325
14326 * libtiff/tif_jpeg.c: Cleanup the codec state depending on
14327 TIFF_CODERSETUP flag (to fix memry leaks).
14328
14329 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
14330 allocating.
14331
14332 2005-05-26 Andrey Kiselev <[email protected]>
14333
14334 * configure.ac, libtiff/Makefile.am: Added workaround for
14335 OpenBSD/MirOS soname problem as per bug
14336
14337 http://bugzilla.remotesensing.org/show_bug.cgi?id=838
14338
14339 * libtiff/tif_dirwrite.c: Use tdir_count when calling
14340 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
14341 per bug
14342
14343 http://bugzilla.remotesensing.org/show_bug.cgi?id=845
14344
14345 2005-05-25 Andrey Kiselev <[email protected]>
14346
14347 * tools/ppm2tiff.c: Fixed format string when read PPM file header with
14348 the fscanf() function. As per bug
14349
14350 http://bugzilla.remotesensing.org/show_bug.cgi?id=861
14351
14352 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
14353 uint16 array when fetching the BYTE and SBYTE filds, so we should
14354 consider result as pointer to uint16 array and not as array of chars.
14355 As per bug
14356
14357 http://bugzilla.remotesensing.org/show_bug.cgi?id=831
14358
14359 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
14360
14361 http://bugzilla.remotesensing.org/show_bug.cgi?id=830
14362
14363 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
14364 mode in CreateFile() call as per bug
14365
14366 http://bugzilla.remotesensing.org/show_bug.cgi?id=829
14367
14368 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
14369 libtiffxx libraries as per bug
14370
14371 http://bugzilla.remotesensing.org/show_bug.cgi?id=826
14372
14373 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
14374 GDAL.
14375
14376 2005-05-23 Frank Warmerdam <[email protected]>
14377
14378 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
14379 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables
14380 in directory.
14381
14382 2005-05-22 Frank Warmerdam <[email protected]>
14383
14384 * libtiff/tif_dirread.c: Changed the code that computes
14385 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
14386 zero. This is a common case with GDAL indicating a "null" tile/strip.
14387
14388 2005-05-17 Andrey Kiselev <[email protected]>
14389
14390 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
14391
14392 2005-05-06 Frank Warmerdam <[email protected]>
14393
14394 * libtiff/tif_dirread.c: Applied similar change to
14395 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
14396
14397 http://bugzilla.remotesensing.org/show_bug.cgi?id=843
14398
14399 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
14400
14401 2005-05-06 Andrey Kiselev <[email protected]>
14402 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
14403 added new option '-b' to use interpolation in output PDF files (Bruno
14404 Ledoux).
14405
14406 2005-05-05 Frank Warmerdam <[email protected]>
14407
14408 * libtiff/tif_dirread.c: Ensure that broken files with too many
14409 values in PerSampleShorts work ok instead of crashing.
14410
14411 http://bugzilla.remotesensing.org/show_bug.cgi?id=843
14412
14413 2005-04-27 Andrey Kiselev <[email protected]>
14414
14415 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
14416 input file.
14417
14418 2005-04-15 Andrey Kiselev <[email protected]>
14419
14420 * libtiff/tif_predict.c: Added ability to encode floating point
14421 predictor, as per TIFF Technical Note 3.
14422
14423 2005-04-14 Andrey Kiselev <[email protected]>
14424
14425 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
14426 floating point predictor, as per TIFF Technical Note 3.
14427
14428 2005-04-13 Andrey Kiselev <[email protected]>
14429
14430 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
14431 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
14432 swap 24-bit floating point values.
14433
14434 * libtiff/tiff.h: Added predictor constants.
14435
14436 2005-04-08 Andrey Kiselev <[email protected]>
14437
14438 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
14439 values in _TIFFVSetField() function. Inspired by the bug
14440
14441 http://bugzilla.remotesensing.org/show_bug.cgi?id=816
14442
14443 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
14444 as per bug
14445
14446 http://bugzilla.remotesensing.org/show_bug.cgi?id=816
14447
14448 2005-03-30 Andrey Kiselev <[email protected]>
14449
14450 * libtiff/tif_open.c: Do not read header in case the output file
14451 should be truncated (Ron).
14452
14453 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
14454 of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
14455
14456 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
14457
14458 2005-03-22 Andrey Kiselev <[email protected]>
14459
14460 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
14461 rpath option.
14462
14463 2005-03-21 Andrey Kiselev <[email protected]>
14464
14465 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
14466 tags.
14467
14468 2005-03-18 Andrey Kiselev <[email protected]>
14469
14470 * libtiff/dirinfo.c: Added DNG tags.
14471
14472 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
14473 handling code.
14474
14475 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
14476 added DNG 1.1.0.0 tags.
14477
14478 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per
14479 bug
14480
14481 http://bugzilla.remotesensing.org/show_bug.cgi?id=794
14482
14483 * man/TIFFGetField.3tiff: Add a note about autoregistered tags.
14484
14485 2005-03-17 Andrey Kiselev <[email protected]>
14486
14487 * nmake.opt: Build with Win32 CRT library by default.
14488
14489 * tools/tiff2ps.c: Fixed typo in page size handling code.
14490
14491 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
14492 by value.
14493
14494 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
14495
14496 2005-03-15 Andrey Kiselev <[email protected]>
14497
14498 * libtiff 3.7.2 released.
14499
14500 2005-03-09 Andrey Kiselev <[email protected]>
14501
14502 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and
14503 floating point data; complain on unsupported bit depths.
14504
14505 2005-03-05 Andrey Kiselev <[email protected]>
14506
14507 * tif_stream.cxx: Use ios namespace instead of ios_base to support
14508 GCC 2.95.
14509
14510 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
14511 Lee Howard for HylaFax DCS tag
14512 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
14513
14514 2005-03-04 Andrey Kiselev <[email protected]>
14515
14516 * configure, configure.ac: Use -rpath option instead of -R as per bug
14517
14518 http://bugzilla.remotesensing.org/show_bug.cgi?id=732
14519
14520 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
14521 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
14522 software. As per bug
14523
14524 http://bugzilla.remotesensing.org/show_bug.cgi?id=771
14525
14526 * nmake.opt, html/build.html: Add more comments, change the config
14527 file organization a bit as per bug
14528
14529 http://bugzilla.remotesensing.org/show_bug.cgi?id=764
14530
14531 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
14532 as per bug
14533
14534 http://bugzilla.remotesensing.org/show_bug.cgi?id=785
14535
14536 2005-03-03 Andrey Kiselev <[email protected]>
14537
14538 * libtiff/tif_dirread.c: More logic to guess missed strip size as per
14539 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
14540
14541 * tools/fax2ps.c: Replace insecure mktemp() function with the
14542 tmpfile() as per bug
14543
14544 http://bugzilla.remotesensing.org/show_bug.cgi?id=786
14545
14546 2005-02-04 Andrey Kiselev <[email protected]>
14547
14548 * libtiff/tiff.h: Changed the int8 definition to be always signed char
14549 as per bug
14550
14551 http://bugzilla.remotesensing.org/show_bug.cgi?id=727
14552
14553 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
14554 block as per bug
14555
14556 http://bugzilla.remotesensing.org/show_bug.cgi?id=763
14557
14558 2005-02-03 Bob Friesenhahn <[email protected]>
14559
14560 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images
14561 display more correctly. Images display brighter than they should
14562 on a Sun workstation.
14563
14564 2005-02-03 Andrey Kiselev <[email protected]>
14565
14566 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or
14567 suspicious values in the tags. As per bugs
14568
14569 http://bugzilla.remotesensing.org/show_bug.cgi?id=705
14570
14571 and
14572
14573 http://bugzilla.remotesensing.org/show_bug.cgi?id=320
14574
14575 * tools/tiff2ps.c: Fixed problem with page sizes as per bug
14576
14577 http://bugzilla.remotesensing.org/show_bug.cgi?id=742
14578
14579 2005-01-31 Bob Friesenhahn <[email protected]>
14580
14581 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
14582 (TIFFTAG_TILELENGTH): Corrected description.
14583
14584 2005-01-30 Andrey Kiselev <[email protected]>
14585
14586 * configure.ac: Fixes for --with-docdir option as per bug
14587
14588 http://bugzilla.remotesensing.org/show_bug.cgi?id=759
14589
14590 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
14591 bug
14592
14593 http://bugzilla.remotesensing.org/show_bug.cgi?id=756
14594
14595 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from
14596 Michael Rinne and Edward Lam.
14597
14598 2005-01-15 Andrey Kiselev <[email protected]>
14599
14600 * configure.ac: Make the documentation directory location configurable
14601 via the --with-docdir option (as suggested by Jeremy C. Reed).
14602
14603 * libtiff/tif_color.c: Use double as the second argument of pow()
14604 function in TIFFCIELabToRGBInit(). As per bug
14605
14606 http://bugzilla.remotesensing.org/show_bug.cgi?id=741
14607
14608 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to
14609 integer as per bug
14610
14611 http://bugzilla.remotesensing.org/show_bug.cgi?id=740
14612
14613 * libtiff/tif_getimage.c: Always fill the error message buffer in
14614 TIFFRGBAImageBegin() as per bug
14615
14616 http://bugzilla.remotesensing.org/show_bug.cgi?id=739
14617
14618 2005-01-12 Andrey Kiselev <[email protected]>
14619
14620 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific
14621 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
14622 tags as per bug
14623
14624 http://bugzilla.remotesensing.org/show_bug.cgi?id=736
14625
14626 * libtiff/tif_win32.c: Fixed message formatting in functions
14627 Win32WarningHandler() and Win32ErrorHandler() as per bug
14628
14629 http://bugzilla.remotesensing.org/show_bug.cgi?id=735
14630
14631 * tools/tiff2ps.c: Interpret the -w and -h options independently. As
14632 per bug
14633
14634 http://bugzilla.remotesensing.org/show_bug.cgi?id=689
14635
14636 2005-01-11 Andrey Kiselev <[email protected]>
14637
14638 * libtiff/tiffio.h: Move the color conversion routines in the 'extern
14639 "C"' section as per bug
14640
14641 http://bugzilla.remotesensing.org/show_bug.cgi?id=727
14642
14643 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
14644 compiler to avoid double definition of BSD types as per bug
14645
14646 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
14647
14648 * libtiff/Makefile.am: Place the C++ stream API in the separate
14649 library called libtiffxx to avoid unneeded dependencies. Probably
14650 there will be more C++ API in the future. As per bugs
14651
14652 http://bugzilla.remotesensing.org/show_bug.cgi?id=733
14653
14654 and
14655
14656 http://bugzilla.remotesensing.org/show_bug.cgi?id=730
14657
14658 2005-01-05 Andrey Kiselev <[email protected]>
14659
14660 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the
14661 wrong tag counts (Dmitry V. Levin, Martin Pitt).
14662
14663 * configure.ac: Replace --disable-c++ with the --disable-cxx option as
14664 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
14665
14666 2004-12-25 Andrey Kiselev <[email protected]>
14667
14668 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
14669 RGB-images as per bug
14670
14671 http://bugzilla.remotesensing.org/show_bug.cgi?id=713
14672
14673
14674 * tools/tiffset.c: Convert character option to integer value as per
14675 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
14676
14677 2004-12-20 Andrey Kiselev <[email protected]>
14678
14679 * libtiff 3.7.1 released.
14680
14681 * html/tiffset.1.html: Add missed manual page as per bug
14682
14683 http://bugzilla.remotesensing.org/show_bug.cgi?id=678
14684
14685 * libtiff/tiff.h: Revert back libtiff data type definitions as per
14686 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
14687
14688 2004-12-19 Andrey Kiselev <[email protected]>
14689
14690 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
14691 checking for tag count in TIFFReadDirectory() function. As per bug
14692
14693 http://bugzilla.remotesensing.org/show_bug.cgi?id=713
14694
14695 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
14696 CheckMallock() function.
14697
14698 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled
14699 RGB-images as per bug
14700
14701 http://bugzilla.remotesensing.org/show_bug.cgi?id=718
14702
14703 2004-12-15 Frank Warmerdam <[email protected]>
14704
14705 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on
14706 SunPro compiler.
14707
14708 2004-12-11 Bob Friesenhahn <[email protected]>
14709
14710 * autogen.sh: aclocal and autoheader should be executed after
14711 libtoolize. Also add '-I .' to aclocal invocation to check
14712 current directory for macros.
14713
14714 2004-12-10 Andrey Kiselev <[email protected]>
14715
14716 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
14717 as per bugs
14718
14719 http://bugzilla.remotesensing.org/show_bug.cgi?id=703
14720
14721 and
14722
14723 http://bugzilla.remotesensing.org/show_bug.cgi?id=704
14724
14725 2004-12-04 Andrey Kiselev <[email protected]>
14726
14727 * nmake.opt: Link with the user32.lib in windowed mode. As per bug
14728
14729 http://bugzilla.remotesensing.org/show_bug.cgi?id=697
14730
14731 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
14732 mode as per bug
14733
14734 http://bugzilla.remotesensing.org/show_bug.cgi?id=697
14735
14736 * libtiff/tif_config.in.vc: Removed unneeded definitions for
14737 read/open/close/lseek functions to fix the
14738
14739 http://bugzilla.remotesensing.org/show_bug.cgi?id=680
14740
14741 2004-12-03 Andrey Kiselev <[email protected]>
14742
14743 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
14744 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
14745 must be removed in the future, as it was never used properly. As per
14746 bug
14747
14748 http://bugzilla.remotesensing.org/show_bug.cgi?id=692
14749
14750 2004-11-30 Bob Friesenhahn <[email protected]>
14751
14752 * libtiff/tif_jpeg.c: Added a work-around in order to allow
14753 compilation with the heavily modified version of libjpeg delivered
14754 with Cygwin.
14755
14756 2004-11-29 Andrey Kiselev <[email protected]>
14757
14758 * libtiff/tif_dir.c: Properly handle tags, which have the uint32
14759 counts. As per bug
14760
14761 http://bugzilla.remotesensing.org/show_bug.cgi?id=693
14762
14763 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug
14764
14765 http://bugzilla.remotesensing.org/show_bug.cgi?id=690
14766
14767 2004-11-28 Andrey Kiselev <[email protected]>
14768
14769 * libtiff/tif_unix.c: Make UNIX module compilable (and usable)
14770 on Windows.
14771
14772 * nmake.opt: Add missed DLLNAME variable.
14773
14774 2004-11-26 Frank Warmerdam <[email protected]>
14775
14776 * libtiff/makefile.vc: make it easier to rename the libtiff DLL.
14777
14778 2004-11-24 Andrey Kiselev <[email protected]>
14779
14780 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
14781 per bug
14782
14783 http://bugzilla.remotesensing.org/show_bug.cgi?id=545
14784
14785 * man/tiffset.1: Added manual page for tiffset tool written by Jay
14786 Berkenbilt. As per bug
14787
14788 http://bugzilla.remotesensing.org/show_bug.cgi?id=678
14789
14790 2004-11-23 Frank Warmerdam <[email protected]>
14791
14792 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
14793
14794 2004-11-21 Frank Warmerdam <[email protected]>
14795
14796 * html/document.html: Updated Adobe web links as per email from Joris.
14797
14798 2004-11-21 Andrey Kiselev <[email protected]>
14799
14800 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
14801 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
14802 use C++ streams should #include <tiffio.hxx>.
14803
14804 2004-11-13 Andrey Kiselev <[email protected]>
14805
14806 * libtiff/tiff.h: Added Adobe DNG tags.
14807
14808 * libtiff/tif_win32.c: Typo fixed.
14809
14810 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
14811 be compliant with the latest standard. Appropriate additions in
14812 makefiles now completed.
14813
14814 2004-11-11 Andrey Kiselev <[email protected]>
14815
14816 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
14817 different tag types. As per bug
14818
14819 http://bugzilla.remotesensing.org/show_bug.cgi?id=600
14820
14821 2004-11-10 Andrey Kiselev <[email protected]>
14822
14823 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
14824 YCbCr image which lacks that tag (noted by Hans Petter Selasky).
14825
14826 2004-11-09 Andrey Kiselev <[email protected]>
14827
14828 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
14829
14830 2004-11-07 Andrey Kiselev <[email protected]>
14831
14832 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
14833 contributed by Edward Lam (see
14834 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
14835 Though no changes in any makefiles yet.
14836
14837 2004-11-05 Frank Warmerdam <[email protected]>
14838
14839 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
14840 is bad. This is the callers responsibility.
14841 http://bugzilla.remotesensing.org/show_bug.cgi?id=651
14842
14843 2004-11-05 Andrey Kiselev <[email protected]>
14844
14845 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
14846 function to work with the double byte strings (used to represent
14847 filenames in some locales). As per bug
14848
14849 http://bugzilla.remotesensing.org/show_bug.cgi?id=625
14850
14851 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
14852 Compression tags of type LONG from broken TIFFS as per bug
14853
14854 http://bugzilla.remotesensing.org/show_bug.cgi?id=662
14855
14856 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
14857 the writecount should have uint32 type. As per bug
14858
14859 http://bugzilla.remotesensing.org/show_bug.cgi?id=662
14860
14861 * libtiff/tif_write.c: Fixed wrong if() statement in
14862 TIFFAppendToStrip() function as per bug
14863
14864 http://bugzilla.remotesensing.org/show_bug.cgi?id=660
14865
14866 2004-11-04 Andrey Kiselev <[email protected]>
14867
14868 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
14869 field. The caller should supply a count when setting this field. As
14870 per bug
14871
14872 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
14873
14874 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
14875 uint32 count. Use this type everywhere.
14876
14877 2004-11-03 Frank Warmerdam <[email protected]>
14878
14879 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653.
14880
14881 2004-11-02 Frank Warmerdam <[email protected]>
14882
14883 * tools/tiff2rgba.c: removed extra newlines in usage message.
14884
14885 2004-10-30 Andrey Kiselev <[email protected]>
14886
14887 * libtiff/tif_dirwrite.c: Improvements in tag writing code.
14888
14889 * tools/tiff2ps.c: Fixed wrong variable data type when read Position
14890 tags (Tristan Hill).
14891
14892 2004-10-30 Frank Warmerdam <[email protected]>
14893
14894 * libtiff/tiffiop.h: added fallback definition of assert() if we
14895 don't have assert.h.
14896
14897 2004-10-29 Andrey Kiselev <[email protected]>
14898
14899 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines
14900 choosing when the incorrect Group4Options tag set. As per bug
14901
14902 http://bugzilla.remotesensing.org/show_bug.cgi?id=323
14903
14904 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
14905 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
14906 TIFFWriteNormalTag().
14907
14908 2004-10-28 Andrey Kiselev <[email protected]>
14909
14910 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
14911 tags (Peter Fales).
14912
14913 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
14914
14915 2004-10-28 Frank Warmerdam <[email protected]>
14916
14917 * tools/tiff2pdf.c: added casts to avoid warnings.
14918
14919 * libtiff/libtiff.def: Added several more entry points required
14920 to link fax2tiff.c against the DLL on windows.
14921
14922 2004-10-27 Andrey Kiselev <[email protected]>
14923
14924 * configure, configure.ac: Added --enable-rpath option to embed linker
14925 paths into library binary.
14926
14927 2004-10-26 Andrey Kiselev <[email protected]>
14928
14929 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
14930
14931 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
14932 (Vladimir Nadvornik, Dmitry V. Levin).
14933
14934 2004-10-16 Andrey Kiselev <[email protected]>
14935
14936 * libtiff 3.7.0 released.
14937
14938 2004-10-15 Bob Friesenhahn <[email protected]>
14939
14940 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
14941 in this file so its inclusion is removed. Including stdio.h
14942 sometimes incurs an INT32 typedef conflict between MinGW's
14943 basetsd.h and libjpeg's jmorecfg.h.
14944
14945 2004-10-15 Andrey Kiselev <[email protected]>
14946
14947 * man/bmp2tiff.1: Added manual page for bmp2tiff utility.
14948
14949 2004-10-13 Bob Friesenhahn <[email protected]>
14950
14951 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
14952 conflict noticed under MinGW.
14953 * ltmain.sh: Fix for MinGW compilation.
14954
14955 2004-10-13 Frank Warmerdam <[email protected]>
14956
14957 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
14958 http://bugzilla.remotesensing.org/show_bug.cgi?id=635
14959
14960 2004-10-12 Andrey Kiselev <[email protected]>
14961
14962 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
14963 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
14964 properly (Dmitry V. Levin, Marcus Meissner).
14965
14966 2004-10-11 Andrey Kiselev <[email protected]>
14967
14968 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
14969 to TIFF_IFD.
14970
14971 2004-10-10 Andrey Kiselev <[email protected]>
14972
14973 * tools/bmp2tif.c: Check the space allocation results.
14974
14975 2004-10-09 Andrey Kiselev <[email protected]>
14976
14977 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
14978 of the TIFFDirectory structure with the 0 instead of -1 to avoid
14979 confusing integer overflows in TIFFTileRowSize() for striped images.
14980
14981 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
14982 by Ross A. Finlayson.
14983
14984 * libtiff/tif_dir.c: Fixed custom tags handling as per bug
14985
14986 http://bugzilla.remotesensing.org/show_bug.cgi?id=629
14987
14988 2004-10-08 Frank Warmerdam <[email protected]>
14989
14990 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
14991 of tif_fieldinfo.
14992
14993 http://bugzilla.remotesensing.org/show_bug.cgi?id=630
14994
14995 2004-10-04 Bob Friesenhahn <[email protected]>
14996
14997 * contrib/iptcutil/README: Added the missing README which goes
14998 along with iptcutil.
14999
15000 2004-10-03 Andrey Kiselev <[email protected]>
15001
15002 * libtiff/tif_compress.c: Improved error reporting in
15003 TIFFGetConfiguredCODECs() (Dmitry V. Levin).
15004
15005 2004-10-02 Andrey Kiselev <[email protected]>
15006
15007 * libtiff 3.7.0beta2 released.
15008
15009 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
15010 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
15011 tif_pixarlog.c, tif_write.c}: Added checks for failed memory
15012 allocations and integer overflows (Dmitry V. Levin).
15013
15014 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
15015
15016 2004-10-01 Frank Warmerdam <[email protected]>
15017
15018 * libtiff/tif_open.c: added a more informative message if a BigTIFF
15019 file is opened.
15020
15021 2004-09-30 Frank Warmerdam <[email protected]>
15022
15023 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
15024 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
15025 in the Adobe XMP Specification.
15026
15027 2004-09-29 Andrey Kiselev <[email protected]>
15028
15029 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
15030 memset().
15031
15032 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
15033 from Dmitry V. Levin to fix possible integer overflow problems.
15034
15035 2004-09-28 Andrey Kiselev <[email protected]>
15036
15037 * libtiff/tif_getimage.c: Check for allocated buffers before clearing
15038 (Dmitry V. Levin).
15039
15040 2004-09-26 Andrey Kiselev <[email protected]>
15041
15042 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
15043 Optimize checking for the strip bounds.
15044
15045 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
15046 TIFFRasterScanlineSize() functions report zero in the case of integer
15047 overflow now. Properly handle this case in TIFFReadDirectory()
15048 (patches from Dmitry V. Levin).
15049
15050 2004-09-25 Andrey Kiselev <[email protected]>
15051
15052 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
15053 macro where appropriate.
15054
15055 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
15056 noted by Gennady Khokhorin.
15057
15058 * libtiff/tif_dirread.c: Always check the return values, returned
15059 by the _TIFFmalloc() (Dmitry V. Levin).
15060
15061 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
15062 functions (Dmitry V. Levin).
15063
15064 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
15065 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
15066 TIFFGrowStrips() (found by Dmitry V. Levin).
15067
15068 2004-09-24 Andrey Kiselev <[email protected]>
15069
15070 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
15071 to get the list of configured codecs.
15072
15073 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
15074 Dmitry V. Levin.
15075
15076 2004-09-23 Andrey Kiselev <[email protected]>
15077
15078 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
15079 possible integer overflow in CheckMalloc() function.
15080
15081 2004-09-22 Andrey Kiselev <[email protected]>
15082
15083 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
15084 of plain TIFFhowmany() where appropriate.
15085
15086 2004-09-21 Andrey Kiselev <[email protected]>
15087
15088 * libtiff/tif_getimage.c: Initialize arrays after space allocation.
15089
15090 2004-09-19 Andrey Kiselev <[email protected]>
15091
15092 * libtiff 3.7.0beta released.
15093
15094 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
15095 overruns fixed, as noted by Chris Evans.
15096
15097 2004-09-14 Bob Friesenhahn <[email protected]>
15098
15099 * commit: Added a script to make it more convenient to commit
15100 updates. The CVS commit message is extracted from this ChangeLog
15101 file.
15102
15103 2004-09-14 Andrey Kiselev <[email protected]>
15104
15105 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
15106 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
15107 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
15108 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
15109 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
15110 tif_config.h.in, tiffiop.h}:
15111 Get rid of BSD data types (u_char, u_short, u_int, u_long).
15112
15113 2004-09-13 Bob Friesenhahn <[email protected]>
15114
15115 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
15116 specification. Reference libtiff bug tracking system to submit
15117 private tag additions.
15118
15119 2004-09-12 Bob Friesenhahn <[email protected]>
15120
15121 * tools/tiffgt.c: Include "tif_config.h".
15122
15123 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
15124 tiffgt. This results in the 'compile' script being added to the
15125 project.
15126
15127 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
15128 required to find OpenGL headers necessary to build tiffgt. Also
15129 ensure that the libtiff that we built is used rather than some other
15130 libtiff installed on the system.
15131
15132 2004-09-12 Andrey Kiselev <[email protected]>
15133
15134 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
15135 libraries.
15136
15137 2004-09-11 Bob Friesenhahn <[email protected]>
15138
15139 * configure.ac: Pass library configuration defines via
15140 tif_config.h rather than extending CPPFLAGS. Configure a
15141 libtiff/tiffconf.h in order to satisfy application requirements
15142 (not used by library build). Do not define _POSIX_C_SOURCE=2 since
15143 this causes failure to build on systems which properly respect
15144 this request.
15145
15146 * libtiff/tiffconf.h.in: New file to act as the template for the
15147 configured tiffconf.h
15148
15149 * libtiff/files.lst (HDRS): Install the configured tiffconf.h.
15150
15151 2004-09-10 Frank Warmerdam <[email protected]>
15152
15153 * html/internals.html: Split off a discussion of adding new tags
15154 into addingtags.html.
15155
15156 2004-09-10 Andrey Kiselev <[email protected]>
15157
15158 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
15159
15160 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
15161
15162 http://bugzilla.remotesensing.org/show_bug.cgi?id=590
15163
15164 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
15165
15166 * libtiff/tif_dirread.c: Don't reject to read tags of the
15167 SamplesPerPixel size when the tag count is greater than number of
15168 samples as per bug
15169
15170 http://bugzilla.remotesensing.org/show_bug.cgi?id=576
15171
15172 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
15173 defining int8/uint8/... etc. types. As per bug
15174
15175 http://bugzilla.remotesensing.org/show_bug.cgi?id=607
15176
15177 2004-09-09 Frank Warmerdam <[email protected]>
15178
15179 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
15180 to avoid compile warnings about getopt() and a few other things.
15181
15182 2004-09-02 Andrey Kiselev <[email protected]>
15183
15184 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer
15185 assigning magic in TIFFFetchFloat().
15186
15187 2004-09-01 Andrey Kiselev <[email protected]>
15188
15189 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
15190 to avoid requirement for tiffiop.h inclusion in some applications. See
15191 here
15192
15193 http://www.asmail.be/msg0054799560.html
15194
15195 for details.
15196
15197 * tools/fax2tiff.c: Use the new functions in the code.
15198
15199 2004-08-25 Andrey Kiselev <[email protected]>
15200
15201 * tools/tiff2pdf.c: Initialize arrays properly.
15202
15203 * tools/tiff2ps.c: Avoid zero division in setupPageState() function;
15204 properly initialize array in PSDataBW().
15205
15206 2004-08-24 Andrey Kiselev <[email protected]>
15207
15208 * tools/tiff2pdf.c: More fixes for bug
15209
15210 http://bugzilla.remotesensing.org/show_bug.cgi?id=590
15211
15212 from Ross Finlayson.
15213
15214 2004-08-23 Andrey Kiselev <[email protected]>
15215
15216 * tools/tiff2ps.c: Fixed problem with uninitialized values.
15217
15218 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the
15219 TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
15220
15221 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug
15222
15223 http://bugzilla.remotesensing.org/show_bug.cgi?id=590
15224
15225 2004-08-20 Andrey Kiselev <[email protected]>
15226
15227 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
15228 that the input file has compression, photometric interpretation,
15229 etcetra, tags or if not than a more descriptive error is returned.
15230
15231 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
15232 code, responsible for tag data type checking.
15233
15234 2004-08-19 Andrey Kiselev <[email protected]>
15235
15236 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
15237 variable as per bug
15238
15239 http://bugzilla.remotesensing.org/show_bug.cgi?id=593
15240
15241 2004-08-16 Andrey Kiselev <[email protected]>
15242
15243 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
15244 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
15245
15246 2004-08-01 Andrey Kiselev <[email protected]>
15247
15248 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
15249 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
15250
15251 2004-07-24 Andrey Kiselev <[email protected]>
15252
15253 * libtiff/tif_lzw.c: LZW compression code is merged back from the
15254 separate package. All libtiff tools are updated to not advertise an
15255 abcence of LZW support.
15256
15257 2004-07-12 Andrey Kiselev <[email protected]>
15258
15259 * libtiff/tiffio.h: Revert thandle_t back to void* type.
15260
15261 2004-07-11 Andrey Kiselev <[email protected]>
15262
15263 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
15264 messages, as suggested by Bernd Herd.
15265
15266 2004-07-03 Andrey Kiselev <[email protected]>
15267
15268 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
15269 when setting custom tags by value. Reported by Eric Fieleke.
15270
15271 2004-06-14 Andrey Kiselev <[email protected]>
15272
15273 * tools/bmp2tiff.c: Add missed RawsPerStrip setting.
15274
15275 2004-06-08 Andrey Kiselev <[email protected]>
15276
15277 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files
15278 into TIFFs.
15279
15280 2004-06-07 Andrey Kiselev <[email protected]>
15281
15282 * libtiff 3.7.0alpha released.
15283
15284 2004-06-06 Andrey Kiselev <[email protected]>
15285
15286 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
15287 of ugly 64-bit hacks, replace them with the clever (autoconf based )
15288 ones :-).
15289
15290 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
15291 problems in 64-bit environment).
15292
15293 2004-06-05 Andrey Kiselev <[email protected]>
15294
15295 * tools/tiffset.c: tiffset now can set any libtiff supported tags.
15296 Tags can be supplied by the mnemonic name or number.
15297
15298 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
15299 functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
15300
15301 2004-05-27 Andrey Kiselev <[email protected]>
15302
15303 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
15304 markers as per bug
15305
15306 http://bugzilla.remotesensing.org/show_bug.cgi?id=581
15307
15308 2004-05-24 Andrey Kiselev <[email protected]>
15309
15310 * tools/tiffsplit.c: Don't forget to copy Photometric
15311 Interpretation tag.
15312
15313 2004-05-20 Andrey Kiselev <[email protected]>
15314
15315 * libtiff/{tif_open.c, tiffio.h}: New function added:
15316 TIFFIsBigEndian(). Function returns nonzero if given was file written
15317 in big-endian order.
15318
15319 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte
15320 files. Now output files will be written using the same byte order
15321 flag as in the input image. See
15322
15323 http://bugzilla.remotesensing.org/show_bug.cgi?id=574
15324
15325 for details.
15326
15327 2004-05-19 Frank Warmerdam <[email protected]>
15328
15329 * libtiff/tif_print.c: added (untested) support for printing
15330 SSHORT, SLONG and SRATIONAL fields.
15331
15332 * tools/tiffcp.c: close output file on normal exit.
15333
15334 2004-05-17 Andrey Kiselev <[email protected]>
15335
15336 * libtiff/tif_fax3.c: Avoid reading CCITT compression options
15337 if compression type mismatches. See
15338
15339 http://bugzilla.remotesensing.org/show_bug.cgi?id=565
15340
15341 2004-04-30 Andrey Kiselev <[email protected]>
15342
15343 * libtiff/tif_strip.c: Never return 0 from the
15344 TIFFNumberOfStrips().
15345
15346 2004-04-29 Andrey Kiselev <[email protected]>
15347
15348 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which
15349 store single SampleFormat value for multisampled images. See
15350
15351 http://bugzilla.remotesensing.org/show_bug.cgi?id=562
15352
15353 2004-04-25 Andrey Kiselev <[email protected]>
15354
15355 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
15356 int16 and int32 types to avoid complains on some compilers. Details at
15357
15358 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
15359
15360 2004-04-20 Andrey Kiselev <[email protected]>
15361
15362 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
15363
15364 http://bugzilla.remotesensing.org/show_bug.cgi?id=555
15365
15366 2004-04-14 Andrey Kiselev <[email protected]>
15367
15368 * libtiff/tif_write.c: Allow in-place updating of the compressed
15369 images (don't work properly with all codecs). For details see GDAL bug
15370
15371 http://bugzilla.remotesensing.org/show_bug.cgi?id=534
15372
15373 2004-04-06 Andrey Kiselev <[email protected]>
15374
15375 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
15376 in the Intergarph JPEG compressed TIFF images as per bug:
15377
15378 http://bugzilla.remotesensing.org/show_bug.cgi?id=532
15379
15380 2004-04-04 Frank Warmerdam <[email protected]>
15381
15382 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
15383 via bad2.
15384
15385 2004-03-26 Andrey Kiselev <[email protected]>
15386
15387 * tools/tiffcp.c: Properly set Photometric Interpretation in case of
15388 JPEG compression of grayscale images.
15389
15390 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not
15391 present in the input image.
15392
15393 2004-03-19 Andrey Kiselev <[email protected]>
15394
15395 * {many}: The first attempt to switch to autotools.
15396
15397 2004-03-03 Andrey Kiselev <[email protected]>
15398
15399 * libtiff/tif_open.c: Use dummy mmap/munmap functions in
15400 TIFFClientOpen() when the appropriate client functions was not
15401 supplied by user.
15402
15403 2004-03-02 Frank Warmerdam <[email protected]>
15404
15405 * tools/ycbcr.c: fixed main() declaration as per:
15406 http://bugzilla.remotesensing.org/show_bug.cgi?id=513
15407
15408 2004-02-26 Andrey Kiselev <[email protected]>
15409
15410 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
15411 images. Reported by Artem Mirolubov.
15412
15413 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
15414 tag type in TIFFFetchNormalTag() as per bug
15415
15416 http://bugzilla.remotesensing.org/show_bug.cgi?id=508
15417
15418 2004-02-17 Frank Warmerdam <[email protected]>
15419
15420 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
15421 http://bugzilla.remotesensing.org/show_bug.cgi?id=494
15422
15423 2004-02-05 Andrey Kiselev <[email protected]>
15424
15425 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
15426 bug
15427
15428 http://bugzilla.remotesensing.org/show_bug.cgi?id=483
15429
15430 But we need more work on fax codec to support update mode.
15431
15432 2004-01-30 Frank Warmerdam <[email protected]>
15433
15434 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
15435 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
15436 Scott Reynolds.
15437
15438 2004-01-29 Andrey Kiselev <[email protected]>
15439
15440 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
15441 and TIFFTAG_INDEXED as per bug
15442
15443 http://bugzilla.remotesensing.org/show_bug.cgi?id=475
15444
15445 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
15446 NULL before proceeding further as per bug
15447
15448 http://bugzilla.remotesensing.org/show_bug.cgi?id=474
15449
15450 Check results, returned by the TIFFFdOpen() before returning and close
15451 file if TIFFFdOpen() failed as per bug
15452
15453 http://bugzilla.remotesensing.org/show_bug.cgi?id=468
15454
15455 * libtiff/tif_open.c: More fixes for
15456
15457 http://bugzilla.remotesensing.org/show_bug.cgi?id=468
15458
15459 2004-01-28 Andrey Kiselev <[email protected]>
15460
15461 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
15462 TIFFCleanup() from the TIFFClose() in order to fix the bug
15463
15464 http://bugzilla.remotesensing.org/show_bug.cgi?id=468
15465
15466 * tools/tiffcp.c: Fixed problem with wrong interpretation of the
15467 InkNames tag as per bug
15468
15469 http://bugzilla.remotesensing.org/show_bug.cgi?id=466
15470
15471 Memory leak fixed.
15472
15473 2004-01-21 Frank Warmerdam <[email protected]>
15474
15475 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
15476 are field_passcount=TRUE properly. Arguably anonymous custom tags
15477 should be declared as passcount=FALSE, but I don't want to change
15478 that without a careful review.
15479
15480 2004-01-20 Andrey Kiselev <[email protected]>
15481
15482 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of
15483 stripped image in TIFFWriteBufferSetup(). As per bug
15484
15485 http://bugzilla.remotesensing.org/show_bug.cgi?id=460
15486
15487 2004-01-11 Andrey Kiselev <[email protected]>
15488
15489 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
15490 patch from Gerben Koopmans.
15491
15492 * libtiff/tif_dirread.c: Check field_passcount value before setting
15493 the value of undefined type, patch from Gerben Koopmans.
15494
15495 2004-01-02 Andrey Kiselev <[email protected]>
15496
15497 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for
15498 non-RGB images.
15499
15500 2003-12-31 Andrey Kiselev <[email protected]>
15501
15502 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
15503 pointer passed. Patch supplied by Larry Grill.
15504
15505 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
15506 suggested by Jeremy C. Reed.
15507
15508 2003-12-26 Andrey Kiselev <[email protected]>
15509
15510 * libtiff 3.6.1 released.
15511
15512 2003-12-24 Andrey Kiselev <[email protected]>
15513
15514 * config.guess, config.sub: Updated from the recent upstream.
15515
15516 2003-12-22 Andrey Kiselev <[email protected]>
15517
15518 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
15519 More cleanups in color conversion interface, added appropriate manual
15520 page.
15521
15522 2003-12-19 Andrey Kiselev <[email protected]>
15523
15524 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
15525 per bug
15526
15527 http://bugzilla.remotesensing.org/show_bug.cgi?id=357
15528
15529 * tools/tiff2ps.c: Added support for alpha channel. Fixes
15530
15531 http://bugzilla.remotesensing.org/show_bug.cgi?id=428
15532
15533 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
15534 Interface for Lab->RGB color conversion is finally cleaned up.
15535 Added support for ReferenceBlackWhite tag handling when converted from
15536 YCbCr color space. The latter closes
15537
15538 http://bugzilla.remotesensing.org/show_bug.cgi?id=120
15539
15540 2003-12-07 Andrey Kiselev <[email protected]>
15541
15542 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
15543
15544 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
15545 library.
15546
15547 2003-12-06 Andrey Kiselev <[email protected]>
15548
15549 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
15550 file and properly use it for CIE Lab->RGB transform.
15551
15552 2003-12-04 Andrey Kiselev <[email protected]>
15553
15554 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
15555 conversion routines now in the tif_color.c module. New function
15556 TIFFYCbCrtoRGB() available in TIFF API.
15557
15558 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
15559
15560 2003-12-03 Andrey Kiselev <[email protected]>
15561
15562 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
15563 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
15564 module.
15565
15566 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
15567 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
15568 Finally resolved problems with orientation handling. TIFFRGBAImage
15569 interface now properly supports all possible orientations, i.e. images
15570 will be flipped both in horizontal and vertical directions if
15571 required. 'Known bugs' section now removed from the appropriate manual
15572 pages. Closed bug entry:
15573
15574 http://bugzilla.remotesensing.org/show_bug.cgi?id=322
15575
15576 2003-12-02 Andrey Kiselev <[email protected]>
15577
15578 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
15579 function calls as per bug
15580
15581 http://bugzilla.remotesensing.org/show_bug.cgi?id=440
15582
15583 2003-11-28 Ross Finlayson <[email protected]>
15584
15585 * tools/tiff2pdf.c: Some bugs fixed.
15586
15587 2003-11-27 Andrey Kiselev <[email protected]>
15588
15589 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
15590 reported by Antonio Scuri.
15591
15592 * man/tiff2pdf.1: Few improvements in page layout.
15593
15594 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
15595 Added support for tiff2pdf manual page.
15596
15597 2003-11-26 Ross Finlayson <[email protected]>
15598
15599 * /man/tiff2pdf.1: File added to repository.
15600
15601 2003-11-26 Andrey Kiselev <[email protected]>
15602
15603 * Makefile.in, /tools/{Makefile.in, makefile.vc}:
15604 Added support for tiff2pdf utility.
15605
15606 2003-11-25 Ross Finlayson <[email protected]>
15607
15608 * /tools/tiff2pdf.c: File added to repository.
15609
15610 2003-11-22 Andrey Kiselev <[email protected]>
15611
15612 * /tools/raw2tiff.c: sqrtf() replaced with sqrt().
15613
15614 2003-11-21 Andrey Kiselev <[email protected]>
15615
15616 * /tools/raw2tiff.c: #include <getopt.h> removed.
15617
15618 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
15619 sgigt utility removed and replaced with the completely rewritten
15620 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
15621 there is a lot of things to improve.
15622
15623 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
15624 extract the fields from the OJPEG files. Patch supplied by Ross
15625 Finlayson.
15626
15627 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
15628 Added new function TIFFIsCODECConfigured(), suggested by Ross
15629 Finlayson.
15630
15631 2003-11-18 Andrey Kiselev <[email protected]>
15632
15633 * libtiff/tif_dirinfo.c: Implemented binary search in
15634 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
15635
15636 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
15637 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
15638
15639 2003-11-17 Frank Warmerdam <[email protected]>
15640
15641 * tif_dirread.c: do not mark all anonymously defined tags to be
15642 IGNOREd.
15643
15644 2003-11-17 Andrey Kiselev <[email protected]>
15645
15646 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
15647 TIFFDataWidth() function instead of tiffDataWidth array.
15648
15649 2003-11-16 Andrey Kiselev <[email protected]>
15650
15651 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
15652 datatype, introduced in "Adobe PageMaker TIFF Tech. Notes".
15653
15654 2003-11-15 Frank Warmerdam <[email protected]>
15655
15656 * Makefile.in: fixed missing backslash for tif_color.c in list.
15657
15658 2003-11-13 Andrey Kiselev <[email protected]>
15659
15660 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
15661 New color space conversion code: CIE L*a*b* 1976 images now supported
15662 by the TIFFRGBAImage interface. All introduced routines go to new
15663 module tif_color.c. Eventually all color conversion functions should
15664 be moved there.
15665
15666 2003-11-12 Andrey Kiselev <[email protected]>
15667
15668 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
15669 with the reverse byte order (it is reported by the magic header
15670 field). Problem reported by Andreas Wiesmann.
15671
15672 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
15673 calculation function. Guessing mechanics now documented in manual page.
15674
15675 2003-11-11 Andrey Kiselev <[email protected]>
15676
15677 * tools/raw2tiff.c: Implemented image size guessing using
15678 correlation coefficient calculation between two neighbour lines.
15679
15680 2003-11-09 Frank Warmerdam <[email protected]>
15681
15682 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
15683 planarconfig_contig case in TIFFComputeTile().
15684
15685 http://bugzilla.remotesensing.org/show_bug.cgi?id=387
15686
15687 2003-11-09 Andrey Kiselev <[email protected]>
15688
15689 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
15690
15691 2003-11-07 Andrey Kiselev <[email protected]>
15692
15693 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
15694 Added TIFFRawStripSize() function as suggested by Chris Hanson.
15695
15696 2003-11-03 Andrey Kiselev <[email protected]>
15697
15698 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
15699 per bug
15700
15701 http://bugzilla.remotesensing.org/show_bug.cgi?id=424
15702
15703 2003-10-29 Andrey Kiselev <[email protected]>
15704
15705 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
15706
15707 * html/build.html: Added note about GNU make requirement.
15708
15709 2003-10-25 Andrey Kiselev <[email protected]>
15710
15711 * Makefile.in: Fixes in using MAKEFLAGS as per bug
15712
15713 http://bugzilla.remotesensing.org/show_bug.cgi?id=418
15714
15715 * port/install.sh.in: Option -p added to the mkdir command to create
15716 all directory tree structure before installing.
15717
15718 2003-10-18 Andrey Kiselev <[email protected]>
15719
15720 * /tools/tiff2ps.c: #include <strings.h> replaced with the
15721 #include <string.h>.
15722
15723 2003-10-16 Andrey Kiselev <[email protected]>
15724
15725 * Makefile.in: Add an absolute path to the test_pics.sh call.
15726
15727 2003-10-12 Andrey Kiselev <[email protected]>
15728
15729 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
15730 typedefs.
15731
15732 2003-10-09 Andrey Kiselev <[email protected]>
15733
15734 * configure, libtiff/{Makefile.in, mkversion.c}:
15735 Relative buildings fixed.
15736
15737 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building
15738 rule.
15739
15740 2003-10-07 Andrey Kiselev <[email protected]>
15741
15742 * Makefile.in: Added missed v3.6.0.html.
15743
15744 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
15745 ORIENTATION_BOTLEFT.
15746
15747 2003-10-04 Andrey Kiselev <[email protected]>
15748
15749 * 3.6.0 final release.
15750
15751 2003-10-03 Andrey Kiselev <[email protected]>
15752
15753 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
15754 function TIFFReadRGBAImageOriented() implemented to retrieve raster
15755 array with user-specified origin position as suggested by Jason Frank.
15756 See
15757
15758 http://bugzilla.remotesensing.org/show_bug.cgi?id=322
15759
15760 for details.
15761
15762 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
15763 instead of TIFFReadRGBAImage().
15764
15765 * tools/tiff2ps.c: Fixed possible endless loop as per bug
15766
15767 http://bugzilla.remotesensing.org/show_bug.cgi?id=404
15768
15769 2003-09-30 Andrey Kiselev <[email protected]>
15770
15771 * libtiff/tif_dirread.c: Check field counter against number of fields
15772 in order to fix
15773
15774 http://bugzilla.remotesensing.org/show_bug.cgi?id=366
15775
15776 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug
15777
15778 http://bugzilla.remotesensing.org/show_bug.cgi?id=342
15779
15780 2003-09-25 Andrey Kiselev <[email protected]>
15781
15782 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
15783 tif_close.c}: Store a list of opened IFD to prevent looping as per bug
15784
15785 http://bugzilla.remotesensing.org/show_bug.cgi?id=383
15786
15787 2003-09-23 Andrey Kiselev <[email protected]>
15788
15789 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See
15790
15791 http://bugzilla.remotesensing.org/show_bug.cgi?id=358
15792
15793 2003-08-21 Andrey Kiselev <[email protected]>
15794
15795 * tools/tiffmedian.c: int declaration replaced with the uint32 to
15796 support large images as per bug
15797
15798 http://bugzilla.remotesensing.org/show_bug.cgi?id=382
15799
15800 2003-08-12 Andrey Kiselev <[email protected]>
15801
15802 * libtiff/Makefile.in: Fixed problem with building in different
15803 directory.
15804
15805 * tools/tiff2ps.c: Added missing #include <strings.h>.
15806
15807 * libtiff/tif_dirwrite.c: More fixes for custom tags code
15808 from Ashley Dreier.
15809
15810 2003-08-07 Andrey Kiselev <[email protected]>
15811
15812 * tools/tiff2ps.c: Added page size setting when creating PS Level 2.
15813 Patch submitted by Balatoni Denes (with corrections from Tom
15814 Kacvinsky).
15815
15816 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
15817 being used. Reported by Tom Kacvinsky.
15818
15819 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
15820 reported by Ashley Dreier.
15821
15822 * libtiff/tif_print.c: Fixed problem with float tags reading, support
15823 for printing RATIONAL and BYTE tags added.
15824
15825 2003-08-05 Andrey Kiselev <[email protected]>
15826
15827 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to
15828 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
15829 problems with predictor initialization. Remove O_RDONLY check during
15830 state block allocation to be able open LZW compressed files in update
15831 mode.
15832
15833 Problem exist for libtiff version of the tif_lzw.c module. One from
15834 lzw-compression-kit hasn't such troubles.
15835
15836 2003-08-04 Frank Warmerdam <[email protected]>
15837
15838 * libtiff/tif_write.c: modified tif_write.c so that the various
15839 encoded write functions use tif_postdecode() to apply byte order
15840 swapping (swab) to the application passed data buffer if the same
15841 would be done when reading. This allows us to write pixel data with
15842 more than 8 bits per sample to existing files of a non-native byte
15843 order. One side effect of this change is the applications buffer
15844 itself is altered in this case by the act of writing.
15845
15846 http://bugzilla.remotesensing.org/show_bug.cgi?id=171
15847
15848 2003-07-25 Frank Warmerdam <[email protected]>
15849
15850 * libtiff/tif_open.c: avoid signed/unsigned casting warning
15851 initializing typemask as per patch from J.A. Strother.
15852
15853 * tools/tiffcp.c: fixed signed/unsigned casting warning.
15854
15855 * libtiff/tif_print.c: dos2unix conversion.
15856
15857 * tools/tiffsplit.c: increased the maximum number of pages that
15858 can be split. Patch provided by Andrew J. Montalenti.
15859
15860 2003-07-11 Andrey Kiselev <[email protected]>
15861
15862 * tools/raw2tiff.c: Added option `-p' to explicitly select color
15863 space of input image data. Closes
15864
15865 http://bugzilla.remotesensing.org/show_bug.cgi?id=364
15866
15867 2003-07-08 Frank Warmerdam <[email protected]>
15868
15869 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
15870 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
15871 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
15872 avoid casting warning at /W4.
15873
15874 2003-07-03 Andrey Kiselev <[email protected]>
15875
15876 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
15877
15878 2003-06-30 Andrey Kiselev <[email protected]>
15879
15880 * libtiff/tif_pixarlog.c: Unused variables removed.
15881
15882 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
15883 EstimateStripByteCounts() as per bug
15884
15885 http://bugzilla.remotesensing.org/show_bug.cgi?id=358
15886
15887 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
15888 64-bit architectures as per bug
15889
15890 http://bugzilla.remotesensing.org/show_bug.cgi?id=357
15891
15892 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
15893 unknown data type.
15894
15895 2003-06-19 Frank Warmerdam <[email protected]>
15896
15897 * libtiff/tif_print.c: fixed some serious bugs when printing
15898 custom tags ... almost certain to crash.
15899
15900 * libtiff/tif_dirread.c: Don't ignore custom fields that are
15901 autodefined. Not sure how this got to be like this.
15902
15903 2003-06-18 Andrey Kiselev <[email protected]>
15904
15905 * 3.6.0 Beta2 released.
15906
15907 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
15908 comparing as per bug
15909
15910 http://bugzilla.remotesensing.org/show_bug.cgi?id=349
15911
15912 `-z' option now can be used to set the number of reported different
15913 bytes.
15914
15915 2003-06-09 Andrey Kiselev <[email protected]>
15916
15917 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
15918 to -r option to get the entire image as one strip. See
15919
15920 http://bugzilla.remotesensing.org/show_bug.cgi?id=343
15921
15922 for details.
15923
15924 2003-06-04 Andrey Kiselev <[email protected]>
15925
15926 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
15927 values as per bug
15928
15929 http://bugzilla.remotesensing.org/show_bug.cgi?id=343
15930
15931 2003-05-27 Frank Warmerdam <[email protected]>
15932
15933 * libtiff/tif_jpeg.c: modified segment_height calculation to always
15934 be a full height tile for tiled images. Also changed error to just
15935 be a warning.
15936
15937 2003-05-25 Andrey Kiselev <[email protected]>
15938
15939 * tools/fax2tiff.c: Page numbering fixed, as per bug
15940
15941 http://bugzilla.remotesensing.org/show_bug.cgi?id=341
15942
15943 2003-05-20 Andrey Kiselev <[email protected]>
15944
15945 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
15946 configure, Makefile.in: Switched back to the old behaviour. Likely
15947 better solution should be found for OJPEG support.
15948
15949 2003-05-11 Andrey Kiselev <[email protected]>
15950
15951 * libtiff/mkversion.c: Fixed problem with wrong string size when
15952 reading RELEASE-DATE file.
15953
15954 2003-05-07 Andrey Kiselev <[email protected]>
15955
15956 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
15957 index was out of range.
15958
15959 2003-05-06 Andrey Kiselev <[email protected]>
15960
15961 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
15962 configure, Makefile.in: Improved libtiff compilation with OJPEG
15963 support. Now no need for patching IJG JPEG library, hack required by
15964 libtiff will be compiled and used in-place. Implemented with
15965 suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
15966
15967 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
15968 TIFFVGetFieldDefaulted() function.
15969
15970 2003-05-05 Andrey Kiselev <[email protected]>
15971
15972 * tools/ppm2tiff.c: PPM header parser improved: now able to skip
15973 comments.
15974
15975 * tools/tiffdither.c: Fixed problem with bit fill order tag setting:
15976 was not copied from source image.
15977
15978 * libtiff/getimage.c: Workaround for some images without correct
15979 info about alpha channel as per bug
15980
15981 http://bugzilla.remotesensing.org/show_bug.cgi?id=331
15982
15983 2003-04-29 Andrey Kiselev <[email protected]>
15984
15985 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
15986 It basically allows one to use the /flateDecode filter for ZIP
15987 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
15988
15989 http://bugzilla.remotesensing.org/show_bug.cgi?id=328
15990
15991 * tools/tiff2ps.c: Force deadzone printing when EPS output specified
15992 as per bug
15993
15994 http://bugzilla.remotesensing.org/show_bug.cgi?id=325
15995
15996 2003-04-17 Andrey Kiselev <[email protected]>
15997
15998 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts
15999 due to problems with multidirectory images. Quality of error messages
16000 improved.
16001
16002 2003-04-16 Andrey Kiselev <[email protected]>
16003
16004 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
16005 encoded images. See bug entries
16006
16007 http://bugzilla.remotesensing.org/show_bug.cgi?id=275
16008
16009 and
16010
16011 http://bugzilla.remotesensing.org/show_bug.cgi?id=23
16012
16013 * libtiff/tif_dirread.c: Additional check for StripByteCounts
16014 correctness. Fixes
16015
16016 http://bugzilla.remotesensing.org/show_bug.cgi?id=320
16017
16018 2003-03-12 Andrey Kiselev <[email protected]>
16019
16020 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
16021 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
16022 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
16023 tiffmedian.c}: Added library version reporting facility to all tools.
16024
16025 2003-03-06 Frank Warmerdam <[email protected]>
16026
16027 * port/install.sh.in: Fixed problems with install producing paths
16028 like ///usr/local/lib on cygwin.
16029
16030 2003-02-27 Andrey Kiselev <[email protected]>
16031
16032 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
16033 raw input page. Patch supplied by Julien Gaulmin. See
16034
16035 http://bugzilla.remotesensing.org/show_bug.cgi?id=293
16036
16037 for details.
16038
16039 2003-02-26 Frank Warmerdam <[email protected]>
16040
16041 * libtiff/tif_dir.c: fixed up the tif_postdecode settings
16042 responsible for byte swapping complex image data.
16043
16044 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
16045 LZWSetupDecode(). Needed to read LZW files in "r+" mode.
16046
16047 2003-02-07 Andrey Kiselev <[email protected]>
16048
16049 * tools/ppm2tiff.c: Fixed problem with too many arguments.
16050
16051 2003-02-04 Andrey Kiselev <[email protected]>
16052
16053 * tools/raw2tiff.c: Memory leak fixed.
16054
16055 2003-02-03 Andrey Kiselev <[email protected]>
16056
16057 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
16058 (thanks, Julien!). More switches for fax2tiff tool for better control
16059 of input and output. Details at
16060
16061 http://bugzilla.remotesensing.org/show_bug.cgi?id=272
16062
16063 2003-02-03 Frank Warmerdam <[email protected]>
16064
16065 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
16066 library so that we can check if there is already any tile/strip data
16067 before deciding between creating a compressor or a decompressor.
16068
16069 2003-01-31 Frank Warmerdam <[email protected]>
16070
16071 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
16072 a pre-existing compressed image. That is, image writing to
16073 pre-existing compressed images is not allowed.
16074
16075 * libtiff/tif_open.c: Removed error if opening a compressed file
16076 in update mode.
16077
16078 http://bugzilla.remotesensing.org/show_bug.cgi?id=198
16079
16080 2003-01-31 Andrey Kiselev <[email protected]>
16081
16082 * config.guess, config.sub: Updated to recent upstream versions.
16083
16084 2003-01-15 Frank Warmerdam <[email protected]>
16085
16086 * cut 3.6.0 Beta release.
16087
16088 2002-12-20 Andrey Kiselev <[email protected]>
16089
16090 * tools/fax2ps.c, man/fax2ps.1: Page size was determined
16091 in wrong way as per bug
16092
16093 http://bugzilla.remotesensing.org/show_bug.cgi?id=239
16094
16095 2002-12-17 Frank Warmerdam <[email protected]>
16096
16097 * libtiff/tif_dirread.c: Allow wrong sized arrays in
16098 TIFFFetchStripThing().
16099
16100 http://bugzilla.remotesensing.org/show_bug.cgi?id=49
16101
16102 2002-12-02 Frank Warmerdam <[email protected]>
16103
16104 * libtiff/tif_dir.c: fix problem with test on td_customValueCount.
16105 Was using realloc even first time. Fix by Igor Venevtsev.
16106
16107 2002-11-30 Frank Warmerdam <[email protected]>
16108
16109 * libtiff/tif_dir.c: fixed bug with resetting an existing custom
16110 field value.
16111
16112 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
16113 tags in TIFFVGetField() ... added missing break.
16114
16115 2002-10-14 Frank Warmerdam <[email protected]>
16116
16117 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
16118 the scanline buffer long enough when writing rgb triplets.
16119 The scanline needs to be 3 X the number of dots or else it will
16120 contain an incomplete triplet and programs that try to separate
16121 the eps by redefining the colorimage operator will get messed up.
16122 Patch supplied by William Bader.
16123
16124 * Makefile.in: added tif_extension.c to file list as per
16125 http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
16126
16127 2002-10-11 Andrey Kiselev <[email protected]>
16128
16129 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
16130 large files (>2GiB) supporting. New option in the config.site:
16131 LARGEFILE="yes". Should be enough for I/O of the large files.
16132
16133 2002-10-10 Frank Warmerdam <[email protected]>
16134
16135 * libtiff/html/v3.6.0.html: new release notes.
16136
16137 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email
16138 link for Andrey. Pointer to v3.6.0.html.
16139
16140 * libtiff/Makefile.in: added direct rule for tiffvers.h for release.
16141
16142 2002-10-07 Andrey Kiselev <[email protected]>
16143 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
16144 (thanks, Sebastian!). New switches:
16145 -b # for a bottom margin of # inches
16146 -c center image
16147 -l # for a left margin of # inches
16148 -r rotate the image by 180 degrees
16149 New features merged with code for shrinking/overlapping.
16150 Previously added -c and -n switches (for overriding PS units) renamed
16151 in -x and -y respectively.
16152
16153 http://bugzilla.remotesensing.org/show_bug.cgi?id=200
16154
16155 * html/man/*.html: Updated from actual manual pages.
16156
16157 2002-10-06 Frank Warmerdam <[email protected]>
16158
16159 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
16160 size on windows. Use #define boolean hack.
16161
16162 http://bugzilla.remotesensing.org/show_bug.cgi?id=188
16163
16164 * libtiff/tiff.h: Don't do special type handling in tiff.h unless
16165 USING_VISUALAGE is defined.
16166
16167 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
16168
16169 2002-10-03 Frank Warmerdam <[email protected]>
16170
16171 * libtiff/tiff.h: added COMPRESSION_JP2000.
16172
16173 2002-10-02 Andrey Kiselev <[email protected]>
16174
16175 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
16176 by the TIFFFetchByteArray() function. Should finally resolve
16177
16178 http://bugzilla.remotesensing.org/show_bug.cgi?id=52
16179
16180 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
16181
16182 * html/Makefile.in: New targets added: html and groffhtml for
16183 producing HTML representations of the manual pages automatically.
16184 html target uses man2html tool, groffhtml uses groff tool.
16185
16186 2002-09-29 Frank Warmerdam <[email protected]>
16187
16188 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
16189 from John H. DuBois III.
16190
16191 2002-09-15 Andrey Kiselev <[email protected]>
16192
16193 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
16194 manual page for raw2tiff(1) tool.
16195
16196 2002-09-12 Andrey Kiselev <[email protected]>
16197
16198 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
16199 the tiffio.h header file.
16200
16201 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
16202 manual page for TIFFDataWidth() function
16203
16204 2002-09-08 Frank Warmerdam <[email protected]>
16205
16206 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
16207 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
16208
16209 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
16210 since we are unable to properly include the amount to skip.
16211
16212 http://bugzilla.remotesensing.org/show_bug.cgi?id=80
16213
16214 2002-09-02 Andrey Kiselev <[email protected]>
16215
16216 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
16217 in TIFFFetchByteArray(). Problem described at
16218 http://bugzilla.remotesensing.org/show_bug.cgi?id=52
16219
16220 2002-08-22 Andrey Kiselev <[email protected]>
16221
16222 * /libtiff/tif_dirinfo.c: Further additions to free custom fields
16223 in _TIFFSetupFieldInfo() function.
16224 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
16225
16226 * /libtiff/tif_lzw.c: Additional consistency checking added in
16227 LZWDecode() and LZWDecodeCompat().
16228 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
16229 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
16230
16231 * /libtiff/tif_lzw.c:
16232 Added check for valid code lengths in LZWDecode() and
16233 LZWDecodeCompat(). Fixes
16234 http://bugzilla.remotesensing.org/show_bug.cgi?id=115
16235
16236 2002-08-16 Andrey Kiselev <[email protected]>
16237
16238 * /libtiff/{Makefile.vc, libtiff.def}:
16239 Missed declarations added.
16240
16241 2002-08-15 Frank Warmerdam <[email protected]>
16242
16243 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
16244 return code from the underlying pick function.
16245
16246 http://bugzilla.remotesensing.org/show_bug.cgi?id=177
16247
16248 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
16249 with FIELD_CUSTOM as mentioned in bug 169.
16250
16251 * tif_close.c: added logic to free dynamically created anonymous
16252 field definitions to correct a small memory leak.
16253
16254 http://bugzilla.remotesensing.org/show_bug.cgi?id=169
16255
16256 2002-08-10 Andrey Kiselev <[email protected]>
16257
16258 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
16259 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
16260
16261 2002-07-31 Frank Warmerdam <[email protected]>
16262
16263 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
16264 JPEGDecode() as per bugzilla bug (issue 1):
16265
16266 http://bugzilla.remotesensing.org/show_bug.cgi?id=129
16267
16268 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
16269 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
16270 present in the tiff tags.
16271
16272 http://bugzilla.remotesensing.org/show_bug.cgi?id=168
16273
16274 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
16275 TIFFWriteScanline() now set tif_row explicitly in case the codec has
16276 fooled with the value.
16277
16278 http://bugzilla.remotesensing.org/show_bug.cgi?id=129
16279
16280 2002-06-22 Andrey Kiselev <[email protected]>
16281
16282 * /tools/tiff2ps.c: Added workaround for some software that may crash
16283 when last strip of image contains fewer number of scanlines than
16284 specified by the `/Height' variable. See
16285 http://bugzilla.remotesensing.org/show_bug.cgi?id=164
16286 for explanation.
16287
16288 2002-06-21 Andrey Kiselev <[email protected]>
16289
16290 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
16291 splitting long images in several pages. See
16292 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
16293 Patch granted by John Williams <[email protected]>.
16294
16295 2002-06-11 Frank Warmerdam <[email protected]>
16296
16297 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new
16298 Tiffile.cpp example of converting TIFF files into a DIB on Win32.
16299 This one is described in:
16300
16301 http://bugzilla.remotesensing.org/show_bug.cgi?id=143
16302
16303 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at:
16304
16305 http://bugzilla.remotesensing.org/show_bug.cgi?id=156
16306
16307 2002-05-10 Andrey Kiselev <[email protected]>
16308
16309 * tools/tiff2ps: New commandline switches to override resolution
16310 units obtained from the input file. Closes
16311 http://bugzilla.remotesensing.org/show_bug.cgi?id=131
16312
16313 2002-04-26 Andrey Kiselev <[email protected]>
16314
16315 * libtiff/libtiff.def: Added missed declaration.
16316
16317 2002-04-22 Andrey Kiselev <[email protected]>
16318
16319 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
16320 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
16321
16322 2002-04-20 Andrey Kiselev <[email protected]>
16323
16324 * libtiff/tif_open.c: Pointers to custom procedures
16325 in TIFFClientOpen() are checked to be not NULL-pointers.
16326
16327 2002-04-18 Andrey Kiselev <[email protected]>
16328
16329 * libtiff/libtiff.def: Added missed declarations.
16330
16331 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
16332
16333 2002-04-16 Andrey Kiselev <[email protected]>
16334
16335 * libtiff/tif_lzw.c: Additional checks for data integrity introduced.
16336 Should finally close
16337 http://bugzilla.remotesensing.org/show_bug.cgi?id=100
16338
16339 2002-04-10 Andrey Kiselev <[email protected]>
16340
16341 * tools/tiff2ps: Division by zero fixed.
16342 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
16343
16344 2002-04-09 Andrey Kiselev <[email protected]>
16345
16346 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
16347 TIFFCheckpointDirectory() routine added.
16348 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
16349
16350 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description
16351 for the new function.
16352
16353 2002-04-08 Andrey Kiselev <[email protected]>
16354
16355 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
16356 additional members tif->tif_decodestatus and tif->tif_encodestatus
16357 for correct handling of unconfigured codecs (we should not try to read
16358 data or to define data size without correct codecs).
16359
16360 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
16361 changed. Now it has used tif->tif_decodestatus and
16362 tif->tif_encodestatus.
16363 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
16364 case of __cvs_8.tif test image).
16365
16366 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
16367 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
16368 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
16369 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
16370
16371 2002-04-04 Andrey Kiselev <[email protected]>
16372
16373 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
16374 replaced by warnings. Now libtiff should read corrupted LZW-compressed
16375 files by skipping bad strips.
16376 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
16377
16378 2002-04-03 Frank Warmerdam <[email protected]>
16379
16380 * libtiff/tif_dirwrite.c: Removed some dead code.
16381
16382 * libtiff/*: Cleanup some warnings.
16383
16384 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
16385 for variable length FIELD_CUSTOM values. Was int * but should be
16386 u_short *.
16387
16388 2002-04-01 Andrey Kiselev <[email protected]>
16389
16390 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
16391 utility (at cpStripToTile routine).
16392
16393 2002-03-27 Frank Warmerdam <[email protected]>
16394
16395 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
16396
16397 http://bugzilla.remotesensing.org/show_bug.cgi?id=111
16398
16399 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
16400 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
16401
16402 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
16403 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
16404
16405 2002-03-26 Dwight Kelly <[email protected]>
16406
16407 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
16408 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
16409 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
16410 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
16411 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
16412 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
16413
16414 2002-03-26 Andrey Kiselev <[email protected]>
16415
16416 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
16417 now also uses TIFFRGBAImageOK before reading. This is additional fix
16418 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
16419
16420 2002-03-25 Andrey Kiselev <[email protected]>
16421
16422 * libtiff/: tif_getimage.c: Additional check for supported
16423 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
16424 TIFFRGBAImageOK before reading.
16425 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
16426
16427 2002-03-15 Andrey Kiselev <[email protected]>
16428
16429 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
16430 tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
16431 TIFFDataType sizes instead of working with tiffDataWidth array
16432 directly. Should prevent out-of-borders bugs in case of unknown or
16433 broken data types. EstimateStripByteCounts routine modified, so it
16434 won't work when tags with unknown sizes founded.
16435 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
16436
16437 2002-03-13 Andrey Kiselev <[email protected]>
16438
16439 * libtiff/tif_getimage.c: Added support for correct handling
16440 `Orientation' tag in gtTileContig. Should be added in other gt*
16441 functions as well, but I have not images for testing yet. Partially
16442 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
16443
16444 2002-03-10 Andrey Kiselev <[email protected]>
16445
16446 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
16447 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
16448 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes
16449 http://bugzilla.remotesensing.org/show_bug.cgi?id=99
16450
16451 2002-03-08 Andrey Kiselev <[email protected]>
16452
16453 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not
16454 be stripped when installing, utility binaries will do. Closes
16455 http://bugzilla.remotesensing.org/show_bug.cgi?id=93
16456
16457 2002-02-28 Frank Warmerdam <[email protected]>
16458
16459 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
16460
16461 * man/libtiff.3t: added copyright tag info.
16462
16463 2002-02-11 Frank Warmerdam <[email protected]>
16464
16465 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
16466
16467 http://bugzilla.remotesensing.org/show_bug.cgi?id=94
16468
16469 * man/Makefile.in: Patch DESTDIR handling
16470
16471 http://bugzilla.remotesensing.org/show_bug.cgi?id=95
16472
16473 * configure: OpenBSD changes for Sparc64 and DSO version.
16474
16475 http://bugzilla.remotesensing.org/show_bug.cgi?id=96
16476
16477 2002-02-05 Frank Warmerdam <[email protected]>
16478
16479 * config.site/configure: added support for OJPEG=yes option to enable
16480 OJPEG support from config.site.
16481
16482 2002-01-27 Frank Warmerdam <[email protected]>
16483
16484 * html/document.html: fixed links for TIFf 6 docs.
16485
16486 2002-01-18 Frank Warmerdam <[email protected]>
16487
16488 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
16489
16490 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
16491 decodestrip function returns anything not greater than zero as per
16492 http://bugzilla.remotesensing.org/show_bug.cgi?id=97
16493
16494 * configure: Modify CheckForBigEndian so it can work in a cross
16495 compiled situation.
16496
16497 2002-01-16 Frank Warmerdam <[email protected]>
16498
16499 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
16500
16501 * tools/tiffset.c: fix bug in error reporting.
16502
16503 * tools/tiffcp.c: fix several warnings that show up with -Wall.
16504
16505 2002-01-04 Frank Warmerdam <[email protected]>
16506
16507 * libtiff/tif_jpeg.c: fixed computation of segment_width for
16508 tiles files to avoid error about it not matching the
16509 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
16510 size.") for ITIFF files. Apparently the problem was incorporated since
16511 3.5.5, presumably during the OJPEG/JPEG work recently.
16512
16513 2001-12-15 Frank Warmerdam <[email protected]>
16514
16515 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
16516
16517 http://bugzilla.remotesensing.org/show_bug.cgi?id=94
16518
16519 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
16520 (defined in tiffconf.h - 1 by default) then the RGBA interface
16521 will assume that a fourth extra sample is ASSOCALPHA if the
16522 EXTRASAMPLE value isn't set for it. This changes the behaviour of
16523 the library, but makes it work better with RGBA files produced by
16524 lots of applications that don't mark the alpha values properly.
16525
16526 http://bugzilla.remotesensing.org/show_bug.cgi?id=93
16527 http://bugzilla.remotesensing.org/show_bug.cgi?id=65
16528
16529 2001-12-12 Frank Warmerdam <[email protected]>
16530
16531 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
16532 override those from tiff directory. This makes this work with
16533 ImageGear generated files.
16534
16535 2001-12-07 Frank Warmerdam <[email protected]>
16536
16537 * html/Makefile.in: added missing images per bug 92.
16538
16539 * port/Makefile.in: fixed clean target per bug 92.
16540
16541 2001-11-28 Frank Warmerdam <[email protected]>
16542
16543 * Reissue 3.5.7 release.
16544
16545 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be
16546 YYYYMMDD so that it is increasing over time.
16547
16548 * Makefile.in: Ensure that tiffvers.h is regenerated in the
16549 make release target.
16550
16551 * Makefile.in: added libtiff/tiffvers.h to the release file list.
16552
16553 2001-11-23 Frank Warmerdam <[email protected]>
16554
16555 * added html/v3.5.7.html, updated html/index.html.
16556
16557 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
16558
16559 2001-11-15 Frank Warmerdam <[email protected]>
16560
16561 * configure: fixed test for -lm.
16562
16563 2001-11-02 Frank Warmerdam <[email protected]>
16564
16565 * Added PHOTOMETRIC_ITULAB as per bug 90.
16566
16567 http://bugzilla.remotesensing.org/show_bug.cgi?id=90
16568
16569 2001-10-10 Frank Warmerdam <[email protected]>
16570
16571 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
16572 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
16573 in keeping with TIFF 6.0 standard in tiff.h
16574
16575 http://bugzilla.remotesensing.org/show_bug.cgi?id=83
16576
16577 2001-09-26 Frank Warmerdam <[email protected]>
16578
16579 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
16580 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
16581
16582 2001-09-24 Frank Warmerdam <[email protected]>
16583
16584 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
16585
16586 http://bugzilla.remotesensing.org/show_bug.cgi?id=78
16587
16588 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
16589 error about LZW not being available.
16590
16591 * libtiff/tif_dir.c: propagate failure to initialize compression
16592 back from TIFFSetField() as an error status, so applications can
16593 detect failure.
16594
16595 * libtiff/tif_dir.c: removed the auto replacement of
16596 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
16597
16598 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
16599 from CVS as they are all supposed to be auto-generated by configure.
16600
16601 2001-09-22 Frank Warmerdam <[email protected]>
16602
16603 * libtiff/tif_ojpeg.c: new update from Scott.
16604
16605 2001-09-09 Frank Warmerdam <[email protected]>
16606
16607 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
16608 always use the "safe" version, even if there is a very slight
16609 cost in performance.
16610
16611 http://bugzilla.remotesensing.org/show_bug.cgi?id=54
16612
16613 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
16614 in two places.
16615
16616 * libtiff/tif_getimage.c: Fixed problem with reading strips or
16617 tiles that don't start on a tile boundary. Fix contributed by
16618 Josep Vallverdu (from HP), and further described in bug 47.
16619
16620 http://bugzilla.remotesensing.org/show_bug.cgi?id=47
16621
16622 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
16623
16624 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
16625
16626 2001-09-06 Frank Warmerdam <[email protected]>
16627
16628 * libtiff/tif_packbits.c: fixed memory overrun error.
16629
16630 http://bugzilla.remotesensing.org/show_bug.cgi?id=77
16631
16632 2001-08-31 Frank Warmerdam <[email protected]>
16633
16634 * libtiff/tif_getimage.c: relax handling of contig case where
16635 there are extra samples that are supposed to be ignored. This
16636 should now work for 8bit greyscale or paletted images.
16637
16638 http://bugzilla.remotesensing.org/show_bug.cgi?id=75
16639
16640 2001-08-28 Frank Warmerdam <[email protected]>
16641
16642 * libtiff/tif_getimage.c: Don't complain for CMYK (separated)
16643 images with more than four samples per pixel. See:
16644
16645 http://bugzilla.remotesensing.org/show_bug.cgi?id=73
16646
16647 2001-08-10 Frank Warmerdam <[email protected]>
16648
16649 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
16650 in TIFFReadRGBATile() to avoid issues in cases of overlapping
16651 buffers. See Bug 69 in Bugzilla.
16652
16653 http://bugzilla.remotesensing.org/show_bug.cgi?id=69
16654
16655 * tools/tiff2rgba.c: fixed getopt() call so that -b works again.
16656
16657 2001-08-09 Frank Warmerdam <[email protected]>
16658
16659 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
16660 when checking for 64 bit architectures as per bugzilla bug 67.
16661
16662 2001-07-27 Frank Warmerdam <[email protected]>
16663
16664 * man/Makefile.in: add TIFFClientOpen link as per debian submitted
16665 bug 66.
16666
16667 2001-07-20 Frank Warmerdam <[email protected]>
16668
16669 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
16670 has been included.
16671
16672 2001-07-19 Frank Warmerdam <[email protected]>
16673
16674 * libtiff/tif_open.c: Seek back to zero after failed read,
16675 before writing header.
16676
16677 2001-07-18 Frank Warmerdam <[email protected]>
16678
16679 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors
16680 much better. Now depends on having patched libjpeg as per
16681 patch in contrib/ojpeg/*.
16682
16683 2001-07-17 Frank Warmerdam <[email protected]>
16684
16685 * */Makefile.in: added DESTDIR support.
16686
16687 http://bugzilla.remotesensing.org/show_bug.cgi?id=60
16688
16689 2001-07-16 Frank Warmerdam <[email protected]>
16690
16691 * configure, libtiff/Makefile.in: applied OpenBSD patches
16692 as per:
16693
16694 http://bugzilla.remotesensing.org/show_bug.cgi?id=61
16695
16696 2001-06-28 Frank Warmerdam <[email protected]>
16697
16698 * libtiff/tif_getimage.c: Fixed so that failure is properly
16699 reported by gtTileContig, gtStripContig, gtTileSeparate and
16700 gtStripSeparate.
16701
16702 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
16703
16704 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
16705 Updated bug section of tiffcmp.1 to note tiled file issues.
16706
16707 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
16708
16709 2001-06-22 Frank Warmerdam <[email protected]>
16710
16711 * configure: Changes for DSO generation on AIX provided by
16712 John Marquart <[email protected]>.
16713
16714 * configure, libtiff/Makeifle.in: Modified to build DSOs properly
16715 on Darwin thanks to Robert Krajewski ([email protected]) and
16716 Keisuke Fujii ([email protected]).
16717
16718 2001-06-13 Frank Warmerdam <[email protected]>
16719
16720 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
16721
16722 * man/tiff2rgba.1: new
16723
16724 2001-05-22 Frank Warmerdam <[email protected]>
16725
16726 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
16727
16728 2001-05-13 Frank Warmerdam <[email protected]>
16729
16730 * libtiff/tools/thumbnail.c: changed default output compression
16731 to packbits from LZW since LZW isn't generally available.
16732
16733 2001-05-12 Frank Warmerdam <[email protected]>
16734
16735 * libtiff/tif_ojpeg.c: New.
16736 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
16737 to OJPEG support.
16738
16739 Scott Marovich <[email protected]> supplied OJPEG support.
16740
16741 2001-05-11 Frank Warmerdam <[email protected]>
16742
16743 * tiff.h: removed, it duplicates libtiff/tiff.h.
16744
16745 2001-05-08 Frank Warmerdam <[email protected]>
16746
16747 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to
16748 ensure everything is in order.
16749
16750 * libtiff/libtiff.def: added TIFFCreateDirectory and
16751 TIFFDefaultStripSize as per:
16752
16753 http://bugzilla.remotesensing.org/show_bug.cgi?id=46
16754
16755 2001-05-02 Frank Warmerdam <[email protected]>
16756
16757 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
16758 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
16759 force use of uint32 counts instead of short counts.
16760
16761 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
16762 case of writing TIFF_BYTE/TIFF_SBYTE fields.
16763
16764 http://bugzilla.remotesensing.org/show_bug.cgi?id=43
16765
16766 2001-05-01 Frank Warmerdam <[email protected]>
16767
16768 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
16769 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
16770
16771 2001-04-05 Frank Warmerdam <[email protected]>
16772
16773 * tiffio.h: removed C++ style comment.
16774
16775 * configure: fixed up SCRIPT_SH/SHELL handling.
16776
16777 * Makefile.in: Fixed SCRIPT_SH/SHELL handling.
16778
16779 * config.guess: documented more variables as per bug 40.
16780
16781 2001-04-03 Frank Warmerdam <[email protected]>
16782
16783 * configure, *Makefile.in: Various changes to improve configuration
16784 for HP/UX specifically, and also in general. They include:
16785 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
16786 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
16787 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
16788 - Use -${MAKEFLAGS} in sub makes from makefiles.
16789
16790 http://bugzilla.remotesensing.org/show_bug.cgi?id=40
16791
16792 2001-04-02 Frank Warmerdam <[email protected]>
16793
16794 * libtiff/tiff.h: Applied hac to try and resolve the problem
16795 with the inttypes.h include file on AIX.
16796
16797 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
16798
16799 * VERSION: update to 3.5.7 beta in preparation for release.
16800
16801 * configure/config.site: modified to check if -lm is needed for
16802 MACHDEPLIBS if not supplied by config.site. Needed for Darwin.
16803
16804 * config.guess: updated wholesale to an FSF version apparently
16805 from 1998 (as opposed to 1994). This is mainly inspired by
16806 providing for MacOS X support.
16807
16808 2001-03-29 Frank Warmerdam <[email protected]>
16809
16810 * configure, Makefile.in, etc: added support for OPTIMIZER being
16811 set from config.site.
16812
16813 2001-03-28 Frank Warmerdam <[email protected]>
16814
16815 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
16816
16817 Here's a fix for fax2ps that corrects behaviour for non-Letter paper
16818 sizes. It fixes two problems:
16819
16820 Without scaling (-S) the fax is now centered on the page size specified
16821 with -H and/or -W. Before, fax2ps was using an obscure and practically
16822 useless algorithm to allocate the image relative to Letter sized paper
16823 which sometime sled to useless whitespace on the paper, while at the
16824 same time cutting of the faxes printable area at the opposite border.
16825
16826 Second, scaling now preserves aspect ratio, which makes unusual faxes
16827 (in particular short ones) print properly.
16828
16829 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
16830
16831 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
16832 Bruce A. Mallett. See check message for detailed information
16833 on all the changes, including a faster encoder, fixes for level
16834 2 PostScript, and support for the imagemask operator.
16835
16836 2001-03-27 Frank Warmerdam <[email protected]>
16837
16838 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
16839 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
16840
16841 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
16842
16843 2001-03-16 Frank Warmerdam <[email protected]>
16844
16845 * tif_dirinfo.c: moved definition of copyright tag in field list.
16846 Apparently they have to be in sorted order by tag id.
16847
16848 2001-03-13 Frank Warmerdam <[email protected]>
16849
16850 * tif_getimage.c: Added support for 16bit minisblack/miniswhite
16851 images in RGBA interface.
16852
16853 2001-03-02 Frank Warmerdam <[email protected]>
16854
16855 * Added TIFFTAG_COPYRIGHT support.
16856
16857 2001-02-19 Frank Warmerdam <[email protected]>
16858
16859 * Brent Roman contributed updated tiffcp utility (and tiffcp.1)
16860 with support for extracting subimages with the ,n syntax, and also
16861 adding the -b bias removal flag.
16862
16863 2001-02-16 Frank Warmerdam <[email protected]>
16864
16865 * libtiff/libtiff.def: Brent Roman submitted new version adding
16866 several missing entry points.
16867
16868 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
16869 Some sort of weird VMS thing.
16870
16871 http://bugzilla.remotesensing.org/show_bug.cgi?id=31
16872
16873 * tif_luv.c/tiff.h/tiffio.h:
16874 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
16875 ([email protected]). He writes:
16876
16877 1) I improved the gamut-mapping function in tif_luv.c for imaginary
16878 colors, because some images were being super-saturated on the input
16879 side and this resulted in some strange color shifts in the output.
16880
16881 2) I added a psuedotag in tiff.h to control random dithering during
16882 LogLuv encoding. This is turned off by default for 32-bit LogLuv and
16883 on for 24-bit LogLuv output. Dithering improves the average color
16884 accuracy over the image.
16885
16886 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
16887 tiffio.h, to expose internal routines for converting between LogLuv and
16888 XYZ coordinates. This is helpful for writing more efficient,
16889 specialized conversion routines, especially for reading LogLuv files.
16890
16891 Changes applied with minor edits.
16892
16893 2001-01-23 Frank Warmerdam <[email protected]>
16894
16895 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
16896 whether we are encoding or decoding. This is to ensure graceful
16897 recovery if TIFFClientOpen() discovers an attempt to open a compressed
16898 file for "r+" access, and subsequently close it, as it resets the
16899 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
16900 compressor's concept of whether it is in encode or decode mode.
16901
16902 2001-01-08 Mike Welles <[email protected]>
16903
16904 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip
16905
16906 2001-01-07 Frank Warmerdam <[email protected]>
16907
16908 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
16909 as per bug report by Patrick Connor.
16910
16911 2000-12-28 Frank Warmerdam <[email protected]>
16912
16913 * Added RELEASE-DATE file to release file list.
16914
16915 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
16916
16917 2000-12-22 Mike Welles <[email protected]>
16918 * added link to CVS mirror from index.html
16919
16920 * updated html/internals.html to note that LZW compression is
16921 not supported by default.
16922
16923 2000-12-22 Frank Warmerdam <[email protected]>
16924
16925 * updated html/libtiff.html to not point at Niles' old JPL web site
16926 for the man pages, point at www.libtiff.org.
16927
16928 2000-12-21 Frank Warmerdam <[email protected]>
16929
16930 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
16931 Leonard Rosenthol <[email protected]>. May interfere
16932 with correct building on older systems. If so, please let me know.
16933
16934 2000-12-19 Mike Welles <[email protected]>
16935
16936 * Took out LZW Encoding from tif_lzw.c
16937
16938 * Created HOWTO-RELEASE
16939
16940 * Created html/v3.5.6.html
16941
16942 * updated index.html
16943
16944 2000-12-01 Frank Warmerdam <[email protected]>
16945
16946 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
16947 Patches supplied by Frank Cringle <[email protected]>
16948 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
16949
16950 2000-11-24 Frank Warmerdam <[email protected]>
16951
16952 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private
16953 target so that the private headers required by libgeotiff can be
16954 installed with the others. They are not installed by default.
16955
16956 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
16957 targets so libtiff.so will be built with an explicit dependency
16958 on libm.so.
16959
16960 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
16961 libtiff.so.3.5.5.
16962
16963 * libtiff/Makefile.in & configure: Remove all references to the ALPHA
16964 file, or ALPHA version logic. Added stuff about DIST_POINT in
16965 place of DIST_TYPE and the alpha release number stuff.
16966
16967 2000-11-22 Frank Warmerdam <[email protected]>
16968
16969 * I have applied a patch from Steffen Moeller <[email protected]> to
16970 the configure script so that it now accepts the --prefix, and
16971 --exec-prefix directives.
16972
16973 2000-11-13 Frank Warmerdam <warmerda@cs46980-c>
16974
16975 * I have made a variety of modifications in an effort to ensure the
16976 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
16977 file which seems to be updated regularly.
16978
16979 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
16980 version include file.
16981 o renamed version.h to tiffvers.h because we now have to install it
16982 with the public libtiff include files.
16983 o include tiffvers.h in tiffio.h.
16984 o updated tif_version.c to use tiffvers.h.
16985 o Updated Makefile.in accordingly.
16986
16987 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
16988 I have updated the win32 detection rules in tiffcomp.h.
16989
16990 2000-10-20 Frank Warmerdam <warmerda@cs46980-c>
16991
16992 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which
16993 the strip/tile width and height aren't multiples of the sampling size.
16994 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
16995 Some patches from Rick LaMont of Dot C Software.
16996
16997 * Modified tif_packbits.c encoder to avoid compressing more
16998 data than provided if rowsize doesn't factor into provided data
16999 (such as occurs for YCbCr).
17000
17001 2000-10-19 Frank Warmerdam <warmerda@cs46980-c>
17002
17003 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical
17004 roundup if rows_per_strip not a multiple of vertical sample size.
17005
17006 2000-10-16 Frank Warmerdam <warmerda@cs46980-c>
17007
17008 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
17009 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
17010 from [email protected].
17011
17012 * Modified tif_packbits.c decoding to avoid overrunning the
17013 output buffer, and to issue a warning if data needs to be
17014 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
17015
17016 2000-10-12 Frank Warmerdam <warmerda@cs46980-c>
17017
17018 * Modified tiff2bw to ensure portions add to 100%, and that
17019 white is properly recovered.
17020
17021 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
17022 Patch c/o Stanislav Brabec <[email protected]>
17023
17024 2000-09-30 Frank Warmerdam <warmerda@cs46980-c>
17025
17026 * Modified TIFFClientOpen() to emit an error on an attempt to
17027 open a comperessed file for update (O_RDWR/r+) access. This is
17028 because the compressor/decompressor code gets very confused when
17029 the mode is O_RDWR, assuming this means writing only. See
17030 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
17031
17032 2000-09-27 Frank Warmerdam <warmerda@cs46980-c>
17033
17034 * Added GNULDdso target an`d switched linux and freebsd to use it.
17035
17036 2000-09-26 Frank Warmerdam <warmerda@cs46980-c>
17037
17038 * Applied patch for 0x0000 sequences in tif_fax3.h's definition
17039 of EXPAND1D() as per bug 11 (from Roman).
17040
17041 2000-09-25 Frank Warmerdam <warmerda@cs46980-c>
17042 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
17043 cygwin compatibility.
17044
17045 * Applied patch from Roman Shpount to tif_fax3.c. This seems to
17046 be a proper fix to the buffer sizing problem. See
17047 http://bugzilla.remotesensing.org/show_bug.cgi?id=11
17048
17049 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without
17050 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10
17051 Thanks to Nick Lamb <[email protected]> for reporting the
17052 bug and proving the patch.
17053
17054 2000-09-18 Frank Warmerdam <warmerda@cs46980-c>
17055
17056 * Fixed tif_jpeg.c so avoid destroying the decompressor before
17057 we are done access data thanks to bug report from:
17058 Michael Eckstein <[email protected]>.
17059
17060 * Reverted tif_flush change.
17061
17062 2000-09-14 Frank Warmerdam <warmerda@cs46980-c>
17063
17064 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an
17065 error when TIFF_BEENWRITING is not set. This ensures that the
17066 directory contents can still be flushed by TIFFFlush().
17067
17068 2000-08-14 Frank Warmerdam <[email protected]>
17069
17070 * tif_open.c: Don't set MMAP for O_RDWR files.
17071
17072 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
17073 so that files opened for update can be strip chopped too.
17074
17075 * tif_read.c: fixed up bug with files missing rowsperstrip and
17076 the strips per separation fix done a few weeks ago.
17077
17078 2000-07-17 Frank Warmerdam <warmerda@cs46980-c>
17079
17080 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
17081 SAMPLEFORMAT_COMPLEXINT.
17082
17083 2000-07-13 Mike Welles <[email protected]>
17084
17085 * index.html, bugs.html: added bugzilla info.
17086
17087 2000-07-12 Frank Warmerdam <[email protected]>
17088
17089 * tif_read.c: fix subtle bug with determining the number of
17090 rows for strips that are the last strip in a separation but
17091 not the last strip of all in TIFFReadEncodedStrip().
17092
17093 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by
17094 Peter Skarpetis <[email protected]>
17095
17096 2000-06-15 Frank Warmerdam <[email protected]>
17097
17098 * Modified tiffio.h logic with regard to including windows.h. It
17099 won't include it when building with __CYGWIN__.
17100
17101 2000-05-11 Frank Warmerdam <warmerda@cs46980-c>
17102
17103 * README: update to mention www.libtiff.org, don't list Sam's old
17104 email address.
17105
17106 * configure: Fixed DSO test for Linux as per patch from
17107 Jan Van Buggenhout <[email protected]>.
17108
17109 2000-04-21 Frank Warmerdam <[email protected]>
17110
17111 * libtiff/tif_dirread.c: Don't use estimate strip byte count for
17112 one tile/strip images with an offset, and byte count of zero. These
17113 could be "unpopulated" images.
17114
17115 2000-04-18 Frank Warmerdam <[email protected]>
17116
17117 * contrib/addtiffo: Added "averaging" resampling option.
17118
17119 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
17120
17121 Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]>
17122
17123 * tools/Makefile.in: Modified to install properly on SGI.
17124
17125 2000-04-12 Mike Welles <[email protected]>
17126 * configure: Fixed stupid mistake in libc6 test on Linux
17127
17128 2000-04-04 Mike Welles <[email protected]>
17129 * tif_win32.c: Applied patch to fix overreads and ovverwrites
17130 caught by BoundsChecker. From Arvan Pritchard
17131 <[email protected]> (untested).
17132
17133 * tif_getimage.c: Applied patch to silence VC6 warnings. From
17134 Arvan Pritchard <[email protected]>
17135
17136 * tif_lzw.c: Applied patch to silence VC6 warnings. From
17137 Arvan Pritchard <[email protected]>
17138
17139 2000-03-28 Frank Warmerdam <warmerda@cs46980-c>
17140
17141 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
17142
17143 2000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release ***
17144
17145 * fax2ps: Fixed mixup of width and height in bounding box statement
17146 as per submission by Nalin Dahyabhai <[email protected]>.
17147
17148 2000-03-27 Mike Welles <[email protected]>
17149
17150 * fax2ps: Modified printruns to take uint32 instead of uint16.
17151 Patch courtesy of Bernt Herd <[email protected]>
17152
17153 2000-03-20 Mike Welles <[email protected]>
17154
17155 * configure: added test for libc6 for linux targets. Bug reported by
17156 Stanislav Brabec <[email protected]>
17157
17158 * Added 3.5 docs to html/Makefile.in.
17159 Thanks to Stanislav Brabec <[email protected]>
17160
17161 * configure: fixed bugs in sed scripts
17162 (applied sed script s:/@:s;@:;s:/s;;:;: to configure).
17163 fix submitted to Stanislav Brabec <[email protected]>
17164
17165 * tools/iptcutil was not in files list, and wasn't being
17166 added to tar archive. Updated Makefile.in.
17167
17168 2000-03-17 Frank Warmerdam <warmerda@cs46980-c>
17169
17170 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
17171 conversion for the run arrays.
17172
17173 2000-03-03 Frank Warmerdam <[email protected]>
17174
17175 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
17176 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
17177
17178 2000-03-02 Frank Warmerdam <[email protected]>
17179
17180 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
17181
17182 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
17183 to avoid overruns encountered with frle_bug.tif.
17184
17185 Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]>
17186
17187 * Fixed tools/tiffcmp so that stopondiff testing works.
17188 Patch care of Joseph Orost <[email protected]>.
17189
17190 2000-01-28 <warmerda@CS46980-B>
17191
17192 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
17193 set to 1, and added default (off) setting in tiffconf.h. This
17194 should eventually be set by the configure script somehow.
17195
17196 The original work on all these 2-4GB changes was done by
17197 Peter Smith ([email protected]).
17198
17199 * Modified tif_win32.c to support 2-4GB seeks.
17200
17201 * tentatively changed toff_t to be unsigned instead of signed to
17202 facilitate support for 2-4GB files.
17203
17204 * Updated a variety of files to use toff_t. Fixed some mixups
17205 between toff_t and tsize_t.
17206
17207 Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]>
17208
17209 * Largely reimplemented contrib/addtiffo to avoid temp files,
17210 updating the TIFF file in place. Fixed a few other bugs to.
17211
17212 * Set tif_rawdatasize to zero when freeing raw data buffer in
17213 TIFFWriteDirectory().
17214
17215 * Enabled "REWRITE_HACK" in tif_write.c by default.
17216
17217 * Fix bug in tif_write.c when switching between reading one directory
17218 and writing to another.
17219
17220 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
17221
17222 Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]>
17223
17224 * Added TIFFmemory(3t) functions to libtiff.def.
17225
17226 Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]>
17227
17228 * Added libtiff/libtiff.def to TIFFILES distribution list.
17229
17230 Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]>
17231
17232 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
17233
17234 * Altered descriptions in tools to reflect "by default" lzw not supported
17235
17236 * Updated index.html to note lzw compression kit.
17237
17238 Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]>
17239
17240 * Added fax3sm_winnt.c to distribution list in Makefile.in.
17241
17242 Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release ***
17243
17244 * Aadded Pixar tag support. Contributed by Phil Beffery <[email protected]>
17245
17246 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice
17247 when LZW compression invoked.
17248
17249 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
17250 in tools to reflect removal of LZW compression
17251
17252 Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]>
17253
17254 * Fixed bug that caused LZW (non) compression to segfault. Added
17255 warning about LZW compression removed being removed, and why.
17256
17257 * Added nostrip to install in tools/Makefile.in so that debugging
17258 symbols are kept.
17259
17260 Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]>
17261
17262 * Added patch from Ivo Penzar <[email protected]>,
17263 supporting Adobe ZIP deflate. Untested.
17264
17265 Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]>
17266
17267 * Made Packbits the default compression in tools/tiff2rgba.c instead
17268 of LZW.
17269
17270 Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release ***
17271
17272 * Added tif_luv to contrib/djgpp/Makefile.lib.
17273
17274 Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]>
17275
17276 * Added zip creation to release makefile target
17277
17278 * Added html for TIFFWriteTile.3t man page.
17279
17280 Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]>
17281
17282 * Added some changes to tif_write.c to support rewriting existing
17283 fixed sized tiles and strips. Code mods disabled by default, only
17284 enabled if REWRITE_HACK is defined for now.
17285
17286 Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]>
17287
17288 * Added TIFFWriteTile.3t man page.
17289
17290 Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]>
17291
17292 * Added notes on use of makefile.vc in build.html, and fixed
17293 email subscription address.
17294
17295 199-11-28 Mike Welles <[email protected]>
17296
17297 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
17298
17299 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
17300 from Bruce Carmeron <[email protected]> -- modifications of
17301 changes made by Frank (sun cc still complained on cast).
17302
17303 * Added tiffconf.h to install target per request from Bill
17304 Radcliffe <[email protected]>: "We need a way for ImageMagick to
17305 know features have been compiled into the TIFF library in order to
17306 handle things properly".
17307
17308 Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]>
17309
17310 * fixed various VC++ warnings as suggested by Gilles Vollant
17311 <[email protected]>.
17312
17313 Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]>
17314
17315 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
17316 not imply applications are responsible for image data swapping.
17317
17318 1999-11-22 Mike Welles <[email protected]>
17319 * HTML-ized the man pages, added to html/man
17320
17321 * Removed LZW Compression to comply with Unisys patent extortion.
17322
17323 1999-09-29 Mike Welles <[email protected]>
17324 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
17325 From Ivo Penzar <[email protected].
17326
17327 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
17328 memory mapped files. <[email protected]>
17329
17330 1999-09-26 Mike Welles <[email protected]> *** 3.5.2 release ***
17331 * Corrected alpha versioning.
17332
17333 * Removed distinction between alpha and release targets in Makefile.in.
17334
17335 * added release.stamp target, which tags cvs tree, and updates
17336 "RELEASE-DATE"
17337
17338 * added releasediff target, which diffs tree with source as of
17339 date in "RELEASE-DATE"
17340
17341 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
17342 away from alpha/non-alpha distinctions).
17343
17344 * updated html to reflect release
17345
17346 1999-09-23 <warmerda@CS46980-B>
17347
17348 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
17349
17350 * Added CYGWIN case in configure.
17351
17352 Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]>
17353
17354 * Applied Francois Dagand's patch to handle fax decompression bug.
17355 (sizes >= 65536 were failing)
17356
17357 Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]>
17358
17359 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
17360 by Christopher Lawton <[email protected]>
17361
17362 Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]>
17363
17364 * Added IRIX/gcc, and OSF/1 4.x support on behalf of
17365 Albert Chin-A-Young <[email protected]>
17366
17367 * Added TIFFReassignTagToIgnore() API on behalf of
17368 Bruce Cameron <[email protected]>. Man page still pending.
17369
17370 Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]>
17371
17372 * Added test target in Makefile, test_pics.sh script and pics/*.rpt
17373 files to provide for a rudimentary testsuite.
17374
17375 * Added contrib/tags back from old distribution ... fixed up a bit.
17376
17377 1999-08-16 <warmerda@CS46980-B>
17378
17379 * Added simple makefile.vc makefiles for building with MS VC++
17380 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give
17381 better solutions for some users.
17382
17383 Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]>
17384
17385 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't
17386 put it in tools since part of it is in C++.
17387
17388 1999-08-16 Michael L. Welles <[email protected]>
17389
17390 * Updated html/index.html with anon CVS instructions.
17391
17392 Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]>
17393
17394 * pre-remove so link before softlink in LINUXdso action in
17395 libtiff/Makefile.in to avoid failure on LINUXdso builds other than
17396 the first.
17397
17398 * Fixed problem with cvtcmap() in tif_getimage.c modifying the
17399 colormaps owned by the TIFF handle itself when trying to fixup wrong
17400 (eight bit) colormaps. Corrected by maintaining a private copy of
17401 the colormap.
17402
17403 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
17404 tif_getimage.c.
17405
17406 * CVS Repository placed at remotesensing.org. ChangeLog added.