Debian Codegraph @

ChangeLog

raw
1 2025-09-11 Even Rouault <[email protected]>
2
3 Merge branch 'raw2tiff-742' into 'master'
4 raw2tiff: close input file before exit; issue #742
5
6 See merge request libtiff/libtiff!761
7
8 2025-09-08 Lee Howard <[email protected]>
9
10 raw2tiff: close input file before exit; issue #742.
11
12 2025-09-06 Even Rouault <[email protected]>
13
14 Merge branch 'doc_add_LZW_BSD_license_to_LICENSE_md_issue_431' into 'master'
15 Add BSD license for Lempel-Ziv & Welch compression (tif_lzw.c) to LICENSE.md
16
17 Closes #431
18
19 See merge request libtiff/libtiff!760
20
21 2025-09-06 Even Rouault <[email protected]>
22
23 Merge branch 'formatting_issues' into 'master'
24 Fix formatting issues
25
26 See merge request libtiff/libtiff!759
27
28 2025-09-05 Even Rouault <[email protected]>
29
30 Fix formatting issues.
31
32 2025-09-05 Even Rouault <[email protected]>
33
34 Merge branch 'tiff2pdf-741' into 'master'
35 avoid null pointer dereference, tiff2pdf #741
36
37 See merge request libtiff/libtiff!758
38
39 2025-09-05 Lee Howard <[email protected]>
40
41 tiff2pdf: avoid null pointer dereference.
42 Fixes #741
43
44 2025-09-05 Even Rouault <[email protected]>
45
46 Merge branch 'tiffcrop-740' into 'master'
47 avoid buffer overflow in tiffcrop #740
48
49 See merge request libtiff/libtiff!757
50
51 2025-09-05 Lee Howard <[email protected]>
52
53 tiffcrop: avoid buffer overflow.
54 Fixes #740
55
56 2025-09-05 Even Rouault <[email protected]>
57
58 Merge branch 'tiffmedian-735' into 'master'
59 close tiffmedian input file - #735
60
61 See merge request libtiff/libtiff!756
62
63 2025-09-05 Lee Howard <[email protected]>
64
65 tiffmedian: close input file.
66 Fixes #735
67
68 2025-09-05 Even Rouault <[email protected]>
69
70 Merge branch 'tiffcrop-734' into 'master'
71 Tiffcrop 734
72
73 See merge request libtiff/libtiff!755
74
75 2025-09-05 Lee Howard <[email protected]>
76
77 tiffcrop: avoid nullptr dereference.
78 Fixes #734
79
80 2025-09-05 Even Rouault <[email protected]>
81
82 Merge branch 'tiffdither-733' into 'master'
83 avoid out-of-bounds read identified in #733
84
85 See merge request libtiff/libtiff!754
86
87 2025-09-05 Lee Howard <[email protected]>
88
89 tiffdither: avoid out-of-bounds read identified in #733.
90
91 2025-09-05 Even Rouault <[email protected]>
92
93 Merge branch 'tiffcrop-721' into 'master'
94 fix double-free and memory leak exposed by issue #721
95
96 See merge request libtiff/libtiff!753
97
98 2025-09-05 Lee Howard <[email protected]>
99
100 tiffcrop: fix double-free and memory leak exposed by issue #721.
101
102 2025-09-04 Su_Laus <[email protected]>
103
104 Add BSD license for Lempel-Ziv & Welch compression (tif_lzw.c) to LICENSE.md
105 Closes #431
106
107 2025-09-04 Even Rouault <[email protected]>
108
109 Merge branch 'fix_54_read_CCITT_FAX_group3_without_EOL' into 'master'
110 tif_fax3: For fax group 3 data if no EOL is detected, reading is retried without synchronisation for EOLs.
111
112 Closes #54
113
114 LibTIFF can write (encode) faxes of group 3 1d without EOL, but cannot read (decode) such files. This function has been added.
115
116 See merge request libtiff/libtiff!752
117
118 2025-09-04 Su Laus <[email protected]>
119
120 tif_fax3: For fax group 3 data if no EOL is detected, reading is retried without synchronisation for EOLs.
121 Closes #54
122
123 LibTIFF can write (encode) faxes of group 3 1d without EOL, but cannot read (decode) such files. This function has been added.
124
125 2025-09-04 Even Rouault <[email protected]>
126
127 Merge branch 'no-public-fix' into 'master'
128 tiffio.h: fix compilation with LOGLUV_PUBLIC=0
129
130 See merge request libtiff/libtiff!748
131
132 2025-08-19 Even Rouault <[email protected]>
133
134 Merge branch 'doc_returnvalue_mapproc_issue_#12' into 'master'
135 doc: update TIFFOpen.rst with the return values of mapproc and unmapproc.
136
137 Closes #12
138
139 See merge request libtiff/libtiff!749
140
141 2025-08-19 Even Rouault <[email protected]>
142
143 Merge branch 'tiffcp_preset_level' into 'master'
144 tiffcp: fix setting compression level for lossless codecs
145
146 Closes #730
147
148 See merge request libtiff/libtiff!750
149
150 2025-08-19 Jan Musinsky <[email protected]>
151
152 tiffcp: fix setting compression level for lossless codecs.
153 Closes #730
154
155 2025-08-17 Su_Laus <[email protected]>
156
157 doc: update TIFFOpen.rst with the return values of mapproc and unmapproc.
158 Closes #12
159
160 2025-08-12 Tim Blechmann <[email protected]>
161
162 tiffio.h: fix compilation with LOGLUV_PUBLIC=0.
163 LOGLUV_PUBLIC can be used to compile some functions with hidden
164 visibility.
165 However this functionality was broken (in clang), as LOGLUV_PUBLIC was
166 defined to 1 if it wasn't defined, as the extern declarations were still
167 visible by the compiler leading to "static declaration follows
168 non-static declaration" errors.
169 Changing the header from #ifdef to #if fixes the issue.
170
171 2025-08-11 Even Rouault <[email protected]>
172
173 Merge branch 'fix_728_729_tiffcmp_memory_leak' into 'master'
174 tiffcmp: fix memory leak when second file cannot be opened. fix #728, #729
175
176 Closes #728 and #729
177
178 See merge request libtiff/libtiff!747
179
180 2025-08-08 Su_Laus <[email protected]>
181
182 tiffcmp: fix memory leak when second file cannot be opened.
183 Closes #728, #729
184
185 2025-08-08 Even Rouault <[email protected]>
186
187 Merge branch 'fix-issue-720' into 'master'
188 add assert for TIFFReadCustomDirectory infoarray check
189
190 See merge request libtiff/libtiff!744
191
192 2025-08-08 Even Rouault <[email protected]>
193
194 Merge branch 'fix_718_tiff2ps_defer_strile_load' into 'master'
195 tiff2ps: check return of TIFFGetFiled() to fix #718
196
197 Closes #718
198
199 See merge request libtiff/libtiff!746
200
201 2025-08-02 Su_Laus <[email protected]>
202
203 tiff2ps: check return of TIFFGetFiled() for TIFFTAG_STRIPBYTECOUNTS and TIFFTAG_TILEBYTECOUNTS to avoid NULL pointer dereference.
204 Closes #718
205
206 2025-07-29 lxy <[email protected]>
207
208 add assert for TIFFReadCustomDirectory infoarray check.
209
210 2025-07-11 Even Rouault <[email protected]>
211
212 Merge branch 'tif_jpeg_12_bit_bug_JPEGDecodeRaw_fix_717' into 'master'
213 tif_jpeg: Fix bug in JPEGDecodeRaw() if JPEG_LIB_MK1_OR_12BIT is defined.
214
215 Closes #717
216
217 See merge request libtiff/libtiff!743
218
219 2025-07-11 Su_Laus <[email protected]>
220
221 tif_jpeg: Fix bug in JPEGDecodeRaw() if JPEG_LIB_MK1_OR_12BIT is defined for 8/12bit dual mode, introduced in libjpeg-turbo 2.2, which was actually released as 3.0.
222 Closes #717
223
224 2025-07-10 Even Rouault <[email protected]>
225
226 Merge branch 'tiffdump_coverity_fix' into 'master'
227 tiffdump: Fix coverity scan issue CID 1373365 tainted divisor.
228
229 See merge request libtiff/libtiff!742
230
231 2025-07-06 Su_Laus <[email protected]>
232
233 tiffdump: Fix coverity scan issue CID 1373365: Passing tainted expression *datamem to PrintData, which uses it as a divisor or modulus.
234
235 2025-07-05 Even Rouault <[email protected]>
236
237 Merge branch 'tiffcrop_coverity_scan_update' into 'master'
238 tiffcrop: Fix coverity scan issue CID 1655232
239
240 See merge request libtiff/libtiff!741
241
242 2025-07-02 Su_Laus <[email protected]>
243
244 tiffcrop: Fix coverity scan issue CID 1655232: Uninitialized variables (UNINIT) Using uninitialized value "crop.selections".
245
246 2025-07-02 Even Rouault <[email protected]>
247
248 Merge branch 'fix_716_tiffcrop_memory_leak_on_error_exit' into 'master'
249 tiffcrop: close files and release memory on error exit, fix #716
250
251 Closes #716
252
253 See merge request libtiff/libtiff!740
254
255 2025-06-27 Su_Laus <[email protected]>
256
257 Close open TIFF files and release allocated buffers in tiffcrop before exiting in case of error to avoid memory leaks.
258
259 2025-06-26 Even Rouault <[email protected]>
260
261 Merge branch 'fix_714' into 'master'
262 JPEGEncodeRaw(): error out if a previous scanline failed to be written, to...
263
264 Closes #714
265
266 See merge request libtiff/libtiff!739
267
268 2025-06-25 Even Rouault <[email protected]>
269
270 JPEGEncodeRaw(): error out if a previous scanline failed to be written, to avoid out-of-bounds access
271 Fixes #714
272
273 2025-06-25 Even Rouault <[email protected]>
274
275 Merge branch 'improve_TIFFReadRGBAImage' into 'master'
276 Improve TIFFReadRGBAImage and avoid buffer overflows.
277
278 See merge request libtiff/libtiff!738
279
280 2025-06-25 Su Laus <[email protected]>
281
282 Improve TIFFReadRGBAImage and avoid buffer overflows.
283 * Raster width can now be larger than image width.
284 * Only image data are copied to raster buffer if tiles are padded.
285 * Avoid buffer overflow if col_offset \> 0.
286 * If row_offset \> 0 do not try to read after last row - avoiding warnings.
287 * Feature "col_offset" and "row_offset" now works as expected.
288
289 2025-06-25 Even Rouault <[email protected]>
290
291 Merge branch 'thumbnail-715' into 'master'
292 Fix for thumbnail issue #715
293
294 See merge request libtiff/libtiff!737
295
296 2025-06-25 Lee Howard <[email protected]>
297
298 Fix for thumbnail issue #715.
299
300 2025-06-25 Even Rouault <[email protected]>
301
302 Merge branch 'issue-711' into 'master'
303 Fix for issue #711
304
305 See merge request libtiff/libtiff!735
306
307 2025-06-25 Lee Howard <[email protected]>
308
309 TIFFUnlinkDirectory() and TIFFWriteDirectorySec(): clear tif_rawcp when clearing tif_rawdata
310 Fix for issue #711
311
312 2025-06-25 Even Rouault <[email protected]>
313
314 Merge branch 'tiff_itrunc_rand' into 'master'
315 tiff_itrunc(): don't use rand() to please Coverity Scan
316
317 See merge request libtiff/libtiff!733
318
319 2025-06-12 Even Rouault <[email protected]>
320
321 tiff_itrunc(): don't use rand() to please Coverity Scan.
322
323 2025-06-12 Even Rouault <[email protected]>
324
325 Merge branch 'tiff-static' into 'master'
326 Add build option tiff-static, fixes #709
327
328 Closes #709
329
330 See merge request libtiff/libtiff!731
331
332 2025-06-12 Demetrius flavious <[email protected]>
333
334 CMake: Add build option tiff-static, fixes #709.
335
336 2025-06-11 Even Rouault <[email protected]>
337
338 Merge branch 'fix_704_TIFFReadRGBAImage_crash' into 'master'
339 tif_getimage.c: Fix buffer underflow crash for less raster rows at TIFFReadRGBAImageOriented()
340
341 Closes #704
342
343 See merge request libtiff/libtiff!732
344
345 2025-06-11 Su Laus <[email protected]>
346
347 tif_getimage.c: Fix buffer underflow crash for less raster rows at TIFFReadRGBAImageOriented()
348
349 2025-06-06 Even Rouault <[email protected]>
350
351 Merge branch 'coverity_fixes' into 'master'
352 tif_zip.c: changes to please Coverity Scan
353
354 See merge request libtiff/libtiff!730
355
356 2025-06-06 Even Rouault <[email protected]>
357
358 tif_zip.c: changes to please Coverity Scan.
359
360 2025-06-03 Even Rouault <[email protected]>
361
362 Merge branch 'mkg3states' into 'master'
363 Move mkg3states under libtiff/tools, fixes #708
364
365 Closes #708
366
367 See merge request libtiff/libtiff!728
368
369 2025-06-03 Even Rouault <[email protected]>
370
371 Merge branch 'fix_MSVC_warnings_in_some_tools' into 'master'
372 Fixing MSVC compiler warnings in some tools.
373
374 See merge request libtiff/libtiff!729
375
376 2025-06-03 Su Laus <[email protected]>
377
378 Fixing MSVC compiler warnings in some tools.
379
380 2025-05-27 Lior Lahav <[email protected]>
381
382 Move mkg3states under libtiff/tools, fixes #708.
383
384 2025-05-25 Even Rouault <[email protected]>
385
386 Merge branch 'cmake3.10' into 'master'
387 Fixed: CMake 4.0 warning when minimum required version is < 3.10
388
389 See merge request libtiff/libtiff!726
390
391 2025-05-25 Even Rouault <[email protected]>
392
393 Merge branch 'fix_MSVC_warnings_in_some_test_progs' into 'master'
394 Fixing MSVC compiler warnings in some test programs.
395
396 See merge request libtiff/libtiff!725
397
398 2025-05-25 Su Laus <[email protected]>
399
400 Fixing MSVC compiler warnings in some test programs.
401
402 2025-05-25 Even Rouault <[email protected]>
403
404 Merge branch 'predict_speedup' into 'master'
405 tif_predict.c: speed-up decompression in some cases
406
407 See merge request libtiff/libtiff!724
408
409 2025-05-25 Even Rouault <[email protected]>
410
411 Merge branch 'tiffmedian-707' into 'master'
412 Tiffmedian 707
413
414 See merge request libtiff/libtiff!727
415
416 2025-05-25 Lee Howard <[email protected]>
417
418 conflict resolution.
419
420 Fix tiffmedian bug #707.
421
422 2025-05-24 Lior Lahav <[email protected]>
423
424 Fixed: CMake 4.0 warning when minimum required version is < 3.10.
425
426 2025-05-23 Even Rouault <[email protected]>
427
428 tif_predict.c: speed-up decompression in some cases.
429 - Predictor=2 on Byte datatype with some loop unrolling
430 - Predictor=3 on Float32 datatype with some loop unrolling and SSE2 in the interleaving phae
431
432 Tested on:
433 - https://rockyweb.usgs.gov/vdelivery/Datasets/Staged/Elevation/1m/Projects/WA_FEMAHQ_2018_D18/TIFF/USGS_1M_10_x56y512_WA_FEMAHQ_2018_D18.tif
434 USGS_1M_10_x56y512_WA_FEMAHQ_2018_D18.tif: 10012x10012, single band, Float32, LZW-compressed, Predictor=3, 316 MiB
435
436 - and hillshade_predict.tif: 10012x10012, single band, Byte, ZSTD-compressed, Predictor=2, 63 MiB
437 (result of gdaldem hillshade USGS_1M_10_x56y512_WA_FEMAHQ_2018_D18.tif hillshade_predict.tif -co COMPRESS=ZSTD -co PREDICTOR=2)
438
439 master:
440 ```
441 $ hyperfine --warmup 2 -- "gdal raster convert hillshade_predict.tif foo --of mem -q"
442 Benchmark #1: gdal raster convert hillshade_predict.tif foo --of mem -q
443 Time (mean ± σ): 512.1 ms ± 2.0 ms [User: 413.1 ms, System: 98.3 ms]
444 Range (min … max): 509.6 ms … 516.4 ms
445
446 $ hyperfine --warmup 2 -- "gdal raster convert USGS_1M_10_x56y512_WA_FEMAHQ_2018_D18.tif foo --of mem"
447 Benchmark #1: gdal raster convert USGS_1M_10_x56y512_WA_FEMAHQ_2018_D18.tif foo --of mem
448 Time (mean ± σ): 2.126 s ± 0.027 s [User: 1.844 s, System: 0.280 s]
449 Range (min … max): 2.098 s … 2.194 s
450 ```
451
452 this PR:
453 ```
454 $ hyperfine --warmup 2 -- "gdal raster convert hillshade_predict.tif foo --of mem"
455 Benchmark #1: gdal raster convert hillshade_predict.tif foo --of mem
456 Time (mean ± σ): 384.3 ms ± 1.9 ms [User: 285.1 ms, System: 98.3 ms]
457 Range (min … max): 381.6 ms … 387.4 ms
458
459 $ hyperfine --warmup 2 -- "gdal raster convert USGS_1M_10_x56y512_WA_FEMAHQ_2018_D18.tif foo --of mem"
460 Benchmark #1: gdal raster convert USGS_1M_10_x56y512_WA_FEMAHQ_2018_D18.tif foo --of mem
461 Time (mean ± σ): 1.489 s ± 0.004 s [User: 1.201 s, System: 0.286 s]
462 Range (min … max): 1.484 s … 1.498 s
463 ```
464
465 2025-05-22 Even Rouault <[email protected]>
466
467 Merge branch 'tiffdither-703' into 'master'
468 Don't skip the first line of the input image. Addresses issue #703
469
470 Closes #703
471
472 See merge request libtiff/libtiff!723
473
474 2025-05-22 Lee Howard <[email protected]>
475
476 tiffdither/tiffmedian: Don't skip the first line of the input image. Addresses issue #703
477
478 2025-05-22 Even Rouault <[email protected]>
479
480 Merge branch 'fix_682_tiff2rgba_size_t_overflow' into 'master'
481 tiff2rgba: fix #682 buffer overflow
482
483 Closes #682
484
485 See merge request libtiff/libtiff!722
486
487 2025-05-22 Even Rouault <[email protected]>
488
489 Merge branch 'fix_MSVC_warnings_in_addtiffo' into 'master'
490 Fixing MSVC compiler warnings in addtiffo.
491
492 See merge request libtiff/libtiff!717
493
494 2025-05-22 Su Laus <[email protected]>
495
496 Fixing MSVC compiler warnings in addtiffo.
497
498 2025-05-19 Lee Howard <[email protected]>
499
500 Don't skip the first line of the input image. Addresses issue #703.
501
502 2025-05-17 Su_Laus <[email protected]>
503
504 tiff2rgba: fix some "a partial expression can generate an overflow before it is assigned to a broader type" warnings.
505 Closes #682
506
507 2025-05-11 Even Rouault <[email protected]>
508
509 Merge branch 'master' into 'master'
510 oss-fuzz: fix memory leak in fuzz target
511
512 See merge request libtiff/libtiff!721
513
514 2025-05-11 Yuntong Zhang <[email protected]>
515
516 oss-fuzz: fix memory leak in fuzz target.
517 Fixes: https://issues.oss-fuzz.com/issues/385176300
518
519 2025-05-02 Even Rouault <[email protected]>
520
521 Merge branch 'spelling' into 'master'
522 Spelling fixes.
523
524 See merge request libtiff/libtiff!720
525
526 2025-05-02 Kurt Schwehr <[email protected]>
527
528 Spelling fixes.
529 Most found with codespell version 2.4.1.
530
531 2025-04-30 Even Rouault <[email protected]>
532
533 Merge branch 'configure-ac-syntax-ac-2-71' into 'master'
534 configure.ac: Syntax updates for Autoconf 2.71
535
536 See merge request libtiff/libtiff!719
537
538 2025-04-29 Bob Friesenhahn <[email protected]>
539
540 Merge branch 'defines' into 'master'
541 Move several defines into tif_config.h
542
543 See merge request libtiff/libtiff!664
544
545 2025-04-29 Bob Friesenhahn <[email protected]>
546
547 Merge branch '672-simplify-and-soften-autogen-sh' into 'master'
548 Resolve "Build fails when https://git.savannah.gnu.org/ is down"
549
550 Closes #672
551
552 See merge request libtiff/libtiff!718
553
554 2025-04-29 Bob Friesenhahn <[email protected]>
555
556 autogen.sh: Enable verbose wget.
557
558 configure.ac: Syntax updates for Autoconf 2.71.
559
560 autogen.sh: Re-implement based on autoreconf. Failure to update config.guess/config.sub does not return error.
561
562 2025-04-19 Even Rouault <[email protected]>
563
564 Merge branch 'fix_698' into 'master'
565 LZWDecode(): avoid nullptr dereference when trying to read again after...
566
567 Closes #698
568
569 See merge request libtiff/libtiff!716
570
571 2025-04-18 Even Rouault <[email protected]>
572
573 Merge branch 'fix-684' into 'master'
574 Fix for buffer underflow
575
576 Closes #684
577
578 See merge request libtiff/libtiff!713
579
580 2025-04-18 Timothy Lyanguzov <[email protected]>
581
582 Fix for buffer underflow.
583
584 2025-04-18 Even Rouault <[email protected]>
585
586 LZWDecode(): avoid nullptr dereference when trying to read again after end-of-information marker has been found with remaining output bytes (fixes #698)
587
588 2025-04-18 Even Rouault <[email protected]>
589
590 Merge branch 'correct_not_HAVE_IEEEFP_issue_699' into 'master'
591 Correct passing arguments to TIFFCvtIEEEFloatToNative().. if HAVE_IEEEFP is not defined.
592
593 See merge request libtiff/libtiff!715
594
595 2025-04-17 Su_Laus <[email protected]>
596
597 Correct passing arguments to TIFFCvtIEEEFloatToNative() and TIFFCvtIEEEDoubleToNative() if HAVE_IEEEFP is not defined.
598 See #699
599
600 2025-04-16 Even Rouault <[email protected]>
601
602 Merge branch 'integer_overflow_gtTileContig_issue_79' into 'master'
603 Update some integer overflow checks in tif_getimage.c
604
605 Closes #79
606
607 See merge request libtiff/libtiff!711
608
609 2025-04-14 Su_Laus <[email protected]>
610
611 Update some integer overflow checks in tif_getimage.c.
612 Closes #79
613
614 2025-04-14 Even Rouault <[email protected]>
615
616 Merge branch 'fix_issue_5_write_buffer_overwriting_compression_with_prediction' into 'master'
617 tif_predict.c: Don’t overwrite input buffer of TIFFWriteScanline() if prediction.
618
619 Closes #5
620
621 See merge request libtiff/libtiff!712
622
623 2025-04-13 Su_Laus <[email protected]>
624
625 tif_predict.c: Don’t overwrite input buffer of TIFFWriteScanline() if "prediction" is enabled. Use extra working buffer in PredictorEncodeRow().
626 Closes #5
627
628 2025-04-11 Even Rouault <[email protected]>
629
630 Merge branch 'doc_remove_dead_awaresystems_link' into 'master'
631 doc: Remove dead links to no more existing Awaresystems web-site.
632
633 See merge request libtiff/libtiff!705
634
635 2025-04-11 Even Rouault <[email protected]>
636
637 Merge branch 'notes_for_allocating_TIFFYCbCrToRGB_structure_issue_681' into 'master'
638 doc: Added hints for correct allocation of TIFFYCbCrtoRGB structure and its associated buffers.
639
640 Closes #681
641
642 See merge request libtiff/libtiff!709
643
644 2025-04-11 Even Rouault <[email protected]>
645
646 Merge branch 'doc_add_multi_page_reference_issue_43' into 'master'
647 doc: Added chapter to "Using the TIFF Library" for multi page
648
649 Closes #43
650
651 See merge request libtiff/libtiff!710
652
653 2025-04-10 Su_Laus <[email protected]>
654
655 doc: Added chapter to "Using the TIFF Library" with links to handling multi-page TIFF and custom directories.
656 Closes #43
657
658 2025-04-09 Su_Laus <[email protected]>
659
660 doc: Added hints for correct allocation of TIFFYCbCrtoRGB structure and its associated buffers.
661 Closes #681
662
663 2025-04-03 Su_Laus <[email protected]>
664
665 Replace some last links and remove last todos.
666
667 2025-04-02 Even Rouault <[email protected]>
668
669 Merge branch 'CheckReachedCounters_static' into 'master'
670 tif_fax3.c: add missing static qualifier in front of CheckReachedCounters() (master only)
671
672 See merge request libtiff/libtiff!708
673
674 2025-04-02 Even Rouault <[email protected]>
675
676 tif_fax3.c: add missing static qualifier in front of CheckReachedCounters() (master only)
677
678 2025-04-01 Su_Laus <[email protected]>
679
680 References to codec libraries updated and missing codec compile defines (tiffconf.h) added.
681
682 2025-04-01 Even Rouault <[email protected]>
683
684 Merge branch 'fix-676' into 'master'
685 Fix memory leak in _TIFFSetDefaultCompressionState
686
687 Closes #676
688
689 See merge request libtiff/libtiff!707
690
691 2025-04-01 Timothy Lyanguzov <[email protected]>
692
693 Fix memory leak in _TIFFSetDefaultCompressionState.
694 `_TIFFSetDefaultCompressionState` does not clean up before setting default state
695
696 follow up for !563
697 fixes #676
698
699 2025-03-31 Even Rouault <[email protected]>
700
701 Merge branch 'tiffcp_integer_overflow_check_issue_546' into 'master'
702 tiffcp: Improve non-secure integer overflow check. Closes #546
703
704 Closes #546
705
706 See merge request libtiff/libtiff!698
707
708 2025-03-31 Su_Laus <[email protected]>
709
710 Improve non-secure integer overflow check (comparison of division result with multiplicant) at compiler optimisation in tiffcp, rgb2ycbcr and tiff2rgba.
711 Closes #546
712
713 2025-03-28 Even Rouault <[email protected]>
714
715 Merge branch 'zlib_solo' into 'master'
716 zip: Provide zlib allocation functions.
717
718 See merge request libtiff/libtiff!706
719
720 2025-03-28 Even Rouault <[email protected]>
721
722 Merge branch 'fix_670_tif_fax3_EOL_error_count_reached' into 'master'
723 tif_fax3.c: error out after a number of times end-of-line or unexpected code words
724
725 Closes #670
726
727 See merge request libtiff/libtiff!703
728
729 2025-03-28 Even Rouault <[email protected]>
730
731 Merge branch 'fix-test-tiffcrop-tiffcp-32bpp-None-jpeg-race' into 'master'
732 test: Fix race condition in {tiffcrop,tiffcp}-32bpp-None-jpeg.sh tests
733
734 See merge request libtiff/libtiff!701
735
736 2025-03-28 Even Rouault <[email protected]>
737
738 Merge branch 'doc_update_TIFFSetWriteOffset' into 'master'
739 doc: Clarify TIFFSetWriteOffset() only sets offset for image data and not for IFD data.
740
741 See merge request libtiff/libtiff!699
742
743 2025-03-28 Even Rouault <[email protected]>
744
745 Merge branch 'coverity_fixes_in_tools' into 'master'
746 Silence some Coverity Scan warnigs and mark already dismissed ones.
747
748 See merge request libtiff/libtiff!696
749
750 2025-03-25 Nikolay Sivov <[email protected]>
751
752 zip: Provide zlib allocation functions.
753 Otherwise for zlib built with -DZ_SOLO inflating will fail.
754
755 2025-03-23 Su_Laus <[email protected]>
756
757 Updating BigTIFF specification and some miscelaneous editions.
758
759 2025-03-20 Su_Laus <[email protected]>
760
761 doc: Remove dead links to no more existing Awaresystems web-site.
762
763 2025-03-19 Roger Leigh <[email protected]>
764
765 Merge branch 'bugfix/issue_674-export_tiffxx_cmake_target' into 'master'
766 Export tiffxx cmake target (issue #674)
767
768 See merge request libtiff/libtiff!704
769
770 2025-03-18 Daniel Moreno <[email protected]>
771
772 Export tiffxx cmake target (issue #674)
773
774 2025-03-04 Su_Laus <[email protected]>
775
776 tif_fax3.c: error out after a number of times end-of-line or unexpected bad code words have been reached.
777 Closes #670
778
779 2025-03-03 Bob Friesenhahn <[email protected]>
780
781 Merge branch 'fix_665_memory_leak' into 'master'
782 Fix memory leak of issue # 665 (td_stripbytecount_p and td_stripoffset_p in TIFFSetupStrips())
783
784 Closes #665
785
786 See merge request libtiff/libtiff!697
787
788 2025-03-03 Su Laus <[email protected]>
789
790 Fix memory leak of issue # 665 (td_stripbytecount_p and td_stripoffset_p in TIFFSetupStrips())
791
792 2025-02-26 Gabi Falk <[email protected]>
793
794 test: Fix race condition in {tiffcrop,tiffcp}-32bpp-None-jpeg.sh tests.
795 These tests used the same output path, which could cause failures
796 when run in parallel. These were the only tests with a conflicting
797 outfile= parameter.
798
799 Link: https://bugs.gentoo.org/943020
800
801 2025-02-25 Bob Friesenhahn <[email protected]>
802
803 Merge branch 'doc_re_entrancy_and_thread_safety_see_667' into 'master'
804 doc: Update documentation on re-entrancy and thread safety.
805
806 Closes #667
807
808 See merge request libtiff/libtiff!700
809
810 2025-02-25 Su Laus <[email protected]>
811
812 doc: Update documentation on re-entrancy and thread safety.
813
814 2025-02-23 Su_Laus <[email protected]>
815
816 doc/functions/TIFFWriteDirectory.rst: Clarify TIFFSetWriteOffset() only sets offset for image data and not for IFD data.
817
818 2025-02-16 Su_Laus <[email protected]>
819
820 Silence some Coverity Scan warnigs and mark already dismissed ones. Guard all code related to CHUNKY_STRIP_READ_SUPPORT.
821
822 2025-02-11 Even Rouault <[email protected]>
823
824 Merge branch 'doc_remove_deprecated_type_definitions' into 'master'
825 doc: Update the documentation to reflect deprecated typedefs
826
827 See merge request libtiff/libtiff!694
828
829 2025-02-11 Su Laus <[email protected]>
830
831 doc: Update the documentation to reflect deprecated typedefs.
832
833 2025-02-09 Su_Laus <[email protected]>
834
835 Silence some Coverity Scan warnigs and mark already dismissed ones.
836
837 2025-01-30 Su Laus <[email protected]>
838
839 Merge branch 'patch-1' into 'master'
840 Doc: Fix return type of TIFFReadEncodedTile()
841
842 See merge request libtiff/libtiff!693
843
844 2025-01-25 Mark Riehm <[email protected]>
845
846 Doc: Fix return type of TIFFReadEncodedTile()
847
848 2025-01-14 Even Rouault <[email protected]>
849
850 Merge branch 'coverity_1638738' into 'master'
851 TIFFSetSubDirectory(): check _TIFFCheckDirNumberAndOffset() return
852
853 See merge request libtiff/libtiff!692
854
855 2025-01-12 Even Rouault <[email protected]>
856
857 TIFFSetSubDirectory(): check _TIFFCheckDirNumberAndOffset() return.
858 Fix Coverity Scan:
859 ```
860 CID 1638738: Error handling issues (CHECKED_RETURN)
861 Calling "_TIFFCheckDirNumberAndOffset" without checking return value (as is done elsewhere 4 out of 5 times).
862 ```
863
864 2025-01-12 Even Rouault <[email protected]>
865
866 Merge branch 'remove_get_field_type_from_structure' into 'master'
867 Remove get_field_type form TIFFField structure because it is not used anymore
868
869 See merge request libtiff/libtiff!691
870
871 2025-01-09 Su_Laus <[email protected]>
872
873 Remove get_field_type form TIFFField structure because it is not used anymore and rename other parameter to set_get_field_type.
874
875 2025-01-06 Even Rouault <[email protected]>
876
877 Merge branch 'doc_update_adding_new_tags_fix_642' into 'master'
878 doc: Update "Defining New TIFF Tags" description. See also #642.
879
880 Closes #642
881
882 See merge request libtiff/libtiff!655
883
884 2025-01-06 Su Laus <[email protected]>
885
886 doc: Update "Defining New TIFF Tags" description. See also #642.
887
888 2025-01-01 Even Rouault <[email protected]>
889
890 Merge branch 'fax_encode_sample_per_pixel_warning' into 'master'
891 tif_fax3.c: Error out for CCITT fax encoding if SamplesPerPixel is not equal 1 and PlanarConfiguration = Contiguous
892
893 Closes #26
894
895 See merge request libtiff/libtiff!687
896
897 2025-01-01 Su Laus <[email protected]>
898
899 tif_fax3.c: Error out for CCITT fax encoding if SamplesPerPixel is not equal 1 and PlanarConfiguration = Contiguous
900
901 2024-12-31 Even Rouault <[email protected]>
902
903 Merge branch 'fix_663' into 'master'
904 _TIFFVSetField(): fix potential use of unallocated memory (out-of-bounds read...
905
906 Closes #663
907
908 See merge request libtiff/libtiff!689
909
910 2024-12-30 Even Rouault <[email protected]>
911
912 _TIFFVSetField(): fix potential use of unallocated memory (out-of-bounds read / nullptr dereference) in case of out-of-memory situation when dealing with custom tags
913 Fixes #663
914
915 2024-12-30 Even Rouault <[email protected]>
916
917 Merge branch 'master' into 'master'
918 Improved oss-fuzz fuzzer tiff_read_rgba_fuzzer.cc
919
920 See merge request libtiff/libtiff!688
921
922 2024-12-30 Fabio Gritti <[email protected]>
923
924 Improved oss-fuzz fuzzer tiff_read_rgba_fuzzer.cc.
925
926 2024-12-30 Even Rouault <[email protected]>
927
928 Merge branch 'LINKER_LANGUAGE' into 'master'
929 Set LINKER_LANGUAGE for C targets with C++ deps
930
931 See merge request libtiff/libtiff!685
932
933 2024-12-30 Even Rouault <[email protected]>
934
935 Merge branch 'merge_multiple_functions_implemented_twice_#154' into 'master'
936 Merge several functions implemented twice in different modules, see #154
937
938 Closes #154
939
940 See merge request libtiff/libtiff!681
941
942 2024-12-30 Su Laus <[email protected]>
943
944 Merge several functions implemented twice in different modules, see #154
945
946 2024-12-19 Alyssa Ross <[email protected]>
947
948 Set LINKER_LANGUAGE for C targets with C++ deps.
949 When C and C++ code are being linked together, a C++ compiler has to
950 be used. In my experience, this doesn't always cause problems, but it
951 tends to when doing static builds.
952
953 Without this change, I got build failures when I had lerc enabled:
954
955 cd /build/source/build/tools && /nix/store/6941y72hx1k8rxiygm4iin16i4zhcdqr-cmake-3.30.5/bin/cmake -E cmake_link_script CMakeFiles/fax2ps.dir/link.txt --verbose=1
956 /nix/store/gb7zjcg4fh1mnd5qp4pkrlib55w6j42l-aarch64-unknown-linux-musl-gcc-wrapper-13.3.0/bin/aarch64-unknown-linux-musl-gcc -Wall -Winline -Wformat-security -Wpointer-arith -Wdisabled-optimization -Wno-unknown-pragmas -fstrict-aliasing -O3 -DNDEBUG CMakeFiles/fax2ps.dir/fax2ps.c.o -o fax2ps ../libtiff/libtiff.a -Wl,-Bdynamic /nix/store/n49vspyhaga9pabpqqcwm9rlam7r4152-zlib-static-aarch64-unknown-linux-musl-1.3.1/lib/libz.a /nix/store/k71jx85iin8bvgqs1viq263qp186nb9h-libdeflate-static-aarch64-unknown-linux-musl-1.22/lib/libdeflate.a /nix/store/kp6hkjfjdmd94crz6claldi5hg9z8r87-libjpeg-turbo-static-aarch64-unknown-linux-musl-3.0.4/lib/libjpeg.a /nix/store/h2f1h8bri9d0mvdrvn5ad94hy31dan2s-lerc-static-aarch64-unknown-linux-musl-4.0.0/lib/libLerc.a /nix/store/hjf3h5prgfdadv3wsj4172sdxrnycgba-xz-static-aarch64-unknown-linux-musl-5.6.3/lib/liblzma.a /nix/store/qh8h4fdsvhj75xliiqb71qrynnng51p2-zstd-static-aarch64-unknown-linux-musl-1.5.6/lib/libzstd.a /nix/store/002ykljzr16pfxnijq7x8hr4nbicg745-libwebp-static-aarch64-unknown-linux-musl-1.4.0/lib/libwebp.a /nix/store/002ykljzr16pfxnijq7x8hr4nbicg745-libwebp-static-aarch64-unknown-linux-musl-1.4.0/lib/libsharpyuv.a /nix/store/dnm541qbzfanx6r0kqbc2p4xfjiwl4sf-musl-static-aarch64-unknown-linux-musl-1.2.5/lib/libm.a -Wl,-Bstatic
957 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: /nix/store/h2f1h8bri9d0mvdrvn5ad94hy31dan2s-lerc-static-aarch64-unknown-linux-musl-4.0.0/lib/libLerc.a(Lerc.cpp.o): in function `std::vector<unsigned char, std::allocator<unsigned char> >::operator=(std::vector<unsigned char, std::allocator<unsigned char> > const&) [clone .isra.0]':
958 (.text+0x140): undefined reference to `operator new(unsigned long)'
959 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: (.text+0x16c): undefined reference to `operator delete(void*, unsigned long)'
960 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: (.text+0x26c): undefined reference to `std::__throw_bad_alloc()'
961 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: /nix/store/h2f1h8bri9d0mvdrvn5ad94hy31dan2s-lerc-static-aarch64-unknown-linux-musl-4.0.0/lib/libLerc.a(Lerc.cpp.o): in function `LercNS::Lerc::GetRanges(unsigned char const*, unsigned int, int, LercNS::Lerc2::HeaderInfo const&, double*, double*, unsigned long)':
962 (.text+0x10a0): undefined reference to `operator delete(void*, unsigned long)'
963 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: (.text+0x10b4): undefined reference to `operator delete(void*, unsigned long)'
964 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: (.text+0x10c8): undefined reference to `operator delete(void*, unsigned long)'
965 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: (.text+0x10ec): undefined reference to `operator delete(void*, unsigned long)'
966 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: (.text+0x1100): undefined reference to `operator delete(void*, unsigned long)'
967 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: /nix/store/h2f1h8bri9d0mvdrvn5ad94hy31dan2s-lerc-static-aarch64-unknown-linux-musl-4.0.0/lib/libLerc.a(Lerc.cpp.o):(.text+0x1114): more undefined references to `operator delete(void*, unsigned long)' follow
968 /nix/store/ncvpwrpay6vvh9wwc6fq28lb9hip7chc-aarch64-unknown-linux-musl-binutils-2.43.1/bin/aarch64-unknown-linux-musl-ld: /nix/store/h2f1h8bri9d0mvdrvn5ad94hy31dan2s-lerc-static-aarch64-unknown-linux-musl-4.0.0/lib/libLerc.a(Lerc.cpp.o): in function `bool LercNS::Lerc::Convert<signed char>(LercNS::CntZImage const&, signed char*, unsigned char*, bool)':
969 [1808 more lines of this ommitted]
970 collect2: error: ld returned 1 exit status
971
972 2024-12-17 Even Rouault <[email protected]>
973
974 Merge branch 'read_only' into 'master'
975 Take into account PACKBITS_READ_ONLY, LZW_READ_ONLY, and LERC_READ_ONLY macros
976
977 See merge request libtiff/libtiff!683
978
979 2024-12-17 Even Rouault <[email protected]>
980
981 Merge branch 'libtiff_predictor_3_inverted_endianness_write_fix' into 'master'
982 fix writing a Predictor=3 file with non-native endianness
983
984 See merge request libtiff/libtiff!684
985
986 2024-12-17 Even Rouault <[email protected]>
987
988 fix writing a Predictor=3 file with non-native endianness.
989
990 Take into account PACKBITS_READ_ONLY, LZW_READ_ONLY, and LERC_READ_ONLY macros
991 to disable compiling write-support for those codecs.
992 Also add missing casts in LERC codec.
993
994 2024-12-16 Even Rouault <[email protected]>
995
996 Merge branch 'tif_lzw_packbits_null' into 'master'
997 tif_lzw.c / tif_packbits.c: use NULL instead of 0
998
999 See merge request libtiff/libtiff!682
1000
1001 2024-12-16 Even Rouault <[email protected]>
1002
1003 tif_lzw.c / tif_packbits.c: use NULL instead of 0.
1004
1005 2024-12-09 Even Rouault <[email protected]>
1006
1007 Merge branch 'manpage_TIFFRGBAImage_#67_different_output_unassociated_alpha' into 'master'
1008 manpage: doc/functions/TIFFRGBAImage.rst note added about un-associated alpha handling
1009
1010 Closes #67
1011
1012 See merge request libtiff/libtiff!679
1013
1014 2024-12-09 Su Laus <[email protected]>
1015
1016 manpage: doc/functions/TIFFRGBAImage.rst note added about un-associated alpha handling
1017
1018 2024-12-09 Even Rouault <[email protected]>
1019
1020 Merge branch 'tiff2pdf_division_by_zero_#654' into 'master'
1021 tiff2pdf: check h_samp and v_samp for range 1 to 4 to avoid division by zero.
1022
1023 Closes #654
1024
1025 See merge request libtiff/libtiff!680
1026
1027 2024-12-07 Su_Laus <[email protected]>
1028
1029 tiff2pdf: check h_samp and v_samp for range 1 to 4 to avoid division by zero.
1030 Closes #654
1031
1032 2024-12-05 Even Rouault <[email protected]>
1033
1034 Merge branch 'master' into 'master'
1035 CMake CMP0074 new policy.
1036
1037 See merge request libtiff/libtiff!678
1038
1039 2024-12-04 榆柳松 <[email protected]>
1040
1041 CMake CMP0074 new policy.
1042
1043 2024-12-04 Even Rouault <[email protected]>
1044
1045 Merge branch 'manpage_TIFFReadRGBAImage_orientation_fault' into 'master'
1046 doc: TIFFReadRGBAImage.rst note about incorrect saving in raster for some TIFF orientations (5 to 8).
1047
1048 Closes #76 and #77
1049
1050 See merge request libtiff/libtiff!675
1051
1052 2024-12-04 Even Rouault <[email protected]>
1053
1054 Merge branch 'TIFFRGBAImageOK_remove_unnecessary_calls' into 'master'
1055 Remove unnecessary calls to TIFFRGBAImageOK() in tif_getimage.c
1056
1057 Closes #175
1058
1059 See merge request libtiff/libtiff!677
1060
1061 2024-12-03 Su_Laus <[email protected]>
1062
1063 Remove unnecessary calls to TIFFRGBAImageOK() in tif_getimage.c.
1064 Closes #175
1065
1066 2024-11-30 Roger Leigh <[email protected]>
1067
1068 Merge branch 'master' into 'master'
1069 Rename cxx to tiff-cxx
1070
1071 See merge request libtiff/libtiff!676
1072
1073 2024-11-30 榆柳松 <[email protected]>
1074
1075 Rename cxx to tiff-cxx,avoid overly mundane names.
1076
1077 2024-11-29 Su_Laus <[email protected]>
1078
1079 manpage: doc/functions/TIFFRGBAImage.rst note added for incorrect saving of images with TIFF orientation from 5 (LeftTop) to 8 (LeftBottom) in the raster.
1080
1081 2024-11-19 Even Rouault <[email protected]>
1082
1083 Merge branch 'fix_test_directory_for_big_endian_machines' into 'master'
1084 Update test/test_directory.c not to fail on big-endian machines. Fix memory leaks
1085
1086 Closes #652 et #656
1087
1088 See merge request libtiff/libtiff!673
1089
1090 2024-11-19 Su Laus <[email protected]>
1091
1092 Update test/test_directory.c not to fail on big-endian machines. Fix memory leaks
1093 Closes #652 et #656
1094
1095 2024-11-08 Even Rouault <[email protected]>
1096
1097 Merge branch 'tiffdither_multi_page' into 'master'
1098 tiffdither: process all pages in input TIFF file
1099
1100 See merge request libtiff/libtiff!674
1101
1102 2024-11-08 Marco Rullo <[email protected]>
1103
1104 tiffdither: process all pages in input TIFF file.
1105
1106 2024-10-30 Even Rouault <[email protected]>
1107
1108 Merge branch 'unknown_tag_warnings' into 'master'
1109 No longer emit warnings about unknown tags by default, and add...
1110
1111 See merge request libtiff/libtiff!463
1112
1113 2024-10-29 Even Rouault <[email protected]>
1114
1115 tiffinfo: add a -W switch to warn about unknown tags.
1116
1117 No longer emit warnings about unknown tags by default, and add TIFFOpenOptionsSetWarnAboutUnknownTags() for explicit control
1118
1119 2024-10-28 Even Rouault <[email protected]>
1120
1121 Merge branch 'COMPRESSION_JXL_DNG_1_7' into 'master'
1122 tiff.h: add COMPRESSION_JXL_DNG_1_7=52546 as used for JPEGXL compression in...
1123
1124 See merge request libtiff/libtiff!672
1125
1126 2024-10-27 Even Rouault <[email protected]>
1127
1128 Merge branch '532_MergeFields_with_FIELD_IGNORE' into 'master'
1129 Issue #532: Updating TIFFMergeFieldInfo() with read_count=write_count=0 for FIELD_IGNORE.
1130
1131 Closes #532
1132
1133 See merge request libtiff/libtiff!668
1134
1135 2024-10-27 Su Laus <[email protected]>
1136
1137 Issue #532: Updating TIFFMergeFieldInfo() with read_count=write_count=0 for FIELD_IGNORE.
1138 Updating TIFFMergeFieldInfo() with read_count=write_count=0 for FIELD_IGNORE.
1139 Improving handling when field_name = NULL.
1140
1141 Closes #532
1142
1143 There was a regression in v4.7.0 related to re-opened issue https://gitlab.com/libtiff/libtiff/-/issues/532#note_2134433038 and following discussion.
1144
1145 2024-10-27 Even Rouault <[email protected]>
1146
1147 tiff.h: add COMPRESSION_JXL_DNG_1_7=52546 as used for JPEGXL compression in the DNG 1.7 specification
1148
1149 2024-10-23 Even Rouault <[email protected]>
1150
1151 Merge branch 'fix_651_bis' into 'master'
1152 CMake: fix build with LLVM/Clang 17+
1153
1154 Closes #651
1155
1156 See merge request libtiff/libtiff!671
1157
1158 2024-10-21 Even Rouault <[email protected]>
1159
1160 Merge branch 'remove_useless_cmake_minimum_required' into 'master'
1161 doc/CMakeLists.txt: remove useless cmake_minimum_required()
1162
1163 See merge request libtiff/libtiff!670
1164
1165 2024-10-20 Daniel E @diizzyy <[email protected]>
1166
1167 CMake: fix build with LLVM/Clang 17+
1168 Fixes #651
1169
1170 2024-10-20 Even Rouault <[email protected]>
1171
1172 doc/CMakeLists.txt: remove useless cmake_minimum_required()
1173 There's already one in top CMakeLists.txt (at 3.9.0 currently)
1174
1175 Newer CMake versions throw this warning with current 3.2.0:
1176 ```
1177 CMake Deprecation Warning at doc/CMakeLists.txt:27 (cmake_minimum_required):
1178 Compatibility with CMake < 3.5 will be removed from a future version of
1179 CMake.
1180 Update the VERSION argument <min> value or use a ...<max> suffix to tell
1181 CMake that the project does not need compatibility with older versions.
1182 ```
1183
1184 2024-10-13 Even Rouault <[email protected]>
1185
1186 Merge branch 'tif_jpeg_65535' into 'master'
1187 tif_jpeg.c: use JPEG_MAX_DIMENSION constant instead of hard-coded 65535 value
1188
1189 See merge request libtiff/libtiff!658
1190
1191 2024-10-05 Even Rouault <[email protected]>
1192
1193 Merge branch 'fix_gdal_10875' into 'master'
1194 TIFFDefaultTransferFunction(): give up beyond td_bitspersample = 24
1195
1196 See merge request libtiff/libtiff!665
1197
1198 2024-10-05 Even Rouault <[email protected]>
1199
1200 Merge branch 'ppm2tiff_fix_#467_10bit_packwords' into 'master'
1201 ppm2tiff: Fix bug in `pack_words` trailing bytes
1202
1203 Closes #467
1204
1205 See merge request libtiff/libtiff!666
1206
1207 2024-10-05 Even Rouault <[email protected]>
1208
1209 Merge branch 'master' into 'master'
1210 Fix issue #649 in fax2ps caused by regression in commit...
1211
1212 Closes #649
1213
1214 See merge request libtiff/libtiff!667
1215
1216 2024-10-05 Lee Howard <[email protected]>
1217
1218 Check TIFFTAG_TILELENGTH and TIFFTAGTILEWIDTH for valid input, addresses issue #650
1219
1220 2024-09-27 Lee Howard <[email protected]>
1221
1222 Fix issue #649 in fax2ps caused by regression in commit https://gitlab.com/libtiff/libtiff/-/commit/28c38d648b64a66c3218778c4745225fe3e3a06d where TIFFTAG_FAXFILLFUNC is being used rather than an output buffer.
1223
1224 2024-09-27 Su_Laus <[email protected]>
1225
1226 ppm2tiff: Fix bug in `pack_words` trailing bytes, where last two bytes of each line were written wrongly.
1227 Closes #467.
1228
1229 2024-09-26 Even Rouault <[email protected]>
1230
1231 TIFFDefaultTransferFunction(): give up beyond td_bitspersample = 24.
1232 This function tries to allocate (1 << td_bitspersample) bytes which may
1233 results in denial of services if td_bitspersample is too large.
1234
1235 Fixes https://github.com/OSGeo/gdal/issues/10875
1236
1237 2024-09-22 Even Rouault <[email protected]>
1238
1239 Merge branch 'theta682-fix-Oi-GFS' into 'master'
1240 Fix parsing a private tag 0x80a6
1241
1242 Closes #647
1243
1244 See merge request libtiff/libtiff!661
1245
1246 2024-09-22 Timothy Lyanguzov <[email protected]>
1247
1248 Do not error out on a tag whose tag count value is zero, just issue a warning.
1249 Fix parsing a private tag 0x80a6
1250
1251 2024-09-21 Benjamin Gilbert <[email protected]>
1252
1253 Define HAVE_JPEGTURBO_DUAL_MODE_8_12 in tif_config.h.
1254 Remove special-case Autotools and CMake code to define it on the
1255 compiler command line.
1256
1257 Define LERC_STATIC in tif_config.h.
1258 Remove special-case Autotools and CMake code to define it on the
1259 compiler command line.
1260
1261 CMake: set WORDS_BIGENDIAN via #cmakedefine.
1262 Autotools sets WORDS_BIGENDIAN via tif_config.h, but the CMake equivalent
1263 in tif_config.h.cmake.in is a no-op; CMake passes the define on the
1264 compiler command line instead. For consistency, have CMake set the define
1265 via tif_config.h.
1266
1267 2024-09-21 Even Rouault <[email protected]>
1268
1269 Merge branch 'fix_648_ASCII_length_at_WriteDirectorySec_codec_part' into 'master'
1270 Increment string length for ASCII tags in TIFFWriteDirectorySec() for codec...
1271
1272 Closes #648
1273
1274 See merge request libtiff/libtiff!663
1275
1276 2024-09-21 Su_Laus <[email protected]>
1277
1278 Increment string length for ASCII tags in TIFFWriteDirectorySec() for codec tags defined with FIELD_xxx bits, as it is done for FIELD_CUSTOM tags. Fixes #648
1279
1280 2024-09-11 Even Rouault <[email protected]>
1281
1282 libtiff v4.7.0rc2 preparation
1283
1284 2024-09-11 Even Rouault <[email protected]>
1285
1286 configure.ac: make a provision to look for up to python 3.16 ...
1287 hopefully we'll have ditched autoconf support at that point...
1288
1289 Fix test dependency on tiff2rgba-32BPP that breaks 'make check -jX'
1290
1291 test/tiff2ps*.sh scripts: try to use POSIX only diff flags.
1292
1293 2024-09-11 Even Rouault <[email protected]>
1294
1295 Merge branch 'automake_doc_fix' into 'master'
1296 doc/Makefile.am: make sure that 'doc-html' and 'doc-man' targets have dependencies to avoid them to be rebuilt by successive make
1297
1298 See merge request libtiff/libtiff!657
1299
1300 2024-09-10 Even Rouault <[email protected]>
1301
1302 Merge branch '4_7_0_rst_rgb2ycbcr_thumbnail' into 'master'
1303 v4.7.0.rst: clarify that rgb2ycbcr and thumbnail are not installed
1304
1305 See merge request libtiff/libtiff!659
1306
1307 2024-09-10 Even Rouault <[email protected]>
1308
1309 v4.7.0.rst: clarify that rgb2ycbcr and thumbnail are not installed.
1310
1311 2024-09-08 Even Rouault <[email protected]>
1312
1313 doc/Makefile.am: make sure that 'doc-html' and 'doc-man' targets have dependencies to avoid them to be rebuilt by successive make
1314
1315 doc/Makefile.am: move rst_sources and EXTRA_DIST variables on top of file
1316
1317 2024-09-07 Even Rouault <[email protected]>
1318
1319 Merge branch 'index_rst_formatting_issue' into 'master'
1320 index.rst: fix formatting issue
1321
1322 See merge request libtiff/libtiff!656
1323
1324 2024-09-07 Even Rouault <[email protected]>
1325
1326 index.rst: fix formatting issue.
1327
1328 2024-09-07 Even Rouault <[email protected]>
1329
1330 Merge branch 'prepare_release_4_7_0' into 'master'
1331 Prepare release 4.7.0
1332
1333 See merge request libtiff/libtiff!654
1334
1335 2024-09-07 Even Rouault <[email protected]>
1336
1337 Doc: remove 'Master' terminlogy.
1338
1339 v4.7.0.rst: remove mention about autoconf-archive since that change has been reverted
1340
1341 Revert "autotools: allow pulling in updated macros from autoconf-archive"
1342 This reverts commit c820d16c30c27b3be6c3d10834b6d75607ae9d77.
1343
1344 Revert "HOWTO-RELEASE: document the necessary dependencies for producing dist tarballs"
1345 This reverts commit f1a91e42b3f23641cb5559fb60e1d73d201275eb.
1346
1347 Revert "configure.ac: fix HAVE_OPENGL determination due to recent changes"
1348 This reverts commit c370e67f7fd9320674544113218b7fbca4f65c2b.
1349
1350 configure.ac: fix HAVE_OPENGL determination due to recent changes.
1351
1352 Update version numbers for 4.7.0.
1353
1354 Update ChangeLog and create release notes for v4.7.0.
1355
1356 2024-09-06 Even Rouault <[email protected]>
1357
1358 typo fixes.
1359
1360 2024-09-06 Even Rouault <[email protected]>
1361
1362 Merge branch 'autoconf-archive' into 'master'
1363 autotools: allow pulling in updated macros from autoconf-archive
1364
1365 See merge request libtiff/libtiff!645
1366
1367 2024-09-06 Even Rouault <[email protected]>
1368
1369 Merge branch 'remove_last_usage_of_get_field_type' into 'master'
1370 Change last usage of get_field_type at TIFFWriteDirectorySec() to set_field_type
1371
1372 See merge request libtiff/libtiff!653
1373
1374 2024-09-06 Even Rouault <[email protected]>
1375
1376 libtiff v4.7.0rc1 preparation
1377
1378 2024-09-06 Even Rouault <[email protected]>
1379
1380 Merge branch 'autoconf-archive' into 'master'
1381 autotools: allow pulling in updated macros from autoconf-archive
1382
1383 See merge request libtiff/libtiff!645
1384
1385 2024-09-06 Even Rouault <[email protected]>
1386
1387 Merge branch 'remove_last_usage_of_get_field_type' into 'master'
1388 Change last usage of get_field_type at TIFFWriteDirectorySec() to set_field_type
1389
1390 See merge request libtiff/libtiff!653
1391
1392 2024-09-05 Su_Laus <[email protected]>
1393
1394 Change last usage of get_field_type at TIFFWriteDirectorySec() for codec related tags to set_field_type.
1395
1396 2024-09-03 Eli Schwartz <[email protected]>
1397
1398 HOWTO-RELEASE: document the necessary dependencies for producing dist tarballs
1399
1400 autogen.sh: actually return failure if any step failed.
1401 Previously, it exited with failure if and only if the wget calls failed.
1402 But it is possible for any command to fail, e.g. if the autotools are
1403 broken, misconfigured, or missing dependencies.
1404
1405 2024-09-03 Eli Schwartz <[email protected]>
1406
1407 autotools: allow pulling in updated macros from autoconf-archive.
1408 Instead of inlining a few macros in acinclude.m4 and forgetting about
1409 them, teach aclocal to install the macros to m4/ when autoreconf is run.
1410 They are no longer tracked in one big file, nor tracked at all in git,
1411 but producing dist tarballs will bundle them up just like `configure`
1412 and `Makefile.in`.
1413
1414 Note: previous behavior of AX_CHECK_GL* was to simply ignore support and
1415 proceed, if it was asked for and not found. The updated macros expect to
1416 opt into this by specifying action-if-not-found.
1417
1418 VL_* is obsolete. Upgrade to AX_CFLAGS_WARN_ALL.
1419
1420 2024-09-03 Even Rouault <[email protected]>
1421
1422 Merge branch 'XZY2RGB' into 'master'
1423 Fixes #644 Index comparison as size_t to avoid overflow in TIFFXYZToRGB
1424
1425 Closes #644
1426
1427 See merge request libtiff/libtiff!649
1428
1429 2024-09-03 Nicolas Badoux <[email protected]>
1430
1431 Fixes #644 Index comparison as size_t to avoid overflow in TIFFXYZToRGB.
1432
1433 2024-09-01 Even Rouault <[email protected]>
1434
1435 Merge branch 'ci_werror' into 'master'
1436 CI: build with -Wall -Wextra -Werror
1437
1438 See merge request libtiff/libtiff!652
1439
1440 2024-08-30 Even Rouault <[email protected]>
1441
1442 configure.ac: avoid -Werror passed to CFLAGS to interfere with feature detection
1443
1444 CI: build with -Wall -Wextra -Werror.
1445
1446 2024-08-30 Roger Leigh <[email protected]>
1447
1448 Merge branch 'ci-old-update' into 'master'
1449 ci: Update "old" build jobs to use Ubuntu 22.04
1450
1451 See merge request libtiff/libtiff!651
1452
1453 2024-08-30 Roger Leigh <[email protected]>
1454
1455 ci: Update "old" build jobs to use Ubuntu 22.04.
1456
1457 2024-08-30 Even Rouault <[email protected]>
1458
1459 Merge branch 'ci-ubuntu-22.04' into 'master'
1460 ci: Update to use Ubuntu 24.04 CI images
1461
1462 See merge request libtiff/libtiff!650
1463
1464 2024-08-30 Roger Leigh <[email protected]>
1465
1466 ci: Update to use Ubuntu 24.04 CI images.
1467
1468 2024-08-28 Even Rouault <[email protected]>
1469
1470 Merge branch 'uv_encode' into 'master'
1471 Fix #645 by using unsigned int for variable indexing an array in uv_decode() and uv_encode()
1472
1473 Closes #645
1474
1475 See merge request libtiff/libtiff!648
1476
1477 2024-08-28 Nicolas Badoux <[email protected]>
1478
1479 Fix #645 by using unsigned int for variable indexing an array in uv_decode() and uv_encode()
1480 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.
1481
1482 2024-08-27 Even Rouault <[email protected]>
1483
1484 Merge branch 'fix_643_solitary_CustomDirectory_read' into 'master'
1485 Fix #643 by initializing pointer to TIFFSetField() and TIFFGetField() before TIFFReadGPSDirectory
1486
1487 Closes #643
1488
1489 See merge request libtiff/libtiff!647
1490
1491 2024-08-27 Su Laus <[email protected]>
1492
1493 Fix #643 by initializing pointer to TIFFSetField() and TIFFGetField() before TIFFReadGPSDirectory
1494 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.
1495
1496 2024-08-25 Even Rouault <[email protected]>
1497
1498 Merge branch 'tiff_strip' into 'master'
1499 Add non-zero check before division in TIFFComputeStrip
1500
1501 See merge request libtiff/libtiff!646
1502
1503 2024-08-23 Nicolas Badoux <[email protected]>
1504
1505 Add non-zero check before division in TIFFComputeStrip.
1506
1507 2024-08-15 Even Rouault <[email protected]>
1508
1509 Merge branch 'fix_564' into 'master'
1510 TIFFScanlineSize64(): revert merge request #564
1511
1512 See merge request libtiff/libtiff!644
1513
1514 2024-08-15 Even Rouault <[email protected]>
1515
1516 TIFFScanlineSize64(): revert merge request #564.
1517 https://gitlab.com/libtiff/libtiff/-/merge_requests/564 broke decoding of: "tools/tiffcp -c none in.tif out.tif"
1518 with [in.tif](/uploads/0475a88cf6e66652b030a0a3a0c47313/in.tif)
1519 leading to shift each line of the target image by one extra pixel at each line.
1520 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
1521
1522 2024-08-15 Even Rouault <[email protected]>
1523
1524 Merge branch 'coverity_fix_from_MR_634' into 'master'
1525 Fix some Coverity Scan issues introduced by MR 634.
1526
1527 See merge request libtiff/libtiff!643
1528
1529 2024-08-14 Su_Laus <[email protected]>
1530
1531 Fix some Coverity Scan issues introduced by MR 634.
1532
1533 2024-08-11 Even Rouault <[email protected]>
1534
1535 Merge branch 'lerc-pkgconfig' into 'master'
1536 libtiff-4.pc: Fix `Requires.private` missing `Lerc`.
1537
1538 See merge request libtiff/libtiff!633
1539
1540 2024-08-11 Even Rouault <[email protected]>
1541
1542 Merge branch 'manpage_update_directory_incrementing' into 'master'
1543 Amend manpages for changes in current directory index behaviour.
1544
1545 See merge request libtiff/libtiff!639
1546
1547 2024-08-11 Su Laus <[email protected]>
1548
1549 Amend manpages for changes in current directory index behaviour.
1550
1551 2024-08-11 Even Rouault <[email protected]>
1552
1553 Merge branch 'tiffcrop_coverity_20240723' into 'master'
1554 Attempt to address tiffcrop Coverity scan issues 1605444, 1605445, and 1605449.
1555
1556 See merge request libtiff/libtiff!642
1557
1558 2024-08-11 Lee Howard <[email protected]>
1559
1560 Attempt to address tiffcrop Coverity scan issues 1605444, 1605445, and 1605449.
1561
1562 2024-08-11 Even Rouault <[email protected]>
1563
1564 Merge branch 'fix_CurDir_wrong_incrementing' into 'master'
1565 Fix cases where tif_curdir is set incorrectly
1566
1567 See merge request libtiff/libtiff!634
1568
1569 2024-08-11 Su Laus <[email protected]>
1570
1571 Fix cases where tif_curdir is set incorrectly.
1572 Fix cases where the current directory number (tif_curdir) is set inconsistently or incorrectly, depending on the previous history.
1573
1574 See additional checks and tests in test/test_directory.c of this MR for intended setting of tif_curdir (i.e. TIFFCurrentDirectory(tif)).
1575
1576 2024-07-12 Even Rouault <[email protected]>
1577
1578 Merge branch 'coverity_fixes_tiff2pdf_#2' into 'master'
1579 Try to fix additional Coverity issues in tiff2pdf
1580
1581 See merge request libtiff/libtiff!641
1582
1583 2024-07-12 Su Laus <[email protected]>
1584
1585 Try to fix additional Coverity issues in tiff2pdf.
1586
1587 2024-07-10 Even Rouault <[email protected]>
1588
1589 Merge branch 'fix_autoconf_diff_parameter_crlf' into 'master'
1590 Add parameter for "diff" used in autoconf test scripts to ignore LF and CRLF differences.
1591
1592 See merge request libtiff/libtiff!640
1593
1594 2024-07-09 Even Rouault <[email protected]>
1595
1596 Merge branch 'coverity_fixes_tiff2pdf' into 'master'
1597 Fix Coverity issues in tiff2pdf.
1598
1599 See merge request libtiff/libtiff!638
1600
1601 2024-07-09 Su Laus <[email protected]>
1602
1603 Fix Coverity issues in tiff2pdf.
1604
1605 2024-06-29 Su_Laus <[email protected]>
1606
1607 Add parameter for "diff" used in autoconf test scripts to ignore LF and CRLF differences.
1608
1609 2024-06-28 Even Rouault <[email protected]>
1610
1611 Merge branch 'coverity_fixes_test_thumbnail' into 'master'
1612 Coverity Scan fixes in thumbnail.c and custom_dir_EXIF_231.c
1613
1614 See merge request libtiff/libtiff!637
1615
1616 2024-06-28 Su Laus <[email protected]>
1617
1618 Coverity Scan fixes in thumbnail.c and custom_dir_EXIF_231.c.
1619
1620 2024-06-25 Even Rouault <[email protected]>
1621
1622 Merge branch 'coverity_fixes' into 'master'
1623 Try to silence new Coverity Scan false positives
1624
1625 See merge request libtiff/libtiff!636
1626
1627 2024-06-24 Even Rouault <[email protected]>
1628
1629 Try to silence new Coverity Scan false positives.
1630 There are other warnings in tools/ that I'll let others deal with.
1631
1632 2024-06-24 Even Rouault <[email protected]>
1633
1634 Merge branch 'fix/make' into 'master'
1635 fix: error when running make clean
1636
1637 Closes #630
1638
1639 See merge request libtiff/libtiff!635
1640
1641 2024-06-24 Kévin Dunglas <[email protected]>
1642
1643 fix: error when running make clean.
1644
1645 2024-06-15 Niklas Hambüchen <[email protected]>
1646
1647 libtiff-4.pc: Fix `Requires.private` missing `Lerc`.
1648 It provides a `.pc` file starting from version 4 in:
1649
1650 https://github.com/Esri/lerc/blob/8d6e8251544bbe1379feb0fe0a0934e43ca1a6cd/Lerc.pc.in
1651
1652 libtiff's CMake build system already has support for this,
1653 adding `Lerc` to `Requires.private` if Lerc is >= 4.
1654
1655 In contrast to the CMake build system, autoconf has no good way
1656 to check for checking the Lerc version, we do it unconditionally
1657 there.
1658
1659 2024-06-13 Even Rouault <[email protected]>
1660
1661 Merge branch 'rfc02_text__restore_tools' into 'master'
1662 Text for RFC 2: Restoring needed libtiff tools
1663
1664 See merge request libtiff/libtiff!581
1665
1666 2024-06-13 Even Rouault <[email protected]>
1667
1668 Merge branch 'add_some_conversion_test_to_cmake' into 'master'
1669 Port some basic sanity checks from autoconf to cmake.
1670
1671 See merge request libtiff/libtiff!630
1672
1673 2024-06-10 Even Rouault <[email protected]>
1674
1675 Merge branch 'tiffcp_coverity_check_malloc_return' into 'master'
1676 tiffcp: Add check for limitMalloc return to fix Coverity CID 1603334
1677
1678 See merge request libtiff/libtiff!632
1679
1680 2024-06-10 Su_Laus <[email protected]>
1681
1682 tiffcp add check for limitMalloc return to fix Coverity CID 1603334.
1683
1684 2024-06-07 Even Rouault <[email protected]>
1685
1686 Merge branch 'aim-nara-master-patch-67955' into 'master'
1687 Remove unnecessary `2` in tiffcmp name
1688
1689 See merge request libtiff/libtiff!631
1690
1691 2024-06-07 AIM | Nara <[email protected]>
1692
1693 Remove unnecessary `2` in tiffcmp name.
1694
1695 2024-05-30 Su_Laus <[email protected]>
1696
1697 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')
1698
1699 2024-05-29 Even Rouault <[email protected]>
1700
1701 Merge branch 'ofz65182' into 'master'
1702 an issue seen in putcontig8bitYCbCr22tile
1703
1704 See merge request libtiff/libtiff!564
1705
1706 2024-05-29 Caolán McNamara <[email protected]>
1707
1708 TIFFScanlineSize64(): fix computation in non-JPEG YCbCr case (#564)
1709 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65182
1710
1711 2024-05-29 Even Rouault <[email protected]>
1712
1713 Merge branch 'fix_375' into 'master'
1714 TIFFRead[Scanline/EncodedStrip/EncodeTile]: 0-initialize output buffer if setupdecode fails ; most codecs: zero-initialize (not-yet-written parts of) output buffer if failure
1715
1716 Closes #375
1717
1718 See merge request libtiff/libtiff!628
1719
1720 2024-05-29 Even Rouault <[email protected]>
1721
1722 Merge branch 'tiff2pdf-planar' into 'master'
1723 Inconsistent PLANARCONFIG value for the input and output TIFF in tiff2pdf.c
1724
1725 See merge request libtiff/libtiff!629
1726
1727 2024-05-29 Timothy Lyanguzov <[email protected]>
1728
1729 Inconsistent PLANARCONFIG value for the input and output TIFF in tiff2pdf.c
1730 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.
1731 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.
1732
1733 Reimplementation of !92
1734
1735 2024-05-27 Even Rouault <[email protected]>
1736
1737 tif_lzma/tif_lzw: add code comments.
1738
1739 2024-05-26 Even Rouault <[email protected]>
1740
1741 ZSTDDecode: zero-initialize (not-yet-written parts of) output buffer if failure
1742
1743 PixarLogDecode: zero-initialize output buffer if failure.
1744
1745 PackBitsDecode: zero-initialize (not-yet-written parts of) output buffer if failure
1746
1747 JPEGDecode: zero-initialize (not-yet-written parts of) output buffer if failure
1748
1749 LERCDecode: zero-initialize output buffer if failure.
1750
1751 LZMADecode: zero-initialize (not-yet-written parts of) output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occurred
1752
1753 TWebPDecode: zero-initialize output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occurred
1754
1755 ThunderDecode: zero-initialize (not-yet-written parts of) output buffer if failure
1756
1757 OJPEGDecode: zero-initialize output buffer if failure.
1758
1759 JBIGDecode: zero-initialize (not-yet-written parts of) output buffer if failure
1760
1761 ZIPDecode: zero-initialize (not-yet-written parts of) output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occurred
1762
1763 LZWDecode: zero-initialize (not-yet-written parts of) output buffer if failure
1764
1765 TIFFRead[Scanline/EncodedStrip/EncodeTile]: 0-initialize output buffer if setupdecode fails
1766 Fixes #375
1767
1768 2024-05-25 Su_Laus <[email protected]>
1769
1770 Text for RFC 2: Restoring needed libtiff tools - file added to doc/Makefile.am and rebased.
1771
1772 Text for RFC 2: Restoring needed libtiff tools - approved with voting history updated.
1773
1774 Text for RFC 2: Restoring needed libtiff tools - further amended.
1775
1776 Text for RFC 2: Restoring needed libtiff tools - amended.
1777
1778 Text for RFC 2: Restoring needed libtiff tools.
1779
1780 2024-05-23 Even Rouault <[email protected]>
1781
1782 Merge branch 'tiff2pdf_539' into 'master'
1783 fix tiff2pdf issue #539; however, there certainly remain many JPEG-compressed...
1784
1785 See merge request libtiff/libtiff!597
1786
1787 2024-05-23 Lee Howard <[email protected]>
1788
1789 tiff2pdf: fix issue with JPEG restart-interval marker when converting from JPEG-compressed files
1790 Fixes #539
1791
1792 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
1793
1794 2024-05-22 Even Rouault <[email protected]>
1795
1796 Merge branch 'test_fix' into 'master'
1797 test/Makefile.am: make sure that all test images are bundled by make dist even...
1798
1799 See merge request libtiff/libtiff!626
1800
1801 2024-05-22 Even Rouault <[email protected]>
1802
1803 Merge branch 'add_missing_rst_files' into 'master'
1804 doc/Makefile.am: add rfcs/ files in rst_sources variable
1805
1806 See merge request libtiff/libtiff!624
1807
1808 2024-05-22 Even Rouault <[email protected]>
1809
1810 test/Makefile.am: make sure that all test images are bundled by make dist even if JPEG or JBIG is not available
1811
1812 2024-05-22 Even Rouault <[email protected]>
1813
1814 Merge branch 'timothyl/32bpp-cmake-test' into 'master'
1815 Add new test to CMake
1816
1817 See merge request libtiff/libtiff!625
1818
1819 2024-05-22 Timothy Lyanguzov <[email protected]>
1820
1821 Add new test to CMake.
1822 See previous merge request libtiff/libtiff!611
1823
1824 2024-05-22 Even Rouault <[email protected]>
1825
1826 doc/Makefile.am: add rfcs/ files in rst_sources variable.
1827
1828 2024-05-22 Even Rouault <[email protected]>
1829
1830 Merge branch 'tiffcp_tiffcrop_RGB_YCbCr_tests' into 'master'
1831 Add some basic sanity checks for tiffcp and tiffcrop RGB->YCbCr JPEG conversions.
1832
1833 See merge request libtiff/libtiff!611
1834
1835 2024-05-22 Lee Howard <[email protected]>
1836
1837 Add some basic sanity checks for tiffcp and tiffcrop RGB->YCbCr JPEG conversions.
1838
1839 2024-05-21 Even Rouault <[email protected]>
1840
1841 Merge branch 'tiffcp_LZW_JBIG_test' into 'master'
1842 Add basic sanity check for tiffcp LZW->JBIG conversion.
1843
1844 See merge request libtiff/libtiff!612
1845
1846 2024-05-21 Even Rouault <[email protected]>
1847
1848 Merge branch 'tiffcrop_masonwilde_fix' into 'master'
1849 Apply "Fix heap-buffer-overflow in function extractImageSection"
1850
1851 See merge request libtiff/libtiff!613
1852
1853 2024-05-21 Lee Howard <[email protected]>
1854
1855 tiffcrop: Apply "Fix heap-buffer-overflow in function extractImageSection"
1856 https://gitlab.com/masonwilde/libtiff/-/commit/848434a81c443f59ec90d41218eba6e48a450a11
1857
1858 authored by zhailiangliang commit 848434a81c443f59ec90d41218eba6e48a450a11
1859
1860 The overflow conditions were previously addressed, but this provides additional error messages.
1861
1862 2024-05-21 Even Rouault <[email protected]>
1863
1864 Merge branch 'fix_183_alternative' into 'master'
1865 OJPEG: reset subsampling_convert_state =0 in OJPEGPreDecode (fixes tiff2pdf issue #183)
1866
1867 See merge request libtiff/libtiff!621
1868
1869 2024-05-21 Even Rouault <[email protected]>
1870
1871 Merge branch 'thunder-fix' into 'master'
1872 A fix for Thunder RLE
1873
1874 See merge request libtiff/libtiff!623
1875
1876 2024-05-21 Timothy Lyanguzov <[email protected]>
1877
1878 A fix for Thunder RLE.
1879 The commit https://gitlab.com/robinwatts/libtiff/-/commit/be0519ca3d222c19008fe160873f3b5c28e6b36b states:
1880
1881 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.
1882
1883 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.
1884
1885 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.
1886
1887 2024-05-18 Even Rouault <[email protected]>
1888
1889 Merge branch 'tiff2ps_fax2tiff_476' into 'master'
1890 fix fax2ps and fax2tiff bugs #476
1891
1892 See merge request libtiff/libtiff!598
1893
1894 2024-05-18 Lee Howard <[email protected]>
1895
1896 Fix fax2ps and fax2tiff memory leaks.
1897 Fixes #476
1898
1899 2024-05-17 Even Rouault <[email protected]>
1900
1901 Merge branch 'tiff2rgba_469' into 'master'
1902 fix tiff2rgba issue #469
1903
1904 See merge request libtiff/libtiff!600
1905
1906 2024-05-17 Even Rouault <[email protected]>
1907
1908 Merge branch 'formatting-fixes' into 'master'
1909 Formatting fixes
1910
1911 See merge request libtiff/libtiff!622
1912
1913 2024-05-17 Even Rouault <[email protected]>
1914
1915 Formatting fixes.
1916
1917 2024-05-17 Even Rouault <[email protected]>
1918
1919 Merge branch 'coverity_fixes' into 'master'
1920 3 Coverity Scan fixes in tools & contrib
1921
1922 See merge request libtiff/libtiff!592
1923
1924 2024-05-17 Even Rouault <[email protected]>
1925
1926 Merge branch 'tiff2pdf_596' into 'master'
1927 tiff2pdf issue #596
1928
1929 See merge request libtiff/libtiff!594
1930
1931 2024-05-17 Even Rouault <[email protected]>
1932
1933 Merge branch 'tiffdither_473' into 'master'
1934 fix tiffdither bug #473
1935
1936 See merge request libtiff/libtiff!599
1937
1938 2024-05-17 Even Rouault <[email protected]>
1939
1940 Merge branch 'fax2tiff_468' into 'master'
1941 fix fax2tiff issue #468
1942
1943 See merge request libtiff/libtiff!601
1944
1945 2024-05-17 Even Rouault <[email protected]>
1946
1947 Merge branch 'tiff2rgba_background' into 'master'
1948 Add background gradient option for tiff2rgba alpha compositing.
1949
1950 See merge request libtiff/libtiff!610
1951
1952 2024-05-17 Lee Howard <[email protected]>
1953
1954 Add background gradient option for tiff2rgba alpha compositing.
1955
1956 2024-05-17 Even Rouault <[email protected]>
1957
1958 Merge branch 'tiff2pdf_253' into 'master'
1959 Fix tiff2pdf issue #253 - red and blue were being swapped for RGBA decoding
1960
1961 See merge request libtiff/libtiff!603
1962
1963 2024-05-17 Even Rouault <[email protected]>
1964
1965 Merge branch 'fax2tiff_249' into 'master'
1966 Fix fax2tiff issue #249, unreasonable width input
1967
1968 See merge request libtiff/libtiff!604
1969
1970 2024-05-17 Even Rouault <[email protected]>
1971
1972 Merge branch 'tiffcp_tiffcrop_228' into 'master'
1973 correct tiffcp and tiffcrop issue #228
1974
1975 See merge request libtiff/libtiff!605
1976
1977 2024-05-17 Even Rouault <[email protected]>
1978
1979 OJPEG: reset subsampling_convert_state =0 in OJPEGPreDecode (fixes tiff2pdf issue #183)
1980
1981 2024-05-17 Even Rouault <[email protected]>
1982
1983 Merge branch 'fax2tiff_191' into 'master'
1984 Fix fax2tiff issue #191 - EOFB interpretation
1985
1986 See merge request libtiff/libtiff!606
1987
1988 2024-05-17 Even Rouault <[email protected]>
1989
1990 Merge branch 'tiff2pdf_98' into 'master'
1991 Fix tiff2pdf documentation issue #98
1992
1993 See merge request libtiff/libtiff!608
1994
1995 2024-05-17 Even Rouault <[email protected]>
1996
1997 Merge branch 'tiffgt_warning' into 'master'
1998 Avoids a warning regarding fallthrough.
1999
2000 See merge request libtiff/libtiff!609
2001
2002 2024-05-17 Even Rouault <[email protected]>
2003
2004 Merge branch 'tiffcrop_542_550_552' into 'master'
2005 tiffcrop: fixes #542, #550, #552 (buffer overflows, use after free)
2006
2007 See merge request libtiff/libtiff!595
2008
2009 2024-05-17 Lee Howard <[email protected]>
2010
2011 tiffcrop: fixes #542, #550, #552 (buffer overflows, use after free)
2012
2013 2024-05-17 Even Rouault <[email protected]>
2014
2015 Merge branch 'Fedora_am_version' into 'master'
2016 libtiff-am-version.patch from Fedora stating:
2017
2018 See merge request libtiff/libtiff!617
2019
2020 2024-05-17 Even Rouault <[email protected]>
2021
2022 Merge branch 'formatting-fixes' into 'master'
2023 Code formatting fixes
2024
2025 See merge request libtiff/libtiff!620
2026
2027 2024-05-17 Even Rouault <[email protected]>
2028
2029 Code formatting fixes.
2030 Result of running ``pre-commit run --all``
2031
2032 2024-05-17 Even Rouault <[email protected]>
2033
2034 Merge branch 'sphinx_quotes_dashes' into 'master'
2035 Don't let Sphinx inconsistently alter quotes and dashes in rst files.
2036
2037 See merge request libtiff/libtiff!615
2038
2039 2024-05-17 Even Rouault <[email protected]>
2040
2041 Merge branch 'tiffmedian_599' into 'master'
2042 tiffmedian issue #599
2043
2044 See merge request libtiff/libtiff!593
2045
2046 2024-05-17 Lee Howard <[email protected]>
2047
2048 tiffmedian: fix memory leaks.
2049 Closes #599
2050
2051 2024-05-17 Even Rouault <[email protected]>
2052
2053 Merge branch 'more_spelling_corrections' into 'master'
2054 Typo fixes following...
2055
2056 See merge request libtiff/libtiff!618
2057
2058 2024-05-17 Lee Howard <[email protected]>
2059
2060 Typo fixes following https://gitlab.com/libtiff/libtiff/-/commit/c95c77350820e19c8e273925bc97259727d19695
2061
2062 2024-05-16 Lee Howard <[email protected]>
2063
2064 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.
2065
2066 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
2067
2068 Add basic sanity check for tiffcp LZW->JBIG conversion.
2069
2070 Avoids a warning regarding fallthrough.
2071
2072 Fix tiff2pdf documentation issue #98.
2073
2074 Fix fax2tiff issue #191 - EOFB interpretation.
2075
2076 Update tiffcp.c.
2077
2078 Correct tiffcrop output of RGB JPEG and tiffcp/tiffcrop documentation - issue #228
2079
2080 Fix tiffcp and tiffcrop issue 228 - step 1.
2081
2082 Fix fax2tiff issue #249, unreasonable width input.
2083
2084 Fix tiff2pdf issue #253 - red and blue were being swapped for RGBA decoding
2085
2086 fix fax2tiff issue #468.
2087
2088 fix tiff2rgba issue #469.
2089
2090 fix tiffdither bug #473.
2091
2092 tiff2pdf issue #596.
2093
2094 2024-05-16 Even Rouault <[email protected]>
2095
2096 contrib/addtiffo: validate return of TIFFWriteEncodedXXXX() calls (CID 1024680)
2097
2098 tiffdump.c: fix wrong printf formattre in error message (CID 1472932)
2099
2100 tiffset.c: avoid false positive Coverity Scan warning on 64-bit builds (CID 1518997)
2101
2102 2024-05-16 Even Rouault <[email protected]>
2103
2104 Merge branch 'master' into 'master'
2105 Fix some Coverity warnings.
2106
2107 See merge request libtiff/libtiff!590
2108
2109 2024-05-16 Lee Howard <[email protected]>
2110
2111 Fix some Coverity warnings.
2112
2113 2024-05-13 Even Rouault <[email protected]>
2114
2115 Merge branch 'revert_tools_removement' into 'master'
2116 Restore tools from archive and unsupported and tiffcp -i option with revert.
2117
2118 See merge request libtiff/libtiff!589
2119
2120 2024-05-11 Su_Laus <[email protected]>
2121
2122 Apply some newer changes to the reverted code and prepare note for 4.7.0.
2123
2124 Revert "Remove -i option (ignore errors) from tiffcp, because almost all fuzzer issues were consequential errors from ignored errors because of the "-i" option."
2125 This reverts commit 280a568ae887c27a422a5da862398ffdbcd9b84d.
2126
2127 2024-05-11 Su_Laus <[email protected]>
2128
2129 Revert "Move most TIFF tools to archive and keep some as unsupported (see #580)."
2130 This reverts commit eab89a627f0a65e9a1a47c4b30b4802c80b1ac45.
2131
2132 # Conflicts:
2133 # tools/unsupported/CMakeLists.txt
2134 # tools/unsupported/tif_tools-unsupported_versioninfo.rc
2135
2136 2024-05-10 Even Rouault <[email protected]>
2137
2138 Merge branch 'calloc-transposed-args' into 'master'
2139 Fix -Werror=calloc-transposed-args with gcc 14
2140
2141 See merge request libtiff/libtiff!588
2142
2143 2024-05-10 Even Rouault <[email protected]>
2144
2145 Fix -Werror=calloc-transposed-args with gcc 14.
2146
2147 2024-05-09 Even Rouault <[email protected]>
2148
2149 Merge branch 'EvaluateIFDdatasizeReading_ossfuzz_68327' into 'master'
2150 EvaluateIFDdatasizeReading(): avoid unsigned integer overflow (master only)
2151
2152 See merge request libtiff/libtiff!586
2153
2154 2024-04-27 Even Rouault <[email protected]>
2155
2156 EvaluateIFDdatasizeReading(): avoid unsigned integer overflow (master only)
2157 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68327
2158
2159 2024-04-25 Even Rouault <[email protected]>
2160
2161 Merge branch 'ci-appveyor-cygwin-upgrade' into 'master'
2162 appveyor: Upgrade cygwin packages
2163
2164 See merge request libtiff/libtiff!585
2165
2166 2024-04-25 Roger Leigh <[email protected]>
2167
2168 appveyor: Upgrade cygwin packages.
2169
2170 2024-04-25 Even Rouault <[email protected]>
2171
2172 Merge branch 'libjpeg_turbo_3_0' into 'master'
2173 Change messages/comments referring libjpeg-turbo 2.2 to 3.0
2174
2175 See merge request libtiff/libtiff!584
2176
2177 2024-04-24 Even Rouault <[email protected]>
2178
2179 Change messages/comments referring libjpeg-turbo 2.2 to 3.0.
2180 libjpeg-turbo 2.2 was actually released as 3.0. Reflect that
2181
2182 2024-04-22 Even Rouault <[email protected]>
2183
2184 Merge branch 'EvaluateIFDdatasizeReading_unsigned_int_overflow_fix' into 'master'
2185 EvaluateIFDdatasizeReading(): avoid potential unsigned integer overflow on corrupted tag
2186
2187 See merge request libtiff/libtiff!582
2188
2189 2024-04-22 Even Rouault <[email protected]>
2190
2191 EvaluateIFDdatasizeReading(): avoid potential unsigned integer overflow on corrupted tag
2192
2193 2024-04-22 Even Rouault <[email protected]>
2194
2195 Merge branch 'tif_dir_logging-627' into 'master'
2196 tif_dir.c: Log source file, line number, and input tif for directory count error.
2197
2198 Closes #627
2199
2200 See merge request libtiff/libtiff!583
2201
2202 2024-04-22 Kurt Schwehr <[email protected]>
2203
2204 tif_dir.c: Log source file, line number, and input tif for directory count error.
2205
2206 2024-04-14 Even Rouault <[email protected]>
2207
2208 Merge branch 'fix_readrgbastrip_fpe' into 'master'
2209 Avoiding FPEs (division by zero) in tif_getimage.c
2210
2211 See merge request libtiff/libtiff!580
2212
2213 2024-04-09 Zurab Tsinadze <[email protected]>
2214
2215 Avoid FPEs (division by zero) in tif_getimage.c.
2216
2217 2024-04-06 Even Rouault <[email protected]>
2218
2219 Merge branch 'appveyor-vs2022' into 'master'
2220 appveyor: Add VS2022 builds
2221
2222 See merge request libtiff/libtiff!579
2223
2224 2024-04-06 Roger Leigh <[email protected]>
2225
2226 appveyor: Add VS2022 builds.
2227
2228 2024-04-04 Roger Leigh <[email protected]>
2229
2230 Merge branch 'appveyor-mingw-fix' into 'master'
2231 appveyor: Use MinGW-w64
2232
2233 See merge request libtiff/libtiff!578
2234
2235 2024-04-04 Roger Leigh <[email protected]>
2236
2237 appveyor: Use MinGW-w64.
2238
2239 2024-04-03 Even Rouault <[email protected]>
2240
2241 Merge branch 'update_rfc1_status' into 'master'
2242 RFC1: update status to adopted
2243
2244 See merge request libtiff/libtiff!577
2245
2246 2024-04-03 Even Rouault <[email protected]>
2247
2248 RFC1: update status to adopted.
2249
2250 2024-04-03 Even Rouault <[email protected]>
2251
2252 Merge branch 'rfc1_psc' into 'master'
2253 Doc: add 'RFC 1: Project Steering Committee Guidelines' and a PSC page
2254
2255 See merge request libtiff/libtiff!566
2256
2257 2024-04-03 Even Rouault <[email protected]>
2258
2259 Doc: add 'RFC 1: Project Steering Committee Guidelines' and a PSC page.
2260
2261 2024-04-02 Even Rouault <[email protected]>
2262
2263 Merge branch 'fix_coverity_test_directory_expansion' into 'master'
2264 Fix coverity scan issue in test_directory.c
2265
2266 See merge request libtiff/libtiff!576
2267
2268 2024-04-02 Su_Laus <[email protected]>
2269
2270 Fix coverity scan issue in test_directory.c.
2271
2272 2024-04-02 Even Rouault <[email protected]>
2273
2274 Merge branch 'typo_fixes' into 'master'
2275 Various typo fixes
2276
2277 See merge request libtiff/libtiff!575
2278
2279 2024-04-02 Even Rouault <[email protected]>
2280
2281 Various typo fixes.
2282
2283 2024-03-31 Even Rouault <[email protected]>
2284
2285 Merge branch 'test_directory_expansion_endianness' into 'master'
2286 Enhance test_directory.c with big-endian and little-endian test cases
2287
2288 See merge request libtiff/libtiff!574
2289
2290 2024-03-30 Su_Laus <[email protected]>
2291
2292 Enhance test/test_directory.c with big-endian and little-endian test cases.
2293 Insert testcase into test_directory.c for #618 "Failure in TIFFSetSubDirectory() will break subsequent TIFFSetDirectory() calls".
2294
2295 2024-03-29 Even Rouault <[email protected]>
2296
2297 Merge branch 'correct_coverity_issues_from_avoid_IFD_overwriting' into 'master'
2298 Correct some coverity issues from "avoid IFD overwriting"
2299
2300 See merge request libtiff/libtiff!573
2301
2302 2024-03-29 Su_Laus <[email protected]>
2303
2304 Correct some coverity issues from "avoid IFD overwriting".
2305
2306 2024-03-28 Even Rouault <[email protected]>
2307
2308 Merge branch 'fix_gdal_9548' into 'master'
2309 LERC codec: deal with issues with multi-band PlanarConfig=Contig and NaN values
2310
2311 See merge request libtiff/libtiff!572
2312
2313 2024-03-26 Even Rouault <[email protected]>
2314
2315 Merge branch 'avoid_IFD_overwriting_other_data_TIFFWriteDirectory' into 'master'
2316 TIFFWriteDirectory: Avoid overwriting following data if an IFD is enlarged.
2317
2318 See merge request libtiff/libtiff!565
2319
2320 2024-03-26 Su Laus <[email protected]>
2321
2322 TIFFWriteDirectory: Avoid overwriting following data if an IFD is enlarged.
2323 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.
2324
2325 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.
2326
2327 2024-03-24 Even Rouault <[email protected]>
2328
2329 LERC codec: deal with issues with multi-band PlanarConfig=Contig and NaN values
2330 Fixes https://github.com/OSGeo/gdal/issues/9530.
2331 Cf https://github.com/OSGeo/gdal/pull/9548 for the GDAL specific fix.
2332
2333 The LERC codec up-to-now didn't do any special processing when writing a strile
2334 in a multi-band PlanarConfig=Contig file, resulting in corruptions. Now we
2335 generate a mask buffer in that situation. Actually, if the NaN values are not
2336 at the same location across bands, we need to write one mask-per-band, which
2337 requires liblerc >= 3.0, and in that situation change the LERC blob to
2338 multi-band instead of multi-depth/dim, with liblerc >= 3.0. When all bands have
2339 NaN values at the same location, we generate a single mask, which is compatible
2340 of liblerc < 3.0, but requires at last this version of libtiff to be read. This
2341 is the best solution we come with to fix the issue while having the maximum
2342 backward compatibility.
2343
2344 2024-03-24 Even Rouault <[email protected]>
2345
2346 Merge branch 'harmonize_TIFFheader_swapping' into 'master'
2347 Correct and harmonize swapping of internal 'tif_header' parameters.
2348
2349 See merge request libtiff/libtiff!571
2350
2351 2024-03-24 Su Laus <[email protected]>
2352
2353 Correct and harmonize swapping of internal 'tif_header' parameters.
2354
2355 2024-03-19 Even Rouault <[email protected]>
2356
2357 Merge branch 'chore/printf-format-specifiers' into 'master'
2358 chore: use correct format specifiers
2359
2360 See merge request libtiff/libtiff!570
2361
2362 2024-03-19 Tom <[email protected]>
2363
2364 chore: use correct format specifiers.
2365 When building on my Mac, I get the following warnings:
2366
2367 libtiff/tools/tiffcp.c:154:24: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
2368 comma, nextImage);
2369 ^~~~~~~~~
2370 libtiff/tools/tiffcp.c:1295:39: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
2371 TIFFFileName(bias), TIFFCurrentDirectory(bias),
2372 ^~~~~~~~~~~~~~~~~~~~~~~~~~
2373 libtiff/tools/tiffcp.c:1296:37: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
2374 TIFFFileName(in), TIFFCurrentDirectory(in));
2375 ^~~~~~~~~~~~~~~~~~~~~~~~
2376 libtiff/tools/tiffcp.c:1303:37: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
2377 TIFFFileName(in), TIFFCurrentDirectory(in));
2378 ^~~~~~~~~~~~~~~~~~~~~~~~
2379 libtiff/tools/tiffsplit.c:174:21: warning: format specifies type 'long long' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
2380 path_len);
2381 ^~~~~~~~
2382
2383 This updates the format specifiers from `PRIu16` to `PRIu32` for `tdir_t`
2384 (which is a `typedef`ed `uint32_t`) and from `TIFF_SSIZE_FORMAT` to
2385 `TIFF_SIZE_FORMAT` for `size_t`, which makes sense given that it's an unsigned
2386 type.
2387
2388 2024-03-16 Even Rouault <[email protected]>
2389
2390 Merge branch 'fix_628_FPE_at_TIFFhowmany' into 'master'
2391 Avoiding FPE (division by zero) for TIFFhowmany_32() and TIFFhowmany_64()...
2392
2393 Closes #628
2394
2395 See merge request libtiff/libtiff!568
2396
2397 2024-03-15 Su_Laus <[email protected]>
2398
2399 Avoiding FPE (division by zero) for TIFFhowmany_32() and TIFFhowmany_64() macros by checking for denominator not zero before macros are executed. Fixes #628.
2400
2401 2024-03-14 Even Rouault <[email protected]>
2402
2403 Merge branch 'fix_wrong_return_TIFFIsBigTIFF_if_swapping_case' into 'master'
2404 Fix wrong return of TIFFIsBigTIFF() in case byte-swapping is active
2405
2406 See merge request libtiff/libtiff!567
2407
2408 2024-03-13 Su_Laus <[email protected]>
2409
2410 Fix wrong return of TIFFIsBigTIFF() in case byte-swapping is active (i.e. little endian image on a big endian machine).
2411
2412 2024-01-30 Even Rouault <[email protected]>
2413
2414 Merge branch 'master' into 'master'
2415 Setting the TIFFFieldInfo field `set_field_type` should consider `field_writecount` not `field_readcount`
2416
2417 See merge request libtiff/libtiff!544
2418
2419 2024-01-30 Timo Stüber <[email protected]>
2420
2421 Setting the TIFFFieldInfo field `set_field_type` should consider `field_writecount` not `field_readcount`
2422 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.
2423
2424 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.
2425
2426 Error Message:
2427 ```
2428 TIFFLib: _TIFFWriteDirectorySec(): Rational2Double: .set_field_type is not 4 but 1.
2429 ```
2430
2431 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.
2432
2433 2024-01-24 Even Rouault <[email protected]>
2434
2435 Merge branch 'avoid_memory_leaks_using_TIFFCreateDirectory' into 'master'
2436 Avoiding memory leaks when using TIFFCreateDirectory()
2437
2438 See merge request libtiff/libtiff!563
2439
2440 2024-01-24 Su_Laus <[email protected]>
2441
2442 Avoiding memory leaks when using TIFFCreateDirectory() by releasing the allocated memory in the tif-structure.
2443
2444 2024-01-10 Even Rouault <[email protected]>
2445
2446 Merge branch 'WIN32' into 'master'
2447 Use #ifdef _WIN32 to test for Windows, and tiffio.h: remove definition of __WIN32__
2448
2449 See merge request libtiff/libtiff!562
2450
2451 2024-01-08 Even Rouault <[email protected]>
2452
2453 test/raw_decode.c: remove likely ifdef tricks related to old compilers or unusual setups
2454
2455 tif_jpeg.c/tif_ojpeg.c: remove likely ifdef tricks related to old compilers or unusual setups
2456
2457 Remove _TIFFUInt64ToFloat() and _TIFFUInt64ToDouble()
2458
2459 Remove support for _MSC_VER < 1500.
2460
2461 2024-01-07 Even Rouault <[email protected]>
2462
2463 Use #ifdef _WIN32 to test for Windows, and tiffio.h: remove definition of __WIN32__
2464
2465 2023-12-20 Even Rouault <[email protected]>
2466
2467 Merge branch 'fix_579_non_terminated_ASCII_deletes_one_byte' into 'master'
2468 Fixed issue with non-terminated ASCII arrays where the last character is overwritten (fixes #579)
2469
2470 Closes #579
2471
2472 See merge request libtiff/libtiff!561
2473
2474 2023-12-20 Su_Laus <[email protected]>
2475
2476 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.
2477
2478 2023-12-09 Even Rouault <[email protected]>
2479
2480 Merge branch 'fix_624_check_TIFFCreateAnonField_return' into 'master'
2481 Fix 624: Check return value of _TIFFCreateAnonField()
2482
2483 Closes #624
2484
2485 See merge request libtiff/libtiff!560
2486
2487 2023-12-01 Su_Laus <[email protected]>
2488
2489 Check return value of _TIFFCreateAnonField().
2490 Fixes #624
2491
2492 2023-11-27 Even Rouault <[email protected]>
2493
2494 Merge branch 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' into 'master'
2495 Add TIFFOpenOptionsSetMaxCumulatedMemAlloc()
2496
2497 See merge request libtiff/libtiff!556
2498
2499 2023-11-27 Even Rouault <[email protected]>
2500
2501 Add TIFFOpenOptionsSetMaxCumulatedMemAlloc()
2502 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.
2503
2504 2023-11-23 Even Rouault <[email protected]>
2505
2506 Merge branch 'unity_clang_fixes' into 'master'
2507 Fixes to avoid CLang warnings on unity builds
2508
2509 See merge request libtiff/libtiff!558
2510
2511 2023-11-23 Even Rouault <[email protected]>
2512
2513 Fixes to avoid CLang warnings on unity builds.
2514
2515 2023-11-22 Even Rouault <[email protected]>
2516
2517 Merge branch 'cmake_UNITY_BUILD' into 'master'
2518 Changes to allow building with cmake -DCMAKE_UNITY_BUILD=ON
2519
2520 See merge request libtiff/libtiff!557
2521
2522 2023-11-22 Even Rouault <[email protected]>
2523
2524 CI: test -DCMAKE_UNITY_BUILD=ON.
2525
2526 Changes to allow building with cmake -DCMAKE_UNITY_BUILD=ON.
2527
2528 2023-11-22 Even Rouault <[email protected]>
2529
2530 Merge branch 'manpage_506_TIFFClose_check_with_TIFFFlush' into 'master'
2531 manpage: Note on using TIFFFlush() before TIFFClose()
2532
2533 Closes #506
2534
2535 See merge request libtiff/libtiff!555
2536
2537 2023-11-16 Su_Laus <[email protected]>
2538
2539 manpage: Note on using TIFFFlush() before TIFFClose() to check that the data has been successfully written to the file.
2540 Closes #506
2541
2542 2023-11-11 Even Rouault <[email protected]>
2543
2544 Merge branch 'manpage_621_TIFFOpenOptionsSetMaxSingleMemAlloc' into 'master'
2545 manpage: Update TIFF documentation about TIFFOpenOptions.rst and memory limiting.
2546
2547 Closes #621
2548
2549 See merge request libtiff/libtiff!553
2550
2551 2023-11-11 Even Rouault <[email protected]>
2552
2553 Merge branch 'rectify_some_shadowed_declarations' into 'master'
2554 Rectify some shadowed declarations and warnings in tools and test modules.
2555
2556 See merge request libtiff/libtiff!552
2557
2558 2023-11-11 Even Rouault <[email protected]>
2559
2560 Merge branch 'fix_TIFFRealloc_usage_to_TIFFReallocExt' into 'master'
2561 Change internally used _TIFFRealloc() to _TIFFReallocExt()
2562
2563 See merge request libtiff/libtiff!554
2564
2565 2023-11-11 Su_Laus <[email protected]>
2566
2567 Change internally used _TIFFRealloc() to _TIFFReallocExt(), which respects the TIFFOpenOptionsSetMaxSingleMemAlloc() limit.
2568
2569 2023-11-11 Timothy Lyanguzov <[email protected]>
2570
2571 Fix typo.
2572
2573 2023-11-09 Su_Laus <[email protected]>
2574
2575 manpage: Update TIFF documentation about TIFFOpenOptions.rst and TIFFOpenOptionsSetMaxSingleMemAlloc() usage and some other small fixes.
2576
2577 2023-11-08 Su_Laus <[email protected]>
2578
2579 Rectify some shadowed declarations and warnings in tools and test modules.
2580
2581 2023-11-04 Even Rouault <[email protected]>
2582
2583 Merge branch 'fix_583' into 'master'
2584 tif_fax3.c: error out after a number of times end-of-file has been reached (fixes #583)
2585
2586 Closes #583
2587
2588 See merge request libtiff/libtiff!547
2589
2590 2023-11-04 Even Rouault <[email protected]>
2591
2592 Merge branch 'fix_622' into 'master'
2593 TIFFReadRGBAStrip/TIFFReadRGBATile: add more validation of col/row (fixes #622)
2594
2595 Closes #622
2596
2597 See merge request libtiff/libtiff!546
2598
2599 2023-10-31 Even Rouault <[email protected]>
2600
2601 Merge branch 'extra_limit_getfilesize' into 'master'
2602 tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
2603
2604 See merge request libtiff/libtiff!551
2605
2606 2023-10-31 Even Rouault <[email protected]>
2607
2608 tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
2609
2610 2023-10-31 Even Rouault <[email protected]>
2611
2612 Merge branch 'TIFFFetchDirectory_remove_useless_check' into 'master'
2613 TIFFFetchDirectory(): remove useless allocsize vs filesize check
2614
2615 See merge request libtiff/libtiff!550
2616
2617 2023-10-31 Even Rouault <[email protected]>
2618
2619 TIFFFetchDirectory(): remove useless allocsize vs filesize check.
2620 CoverityScan rightly points that the max value for dircount16 * dirsize
2621 is 4096 * 20. That's small enough not to do any check
2622
2623 2023-10-31 Even Rouault <[email protected]>
2624
2625 Merge branch 'limit_getfilesize' into 'master'
2626 tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
2627
2628 See merge request libtiff/libtiff!549
2629
2630 2023-10-31 Even Rouault <[email protected]>
2631
2632 tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
2633 Amends 5320c9d89c054fa805d037d84c57da874470b01a
2634
2635 This fixes a performance regression caught by the GDAL regression test
2636 suite.
2637
2638 2023-10-31 Even Rouault <[email protected]>
2639
2640 Merge branch 'tif_dirread-typo' into 'master'
2641 tif_dirread.c: Fix typo: greather -> greater
2642
2643 See merge request libtiff/libtiff!548
2644
2645 2023-10-31 Kurt Schwehr <[email protected]>
2646
2647 tif_dirread.c: Fix typo: greather -> greater.
2648
2649 2023-10-31 Even Rouault <[email protected]>
2650
2651 Merge branch 'fix_614_check_mem_allocation_vs_filelength' into 'master'
2652 Prevent some out-of-memory attacks
2653
2654 See merge request libtiff/libtiff!545
2655
2656 2023-10-31 Su Laus <[email protected]>
2657
2658 Prevent some out-of-memory attacks.
2659 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.
2660
2661 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.
2662
2663 See issue https://gitlab.com/libtiff/libtiff/-/issues/614#note_1602683857
2664
2665 2023-10-31 Even Rouault <[email protected]>
2666
2667 tif_fax3.c: error out after a number of times end-of-file has been reached (fixes #583)
2668
2669 TIFFReadRGBAStrip/TIFFReadRGBATile: add more validation of col/row (fixes #622)
2670
2671 2023-10-30 Even Rouault <[email protected]>
2672
2673 Merge branch 'fix_failed_subdirectory_read' into 'master'
2674 #618: ensure absolute seeking is forced independent
2675
2676 See merge request libtiff/libtiff!543
2677
2678 2023-10-25 Manuel Massing <[email protected]>
2679
2680 #618: ensure absolute seeking is forced independent of TIFFReadDirectory success.
2681 This fixes TIFFSetDirectory calls for the case where
2682 TIFFReadDirectory was unsuccessful.
2683
2684 2023-10-17 Even Rouault <[email protected]>
2685
2686 Merge branch 'cmake' into 'master'
2687 CMake: Fix TIFF_INCLUDE_DIRS
2688
2689 See merge request libtiff/libtiff!541
2690
2691 2023-10-12 Even Rouault <[email protected]>
2692
2693 Merge branch 'fix_616' into 'master'
2694 tif_lzw.c: avoid warning about misaligned address with UBSAN (fixes #616)
2695
2696 Closes #616
2697
2698 See merge request libtiff/libtiff!542
2699
2700 2023-10-12 Even Rouault <[email protected]>
2701
2702 Merge branch 'tiffcp_cancel_ycbcr' into 'master'
2703 tiffcp: replace PHOTOMETRIC_YCBCR with PHOTOMETRIC_RGB when outputting to...
2704
2705 See merge request libtiff/libtiff!540
2706
2707 2023-10-12 Even Rouault <[email protected]>
2708
2709 tif_lzw.c: avoid warning about misaligned address with UBSAN (fixes #616)
2710 The branch suppressed by this commit wasn't useful as I've verified that
2711 with -O2 and -O3 and gcc or clang, doing a memcpy() + _byteswap_uint64()
2712 generates exactly the same code as _byteswap_uint64(*ptr).
2713 The warning with UBSAN thus only comes from UBSAN generating special code
2714 to catch the misalignment, but is unlikely to cause any issue in
2715 practice given the above observation.
2716
2717 2023-10-12 Julien Schueller <[email protected]>
2718
2719 CMake: Fix TIFF_INCLUDE_DIRS.
2720
2721 2023-10-08 Even Rouault <[email protected]>
2722
2723 tiffcp: preserve TIFFTAG_REFERENCEBLACKWHITE when doing YCbCr JPEG -> YCbCr JPEG
2724
2725 2023-10-07 Even Rouault <[email protected]>
2726
2727 tiffcp: replace PHOTOMETRIC_YCBCR with PHOTOMETRIC_RGB when outputting to compression != JPEG (refs #571)
2728
2729 2023-10-05 Even Rouault <[email protected]>
2730
2731 Merge branch 'kmilos-master-patch-42063' into 'master'
2732 CMake: MinGW compilers don't need a .def file for shared library
2733
2734 See merge request libtiff/libtiff!448
2735
2736 2023-10-05 Even Rouault <[email protected]>
2737
2738 Merge branch 'kmilos-master-patch-64997' into 'master'
2739 CMake: move libdeflate and Lerc to Requires.private
2740
2741 See merge request libtiff/libtiff!536
2742
2743 2023-10-05 Even Rouault <[email protected]>
2744
2745 Merge branch 'clarify_archive' into 'master'
2746 Doc: clarify unsupported (still in tarball) and archived (only in git) utilities
2747
2748 See merge request libtiff/libtiff!532
2749
2750 2023-10-05 Even Rouault <[email protected]>
2751
2752 Merge branch 'fix_571_alternative' into 'master'
2753 tiffcp: Setting the correct photometric interpretation for the output image...
2754
2755 Closes #571
2756
2757 See merge request libtiff/libtiff!539
2758
2759 2023-10-04 Even Rouault <[email protected]>
2760
2761 tiffcp: do not copy tags YCBCRCOEFFICIENTS, YCBCRSUBSAMPLING, YCBCRPOSITIONING, REFERENCEBLACKWHITE. Only set TIFFTAG_YCBCRSUBSAMPLING when generating YCbCr JPEG
2762
2763 tiffcp: Setting the correct photometric interpretation for the output image when converting JPEG-YCBCR to JPEG-RGB images.
2764 Closes #571
2765
2766 2023-09-28 Miloš Komarčević <[email protected]>
2767
2768 CMake: move libdeflate and Lerc to Requires.private.
2769
2770 2023-09-27 Even Rouault <[email protected]>
2771
2772 Merge branch 'kmilos-windres' into 'master'
2773 CMake: enable resource compilation on all Windows
2774
2775 See merge request libtiff/libtiff!537
2776
2777 2023-09-27 Miloš Komarčević <[email protected]>
2778
2779 CMake: enable resource compilation on all Windows.
2780
2781 2023-09-15 Even Rouault <[email protected]>
2782
2783 Merge branch 'fix_608' into 'master'
2784 tif_dirinfo.c: re-enable TIFFTAG_EP_CFAREPEATPATTERNDIM and TIFFTAG_EP_CFAPATTERN tags (fixes #608)
2785
2786 Closes #608
2787
2788 See merge request libtiff/libtiff!534
2789
2790 2023-09-15 Even Rouault <[email protected]>
2791
2792 tif_dirinfo.c: re-enable TIFFTAG_EP_CFAREPEATPATTERNDIM and TIFFTAG_EP_CFAPATTERN tags (fixes #608)
2793
2794 2023-09-09 Even Rouault <[email protected]>
2795
2796 Merge branch 'fix_606_tiffcp_check_also_input_compression_codec' into 'master'
2797 tiffcp: Fixes #606. Check also codec of input image, not only from output image.
2798
2799 Closes #606
2800
2801 See merge request libtiff/libtiff!533
2802
2803 2023-09-09 Su_Laus <[email protected]>
2804
2805 Check also if codec of input image is available, independently from codec check of output image and return with error if not. Fixes #606.
2806
2807 2023-09-08 Even Rouault <[email protected]>
2808
2809 Doc: clarify unsupported (still in tarball) and archived (only in git) utilities
2810
2811 2023-09-08 Even Rouault <[email protected]>
2812
2813 Merge branch 'update_release_date' into 'master'
2814 Update RELEASE-DATE
2815
2816 See merge request libtiff/libtiff!531
2817
2818 2023-09-08 Even Rouault <[email protected]>
2819
2820 Update RELEASE-DATE.
2821
2822 2023-09-08 Even Rouault <[email protected]>
2823
2824 Merge branch 'fix_605' into 'master'
2825 autoconf.ac: fix detection of windows.h for mingw (fixes #605)
2826
2827 Closes #605
2828
2829 See merge request libtiff/libtiff!530
2830
2831 2023-09-07 Even Rouault <[email protected]>
2832
2833 autoconf.ac: fix detection of windows.h for mingw (fixes #605)
2834
2835 2023-09-06 Even Rouault <[email protected]>
2836
2837 Merge branch 'prepare_v4_6_0' into 'master'
2838 Prepare for libtiff 4.6.0 release
2839
2840 See merge request libtiff/libtiff!528
2841
2842 2023-09-05 Even Rouault <[email protected]>
2843
2844 doc/index.rst: add warning about tools removal.
2845
2846 2023-09-05 Even Rouault <[email protected]>
2847
2848 Merge branch 'fix_603_readme_doc_reference_update' into 'master'
2849 Update documentation reference within README.md. Fixes #603.
2850
2851 Closes #603
2852
2853 See merge request libtiff/libtiff!529
2854
2855 2023-09-05 Su_Laus <[email protected]>
2856
2857 Update documentation reference within README.md. Fixes #603.
2858
2859 2023-09-05 Even Rouault <[email protected]>
2860
2861 Fix references to mailing list.
2862
2863 2023-09-05 Even Rouault <[email protected]>
2864
2865 libtiff v4.6.0 released
2866
2867 2023-09-05 Even Rouault <[email protected]>
2868
2869 Merge branch 'fix_600' into 'master'
2870 CMake: fix build with -Dstrip-chopping=off (fixes #600)
2871
2872 See merge request libtiff/libtiff!527
2873
2874 2023-09-05 Even Rouault <[email protected]>
2875
2876 Merge branch 'georgthegreat-master-patch-87447' into 'master'
2877 Fix using __attribute__ libtiff with clang-for-windows
2878
2879 See merge request libtiff/libtiff!525
2880
2881 2023-09-05 Yuriy Chernyshov <[email protected]>
2882
2883 Fix using __attribute__ libtiff with clang-for-windows.
2884
2885 2023-09-05 Even Rouault <[email protected]>
2886
2887 Merge branch 'manpage_TIFFField_docu_update' into 'master'
2888 manpages: TiffField functions documentation updated with return behaviour for...
2889
2890 See merge request libtiff/libtiff!526
2891
2892 2023-09-05 Even Rouault <[email protected]>
2893
2894 CMake: fix build with -Dstrip-chopping=off (fixes #600)
2895
2896 2023-09-03 Even Rouault <[email protected]>
2897
2898 Merge branch 'consistently_update_TIFF-version_from_configure-ac' into 'master'
2899 Update CMake and autoconf scripts to consistently update LibTIFF version...
2900
2901 See merge request libtiff/libtiff!456
2902
2903 2023-09-03 Su Laus <[email protected]>
2904
2905 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.
2906 - Move in tiffvers.h from .\libtiff source directory to .\libtiff build directory.
2907 - Remove unused version information from tif_config.h
2908 - 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.
2909 - The files VERSION and RELEASE-DATE are only updated with a special CMake target build: cmake --build . --target tiff_release.
2910
2911 - For autotools, version information is updated from configure.ac with ./autogen.sh. LIBTIFF_RELEASE_DATE is taken form file RELEASE-DATE.
2912 - ./configure generates tiffvers.h with the cached version information and LIBTIFF_RELEASE_DATE.
2913 - "make release" updates tiffvers.h and VERSION file with cached version info and RELEASE-DATE file and tiffves.h with the current date.
2914
2915 2023-08-28 Su_Laus <[email protected]>
2916
2917 manpages: TiffField functions documentation updated with return behaviour for not defined tags and determination of write-/read-count size.
2918
2919 2023-08-22 Even Rouault <[email protected]>
2920
2921 Merge branch 'change_long_to_int32_t_in_two_test_apps' into 'master'
2922 Change "long" to "int32_t" in two test apps, because can be either int32_t or...
2923
2924 See merge request libtiff/libtiff!524
2925
2926 2023-08-21 Su_Laus <[email protected]>
2927
2928 Change "long" to "int32_t" in two test apps, because can be either int32_t or int64_t, depending on compiler and system.
2929
2930 2023-08-16 Even Rouault <[email protected]>
2931
2932 Merge branch 'CI_CMake_static_build' into 'master'
2933 Add static build for CI/CD to run testcases which need private interface functions.
2934
2935 See merge request libtiff/libtiff!521
2936
2937 2023-08-16 Even Rouault <[email protected]>
2938
2939 Merge branch 'fix_#597_tiffset_different_signedness' into 'master'
2940 tiffset fix #597: warning: comparison of integer expressions of different signedness.
2941
2942 Closes #597
2943
2944 See merge request libtiff/libtiff!523
2945
2946 2023-08-16 Even Rouault <[email protected]>
2947
2948 Merge branch 'tiffcp_remove_i_option' into 'master'
2949 tiffcp: remove -i option (ignore errors)
2950
2951 See merge request libtiff/libtiff!522
2952
2953 2023-08-16 Even Rouault <[email protected]>
2954
2955 Merge branch 'move_tools_to_unsupported_a_archive' into 'master'
2956 Move most TIFF tools to archive and keep some as unsupported (see #580).
2957
2958 See merge request libtiff/libtiff!520
2959
2960 2023-08-16 Su Laus <[email protected]>
2961
2962 Move most TIFF tools to archive and keep some as unsupported (see #580).
2963
2964 2023-08-12 Su_Laus <[email protected]>
2965
2966 Add static build for CI/CD to run testcases which need private interface functions.
2967
2968 tiffset fix #597: warning: comparison of integer expressions of different signedness.
2969
2970 Remove -i option (ignore errors) from tiffcp, because almost all fuzzer issues were consequential errors from ignored errors because of the "-i" option.
2971
2972 2023-08-11 Even Rouault <[email protected]>
2973
2974 Merge branch 'fix_585_test_write_read_tags_autoconf' into 'master'
2975 Add missing test_write_read_tags.c and test_transferfunction_write_read.c in...
2976
2977 Closes #585
2978
2979 See merge request libtiff/libtiff!519
2980
2981 2023-07-24 Even Rouault <[email protected]>
2982
2983 Fix copy paste error.
2984
2985 2023-07-23 Su_Laus <[email protected]>
2986
2987 Add missing test_write_read_tags.c and test_transferfunction_write_read.c in tarball (fixes #585) and correct „long“ issue.
2988 Don't use "long" because can be int32_t or int64_t, depending on compiler and system.
2989
2990 2023-07-20 Even Rouault <[email protected]>
2991
2992 Merge branch 'clang-format-tools' into 'master'
2993 Automatically format with clang-format
2994
2995 See merge request libtiff/libtiff!518
2996
2997 2023-07-20 Timothy Lyanguzov <[email protected]>
2998
2999 Automatically format with clang-format.
3000
3001 2023-07-20 Even Rouault <[email protected]>
3002
3003 Merge branch 'fix_589' into 'master'
3004 TiffConfig.cmake.in: set TIFF_INCLUDE_DIR, TIFF_INCLUDE_DIRS and...
3005
3006 Closes #589
3007
3008 See merge request libtiff/libtiff!514
3009
3010 2023-07-20 Even Rouault <[email protected]>
3011
3012 TiffConfig.cmake.in: set TIFF_INCLUDE_DIR, TIFF_INCLUDE_DIRS and...
3013
3014 2023-07-19 Even Rouault <[email protected]>
3015
3016 Merge branch 'master-patch-6fc6' into 'master'
3017 raw2tiff: fix integer overflow and bypass of the check (fixes #592)
3018
3019 See merge request libtiff/libtiff!516
3020
3021 2023-07-19 Arie Haenel <[email protected]>
3022
3023 raw2tiff: fix integer overflow and bypass of the check (fixes #592)
3024
3025 2023-07-19 Even Rouault <[email protected]>
3026
3027 Merge branch 'master-patch-05a4' into 'master'
3028 tiffcp: fix memory corruption (overflow) on hostile images (fixes #591)
3029
3030 See merge request libtiff/libtiff!515
3031
3032 2023-07-19 Arie Haenel <[email protected]>
3033
3034 tiffcp: fix memory corruption (overflow) on hostile images (fixes #591)
3035
3036 2023-07-17 Even Rouault <[email protected]>
3037
3038 Merge branch 'fix-numtrunc' into 'master'
3039 fix numtrunc at tiff_dirread.c
3040
3041 See merge request libtiff/libtiff!512
3042
3043 2023-07-17 headshog <[email protected]>
3044
3045 TIFFReadDirectoryCheckOrder: avoid integer overflow.
3046 When it occurs, it should be harmless in practice though
3047
3048 2023-07-17 Even Rouault <[email protected]>
3049
3050 Merge branch 'webp_lossless_exact' into 'master'
3051 WebP codec: turn exact mode when creating lossless files to avoid altering...
3052
3053 See merge request libtiff/libtiff!511
3054
3055 2023-07-11 Even Rouault <[email protected]>
3056
3057 WebP codec: turn exact mode when creating lossless files to avoid altering R,G,B values in areas where alpha=0
3058 Fixes https://github.com/OSGeo/gdal/issues/8038
3059
3060 2023-07-05 Even Rouault <[email protected]>
3061
3062 Merge branch 'webp_reg_fix' into 'master'
3063 WebP decoder: fix error when reading a 3-band blob in a RGBA image
3064
3065 See merge request libtiff/libtiff!510
3066
3067 2023-07-05 Even Rouault <[email protected]>
3068
3069 WebP decoder: fix error when reading a 3-band blob in a RGBA image.
3070 Fixes regression of 350ff161c8a61b6483a1e4689e09cd47dd0dd5f9 (master only)
3071
3072 2023-06-26 Even Rouault <[email protected]>
3073
3074 Merge branch 'appveyor_fix' into 'master'
3075 .appveyor.yml: workaround build error
3076
3077 See merge request libtiff/libtiff!509
3078
3079 2023-06-26 Even Rouault <[email protected]>
3080
3081 .appveyor.yml: workaround build error.
3082
3083 2023-06-26 Even Rouault <[email protected]>
3084
3085 Merge branch 'tif_webp_warning_fixes' into 'master'
3086 tif_webp.c: fix signed vs unsigned comparison warnings (fix previous commit)
3087
3088 See merge request libtiff/libtiff!508
3089
3090 2023-06-26 Even Rouault <[email protected]>
3091
3092 tif_webp.c: fix signed vs unsigned comparison warnings (fix previous commit)
3093
3094 2023-06-26 Even Rouault <[email protected]>
3095
3096 Merge branch 'fix_TransferFunction_writing' into 'master'
3097 Fix TransferFunction writing of only two transfer functions.
3098
3099 See merge request libtiff/libtiff!502
3100
3101 2023-06-26 Even Rouault <[email protected]>
3102
3103 Merge branch 'fix_581_582' into 'master'
3104 WebP decoder: validate WebP blob width, height, band count against TIFF parameters
3105
3106 Closes #582 et #581
3107
3108 See merge request libtiff/libtiff!507
3109
3110 2023-06-19 Even Rouault <[email protected]>
3111
3112 Merge branch 'warning_cmake_config_file' into 'master'
3113 v4.5.1 release note: add warning about CMake config file being preview
3114
3115 See merge request libtiff/libtiff!506
3116
3117 2023-06-17 Even Rouault <[email protected]>
3118
3119 WebP decoder: validate WebP blob width, height, band count against TIFF parameters
3120 to avoid use of uninitialized variable, or decoding corrupted content
3121 without explicit error
3122
3123 Fixes #581, fixes #582
3124
3125 2023-06-15 Even Rouault <[email protected]>
3126
3127 v4.5.1 release note: add warning about CMake config file being preview.
3128
3129 2023-06-14 Even Rouault <[email protected]>
3130
3131 Merge branch 'HOWTO-RELEASE-gitlab-release' into 'master'
3132 HOWTO-RELEASE: mention creating a gitlab release
3133
3134 See merge request libtiff/libtiff!505
3135
3136 2023-06-14 Even Rouault <[email protected]>
3137
3138 HOWTO-RELEASE: mention creating a gitlab release.
3139
3140 2023-06-10 Even Rouault <[email protected]>
3141
3142 Merge branch 'TIFFOpenWExt_O_RDWR' into 'master'
3143 TIFFOpenWExt(): mode r+ in the Windows implementation adjusted to that of Linux
3144
3145 See merge request libtiff/libtiff!504
3146
3147 2023-06-10 Even Rouault <[email protected]>
3148
3149 TIFFOpenWExt(): mode r+ in the Windows implementation adjusted to that of Linux
3150
3151 2023-06-10 Even Rouault <[email protected]>
3152
3153 Merge branch 'fix_ossfuzz_59751' into 'master'
3154 TIFFReadDirectory(): fix crash when reading tag TIFFTAG_EP_BATTERYLEVEL
3155
3156 See merge request libtiff/libtiff!503
3157
3158 2023-06-10 Even Rouault <[email protected]>
3159
3160 TIFFReadDirectory(): fix crash when reading tag TIFFTAG_EP_BATTERYLEVEL.
3161 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59751
3162
3163 In 738e0409 (refs #575), we disabled DNG / EP tags, but there was a
3164 special processing for TIFFTAG_EP_BATTERYLEVEL that must be disabled
3165 since the tag is no longer defined.
3166
3167 2023-06-09 Su_Laus <[email protected]>
3168
3169 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.
3170 This MR corrects the behaviour of TIFFWriteDirectoryTagTransferfunction() accordingly. Furthermore, a possible buffer overflow is avoided.
3171
3172 2023-06-09 Even Rouault <[email protected]>
3173
3174 Merge branch 'fix_win_build' into 'master'
3175 Fix Windows build
3176
3177 Closes #578
3178
3179 See merge request libtiff/libtiff!501
3180
3181 2023-06-09 Even Rouault <[email protected]>
3182
3183 cmake/PkgConfig.cmake: avoid CMake error when prefix or suffix is empty.
3184
3185 Add tif_win32_versioninfo.rc and tif_tools_versioninfo.rc to EXTRA_DIST.
3186
3187 2023-06-09 Even Rouault <[email protected]>
3188
3189 Merge branch 'fix_coverity_build' into 'master'
3190 build/gitlab-ci: fix coverity_build()
3191
3192 See merge request libtiff/libtiff!499
3193
3194 2023-06-09 Even Rouault <[email protected]>
3195
3196 build/gitlab-ci: fix coverity_build()
3197
3198 2023-06-09 Even Rouault <[email protected]>
3199
3200 Merge branch 'v4.5.1rc1_preparation' into 'master'
3201 Prepare release 4.5.1
3202
3203 See merge request libtiff/libtiff!498
3204
3205 2023-06-09 Even Rouault <[email protected]>
3206
3207 Prepare for v4.5.1 release.
3208
3209 Merge remote-tracking branch 'sulaus/Rel_4.5.1_preparation'
3210
3211 2023-06-09 Even Rouault <[email protected]>
3212
3213 Merge branch 'disable_dng_tags' into 'master'
3214 tif_dirinfo.c: disable DNG 1.2->1.6 tags
3215
3216 Closes #575
3217
3218 See merge request libtiff/libtiff!497
3219
3220 2023-06-09 Even Rouault <[email protected]>
3221
3222 Merge branch 'fix_577' into 'master'
3223 CMake related fixes
3224
3225 Closes #577
3226
3227 See merge request libtiff/libtiff!496
3228
3229 2023-06-09 Even Rouault <[email protected]>
3230
3231 libtiff v4.5.1 released
3232
3233 2023-06-09 Even Rouault <[email protected]>
3234
3235 Merge remote-tracking branch 'sulaus/Rel_4.5.1_preparation'
3236
3237 2023-06-09 Even Rouault <[email protected]>
3238
3239 Merge branch 'disable_dng_tags' into 'master'
3240 tif_dirinfo.c: disable DNG 1.2->1.6 tags
3241
3242 Closes #575
3243
3244 See merge request libtiff/libtiff!497
3245
3246 2023-06-09 Even Rouault <[email protected]>
3247
3248 Merge branch 'fix_577' into 'master'
3249 CMake related fixes
3250
3251 Closes #577
3252
3253 See merge request libtiff/libtiff!496
3254
3255 2023-06-07 Even Rouault <[email protected]>
3256
3257 tif_dirinfo.c: disable DNG 1.2->1.6 tags.
3258 They were added per b90b20d36d7833f54a1f3014c324f6c21b988006 but it has
3259 been found in https://gitlab.com/libtiff/libtiff/-/issues/575 that it
3260 could cause compatibility issues with libtiff users, so this addition
3261 should be deferred for a feature release (likely 4.6.0) and not a patch one.
3262
3263 Fixes #575
3264
3265 2023-06-06 Timothy Lyanguzov <[email protected]>
3266
3267 Apply 1 suggestion(s) to 1 file(s)
3268
3269 2023-06-05 Even Rouault <[email protected]>
3270
3271 CI: add testing of find_package(Tiff CONFIG)
3272
3273 CMake: export TiffConfig.cmake and TiffConfigVersion.cmake files.
3274
3275 libtiff/CMakeLists.txt: fix export of INTERFACE_INCLUDE_DIRECTORIES.
3276
3277 libtiff/CMakeLists.txt: correctly define TIFF::tiff alias (fixes #577)
3278
3279 2023-06-05 Even Rouault <[email protected]>
3280
3281 Merge branch 'TIFFField_downgrade_errors_to_warnings' into 'master'
3282 TIFFFieldWithName() and TIFFFieldWithTag() downgrade errors to warnings.
3283
3284 See merge request libtiff/libtiff!495
3285
3286 2023-05-28 Su_Laus <[email protected]>
3287
3288 TIFFFieldWithName() and TIFFFieldWithTag() downgrade errors to warnings. see https://gitlab.com/libtiff/libtiff/-/issues/575#note_1407633888
3289
3290 2023-05-25 Even Rouault <[email protected]>
3291
3292 Merge branch 'bebuch-master-patch-58347' into 'master'
3293 check if upstream lzma (xz) config was used and bind to it if so
3294
3295 See merge request libtiff/libtiff!494
3296
3297 2023-05-25 Benjamin Buch <[email protected]>
3298
3299 check if upstream lzma (xz) config was used and bind to it if so.
3300
3301 2023-05-25 Even Rouault <[email protected]>
3302
3303 Merge branch 'upstream-zstd-config' into 'master'
3304 check if upstream zstd config was used and bind to it if so
3305
3306 See merge request libtiff/libtiff!493
3307
3308 2023-05-25 Even Rouault <[email protected]>
3309
3310 Merge branch 'cmake_FindDeflate_bugs_see_526' into 'master'
3311 CMake: FindDeflate several errors fixed (see #526)
3312
3313 See merge request libtiff/libtiff!491
3314
3315 2023-05-24 Su_Laus <[email protected]>
3316
3317 CMake: FindDeflate several errors (see #526)
3318 There are CMake issues if the library is not included in the environment path and only set with CMake -D option.
3319 - For FindDeflate.cmake, FindJBIG.cmake, FindLERC.cmake, FindWebP.cmake, FindZSTD.cmake:
3320 Set IMPORTED_LOCATION (without debug or release) if neither <library>_LIBRARY_RELEASE nor <library>_LIBRARY_DEBUG were set.
3321 - FindDeflate.cmake: Correct code to retrieve library version information from libdeflate.h
3322 - FindLERC.cmake version string return added.
3323
3324 2023-05-24 Benjamin Buch <[email protected]>
3325
3326 prefer shared over static.
3327
3328 check if upstream zstd config was used and bind to it if so.
3329
3330 2023-05-24 Even Rouault <[email protected]>
3331
3332 Merge branch 'master' into 'master'
3333 make WebP component name compatible with upstream ConfigWebP.cmake
3334
3335 See merge request libtiff/libtiff!492
3336
3337 2023-05-24 Benjamin Buch <[email protected]>
3338
3339 CMake: make WebP component name compatible with upstream ConfigWebP.cmake
3340
3341 2023-05-18 Su_Laus <[email protected]>
3342
3343 Prepare release 4.5.1 - Update till 18.05.23 after fix_559_DNG_1.6_passcount_error
3344
3345 Prepare release 4.5.1.
3346
3347 2023-05-18 Even Rouault <[email protected]>
3348
3349 Merge branch 'fix_559_DNG_1.6_passcount_error' into 'master'
3350 Fix #559 DNG 1.6 passcount assertion
3351
3352 Closes #574 et #559
3353
3354 See merge request libtiff/libtiff!489
3355
3356 2023-05-18 Even Rouault <[email protected]>
3357
3358 Merge branch 'fix_557_TagExtender_for_CustomDirectories_not_possible' into 'master'
3359 manpage: TIFFSetTagExtender() cannot add tags to custom directories. Closes #557.
3360
3361 Closes #557
3362
3363 See merge request libtiff/libtiff!490
3364
3365 2023-05-18 Even Rouault <[email protected]>
3366
3367 Merge branch 'fix_559_DNG_1.6_passcount_error' into 'master'
3368 Fix #559 DNG 1.6 passcount assertion
3369
3370 Closes #574 et #559
3371
3372 See merge request libtiff/libtiff!489
3373
3374 2023-05-18 Even Rouault <[email protected]>
3375
3376 Merge branch 'fix_557_TagExtender_for_CustomDirectories_not_possible' into 'master'
3377 manpage: TIFFSetTagExtender() cannot add tags to custom directories. Closes #557.
3378
3379 Closes #557
3380
3381 See merge request libtiff/libtiff!490
3382
3383 2023-05-17 Su_Laus <[email protected]>
3384
3385 Documentation update: TIFFSetTagExtender() cannot add tags to custom directories.
3386 Closes #557.
3387
3388 2023-05-16 Even Rouault <[email protected]>
3389
3390 Merge branch 'fix_558' into 'master'
3391 Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of TIFFOpen()...
3392
3393 See merge request libtiff/libtiff!488
3394
3395 2023-05-16 Su_Laus <[email protected]>
3396
3397 Fix #559 DNG 1.6 passcount assertion.
3398 Amend DNG tags definition introduced with MR 482:
3399 - DNG 1.6 tags specified as UTF-8 strings are defined as variable TIFF_BYTE with passcount=TRUE.
3400 - For all tags with TIFF_SETGET_C32_UINT8 the readcount and writecount were corrected to -3 (TIFF_VARIABLE2).
3401
3402 Testprogram to write and read all tags defined within LibTIFF is introduced.
3403 It also checks for valid passcount flag setting for the defined tags but some special tags are excluded from that check.
3404
3405 Closes #559.
3406
3407 2023-05-09 Even Rouault <[email protected]>
3408
3409 Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of TIFFOpen() to warn and an alias of FILLORDER_MSB2LSB
3410
3411 tif_lerc.c: use WORDS_BIGENDIAN instead of HOST_BIGENDIAN.
3412
3413 2023-05-07 Even Rouault <[email protected]>
3414
3415 Merge branch 'fix_484_TIFFDirectory_32_64_bit' into 'master'
3416 Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 bits.
3417
3418 Closes #484
3419
3420 See merge request libtiff/libtiff!471
3421
3422 2023-05-07 Even Rouault <[email protected]>
3423
3424 Merge branch 'DNG_1.6_EP_tags' into 'master'
3425 Add DNG tags up to version 1.6.0.0 and some TIFF/EP tags and update documentation
3426
3427 See merge request libtiff/libtiff!482
3428
3429 2023-05-07 Even Rouault <[email protected]>
3430
3431 Merge branch 'issue547' into 'master'
3432 do not install libtiff-4.pc when tiff-install is reset
3433
3434 Closes #547
3435
3436 See merge request libtiff/libtiff!481
3437
3438 2023-05-06 Even Rouault <[email protected]>
3439
3440 Merge branch 'fix_548' into 'master'
3441 LZWDecode(): avoid crash when trying to read again from a strip with a...
3442
3443 Closes #548
3444
3445 See merge request libtiff/libtiff!484
3446
3447 2023-05-06 Even Rouault <[email protected]>
3448
3449 Merge branch 'tiffcrop_fix_553_multi-image-errors' into 'master'
3450 tiffcrop: fix 553 by considering error return of writeSelections()
3451
3452 Closes #553
3453
3454 See merge request libtiff/libtiff!485
3455
3456 2023-05-06 Even Rouault <[email protected]>
3457
3458 Merge branch 'tif_ojpeg_fix-554_FPE' into 'master'
3459 tif_ojpeg.c fix 554 by checking for division by zero
3460
3461 Closes #554
3462
3463 See merge request libtiff/libtiff!486
3464
3465 2023-05-06 Su Laus <[email protected]>
3466
3467 tif_ojpeg.c fix 554 by checking for division by zero.
3468
3469 2023-05-05 Su_Laus <[email protected]>
3470
3471 Consider error return of writeSelections(). Fixes #553.
3472
3473 2023-04-29 Even Rouault <[email protected]>
3474
3475 LZWDecode(): avoid crash when trying to read again from a strip with a missing end-of-information marker (fixes #548)
3476
3477 2023-04-25 Su_Laus <[email protected]>
3478
3479 Add DNG tags up to version 1.6.0.0 and some TIFF/EP tags and update documentation
3480 Amend MR !337 'Add support for DNG tags up to version 1.6.0.0 and some TIFF/EP tags' from Sami Liedes:
3481 - Set most tags to OkToChange=1.
3482 - Define BATTERYLEVEL tag as ASCII and convert values of rational variant to ASCII.
3483 - TIFF documentation updated for tags recognized by LibTiff (DNG 1.6 and others).
3484 - TIFF/EP tags added, which are equivalent to EXIF tags. This addresses part of #418 as well.
3485 - Definition of tags reformatted (clang-format off) for better readability of tag comments in tiff.h and tif_dirinfo.c
3486
3487 2023-04-23 Roman <[email protected]>
3488
3489 do not install libtiff-4.pc when tiff-install is reset.
3490
3491 2023-04-21 Even Rouault <[email protected]>
3492
3493 Merge branch 'mymaster1' into 'master'
3494 fix runtime error: applying zero offset to null pointer
3495
3496 See merge request libtiff/libtiff!479
3497
3498 2023-04-21 xiaoxiaoafeifei <[email protected]>
3499
3500 countInkNamesString(): fix `UndefinedBehaviorSanitizer`: applying zero offset to null pointer
3501
3502 2023-03-26 Even Rouault <[email protected]>
3503
3504 Merge branch 'tif_ovrcache_TIFFSetSubDirectory' into 'master'
3505 tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573)
3506
3507 See merge request libtiff/libtiff!478
3508
3509 2023-03-26 Even Rouault <[email protected]>
3510
3511 tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573)
3512
3513 2023-03-26 Even Rouault <[email protected]>
3514
3515 Merge branch 'even_faster_setdirectory_with_IFDlist' into 'master'
3516 Even faster TIFFSetDirectory() using IFD list.
3517
3518 See merge request libtiff/libtiff!477
3519
3520 2023-03-26 Su Laus <[email protected]>
3521
3522 Even faster TIFFSetDirectory() using IFD list.
3523
3524 2023-03-12 Even Rouault <[email protected]>
3525
3526 Merge branch 'faster-setdirectory_newMR' into 'master'
3527 Optimize relative seeking with TIFFSetDirectory
3528
3529 See merge request libtiff/libtiff!474
3530
3531 2023-03-12 Su Laus <[email protected]>
3532
3533 Optimize relative seeking with TIFFSetDirectory.
3534
3535 2023-03-11 Even Rouault <[email protected]>
3536
3537 Merge branch 'master' into 'master'
3538 Fix memory leak in tiffcrop.c
3539
3540 See merge request libtiff/libtiff!475
3541
3542 2023-03-08 zhailiangliang <[email protected]>
3543
3544 Fix memory leak in tiffcrop.c.
3545
3546 2023-02-23 Even Rouault <[email protected]>
3547
3548 Merge branch 'skip-thumbnail-test' into 'master'
3549 test: avoid running tool tests if not built
3550
3551 Closes #421
3552
3553 See merge request libtiff/libtiff!334
3554
3555 2023-02-22 Sam James <[email protected]>
3556
3557 test (cmake): skip script tests if tools aren't built.
3558 In Gentoo, we avoid building the tools for multilib (32-bit, x86) builds on
3559 amd64/x86_64 because we only need the library to keep binary applications working.
3560
3561 This causes a test failure in e.g. tiffcp-thumbnail.sh as the 'thumbnail'
3562 binary isn't built. Skip it if unavailable.
3563
3564 Fixes: https://gitlab.com/libtiff/libtiff/-/issues/421
3565
3566 2023-02-22 Sam James <[email protected]>
3567
3568 test (autotools): skip script tests if tools aren't built.
3569 In Gentoo, we avoid building the tools for multilib (32-bit, x86) builds on
3570 amd64/x86_64 because we only need the library to keep binary applications working.
3571
3572 This causes a test failure in e.g. tiffcp-thumbnail.sh as the 'thumbnail'
3573 binary isn't built. Skip it if unavailable.
3574
3575 Fixes: https://gitlab.com/libtiff/libtiff/-/issues/421
3576
3577 2023-02-16 Even Rouault <[email protected]>
3578
3579 Merge branch 'fix_Unlink_first_directory_0' into 'master'
3580 Fix TIFFUnlinkDirectory(0) case and unlink of first directory.
3581
3582 See merge request libtiff/libtiff!460
3583
3584 2023-02-16 Even Rouault <[email protected]>
3585
3586 Merge branch 'tif_luv_check_NaN_fix_#530' into 'master'
3587 tif_luv: Check and correct for NaN data in uv_encode().
3588
3589 Closes #530
3590
3591 See merge request libtiff/libtiff!473
3592
3593 2023-02-16 Su_Laus <[email protected]>
3594
3595 tif_luv: Check and correct for NaN data in uv_encode().
3596 Closes #530
3597
3598 See merge request !473
3599
3600 2023-02-14 Even Rouault <[email protected]>
3601
3602 Merge branch 'tiffcrop_dont_reuse_input_buffer_fix_527' into 'master'
3603 tiffcrop: Do not reuse input buffer for subsequent images. Fix issue 527
3604
3605 Closes #527
3606
3607 See merge request libtiff/libtiff!472
3608
3609 2023-02-14 Su_Laus <[email protected]>
3610
3611 tiffcrop: Do not reuse input buffer for subsequent images. Fix issue 527
3612 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.
3613
3614 Closes #527
3615
3616 2023-02-08 Su_Laus <[email protected]>
3617
3618 Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 bits.
3619 Closes #484
3620
3621 2023-02-08 Even Rouault <[email protected]>
3622
3623 Merge branch 'test_ifd_loop_detection_fix_CoverityScan_ln_55' into 'master'
3624 test_ifd_loop_detection: fix Coverity Scan issue CID 1520750: Null pointer...
3625
3626 See merge request libtiff/libtiff!470
3627
3628 2023-02-08 Su_Laus <[email protected]>
3629
3630 test_ifd_loop_detection: fix Coverity Scan issue CID 1520750: Null pointer dereferences (NULL_RETURNS) line 55.
3631
3632 2023-02-06 Even Rouault <[email protected]>
3633
3634 Merge branch 'tiffcrop_fix_CoverityScan_line_9676' into 'master'
3635 Fix Coverity Scan issue CID 1520761: Integer handling issues...
3636
3637 See merge request libtiff/libtiff!469
3638
3639 2023-02-06 Su_Laus <[email protected]>
3640
3641 Fix Coverity Scan issue CID 1520761: Integer handling issues (OVERFLOW_BEFORE_WIDEN) tiffcrop.c: 9676 in rotateImage()
3642
3643 2023-02-05 Even Rouault <[email protected]>
3644
3645 Merge branch 'tiffcrop_R270_fix#492' into 'master'
3646 tiffcrop: Amend rotateImage() not to toggle the input (main) image width and...
3647
3648 Closes #519, #518, #499, #495, #494, #493 et #492
3649
3650 See merge request libtiff/libtiff!465
3651
3652 2023-02-05 Su_Laus <[email protected]>
3653
3654 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.
3655 Closes #492 #493 #494 #495 #499 #518 #519
3656
3657 2023-02-05 Even Rouault <[email protected]>
3658
3659 Merge branch 'tiffcrop_correctly_update_buffersize_after_rotate_fix#520' into 'master'
3660 tiffcrop correctly update buffersize after rotateImage() fix#520
3661
3662 Closes #520
3663
3664 See merge request libtiff/libtiff!467
3665
3666 2023-02-05 Even Rouault <[email protected]>
3667
3668 Merge branch 'tiffcrop_composite_image_assumption_test_fix#496' into 'master'
3669 tiffcrop: added check for assumption on composite images (fixes #496)
3670
3671 Closes #501, #500, #498, #497 et #496
3672
3673 See merge request libtiff/libtiff!466
3674
3675 2023-02-05 Su Laus <[email protected]>
3676
3677 tiffcrop: added check for assumption on composite images (fixes #496)
3678 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.
3679
3680 Closes #496, #497, #498, #500, #501.
3681
3682 2023-02-04 Su_Laus <[email protected]>
3683
3684 tiffcrop correctly update buffersize after rotateImage() fix#520 -- enlarge buffsize and check integer overflow within rotateImage().
3685
3686 2023-02-04 Even Rouault <[email protected]>
3687
3688 Merge branch 'test_subidf_loop' into 'master'
3689 test_ifd_loop_detection: Added test to check loops in SubIFDs that are chained.
3690
3691 See merge request libtiff/libtiff!464
3692
3693 2023-02-04 Su Laus <[email protected]>
3694
3695 test_ifd_loop_detection: Added test to check loops in SubIFDs that are chained.
3696
3697 2023-02-04 Su_Laus <[email protected]>
3698
3699 Fix TIFFUnlinkDirectory(0) case and unlink of first directory.
3700 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.
3701
3702 In addition, the error case for dirn=0 is handled.
3703
3704 This MR fixes that by updating the base offset variables tif->tif_header.classic.tiff_diroff and tif->tif_header.big.tiff_diroff.
3705
3706 2023-02-03 Even Rouault <[email protected]>
3707
3708 Merge branch 'TiffClose_NULL_ptr_dereferencing_fix_515' into 'master'
3709 TIFFClose() avoid NULL pointer dereferencing. fix#515
3710
3711 Closes #515
3712
3713 See merge request libtiff/libtiff!468
3714
3715 2023-02-03 Su_Laus <[email protected]>
3716
3717 TIFFClose() avoid NULL pointer dereferencing. fix#515.
3718 Closes #515
3719
3720 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().
3721 Closes #520.
3722
3723 2023-01-25 Even Rouault <[email protected]>
3724
3725 Merge branch 'add_windows_DLL_versioninfo' into 'master'
3726 Add versioninfo resource files for DLL and tools compiled with Windows MSVC and MINGW.
3727
3728 See merge request libtiff/libtiff!455
3729
3730 2023-01-25 Su Laus <[email protected]>
3731
3732 Add versioninfo resource files for DLL and tools compiled with Windows MSVC and MINGW.
3733
3734 2023-01-22 Even Rouault <[email protected]>
3735
3736 Merge branch 'tif_hash_set_order_include' into 'master'
3737 tif_hash_set.c: include tif_hash_set.h after tif_config.h to let a chance for...
3738
3739 See merge request libtiff/libtiff!462
3740
3741 2023-01-22 Even Rouault <[email protected]>
3742
3743 tif_hash_set.c: include tif_hash_set.h after tif_config.h to let a chance for GDAL symbol renaming trick
3744
3745 2023-01-22 Even Rouault <[email protected]>
3746
3747 Merge branch 'fix_513' into 'master'
3748 Fax3: fix failure to decode some fax3 images (fixes #513)
3749
3750 Closes #513
3751
3752 See merge request libtiff/libtiff!461
3753
3754 2023-01-21 Even Rouault <[email protected]>
3755
3756 Add test for Fax3 decoding issues (refs #513)
3757
3758 2023-01-21 Even Rouault <[email protected]>
3759
3760 Merge branch 'tiffcrop_fix_#488' into 'master'
3761 tiffcrop: Correct simple copy paste error. Fix #488.
3762
3763 Closes #488
3764
3765 See merge request libtiff/libtiff!459
3766
3767 2023-01-21 Su Laus <[email protected]>
3768
3769 tiffcrop: Correct simple copy paste error. Fix #488.
3770
3771 2023-01-21 Even Rouault <[email protected]>
3772
3773 Fax3: fix failure to decode some fax3 images (fixes #513)
3774 Patch by @jsummers26
3775
3776 2023-01-12 Even Rouault <[email protected]>
3777
3778 Merge branch 'tiffmedian_fix_#477' into 'master'
3779 tiffmedian: avoid zero num_colors, fixes #477
3780
3781 Closes #477
3782
3783 See merge request libtiff/libtiff!458
3784
3785 2023-01-12 Even Rouault <[email protected]>
3786
3787 Merge branch 'fax2ps_fixes_#475' into 'master'
3788 fax2ps: fixes #475 buffer overflow in qsort function pcompar.
3789
3790 Closes #475
3791
3792 See merge request libtiff/libtiff!457
3793
3794 2023-01-12 Su_Laus <[email protected]>
3795
3796 tiffmedian: avoid zero num_colors, fixes #477.
3797
3798 fax2ps: fixes #475 buffer overflow in qsort function pcompar.
3799
3800 2023-01-09 Even Rouault <[email protected]>
3801
3802 Merge branch 'fix_241_tiffset_file_size_limit' into 'master'
3803 tiffset: get filesize to allocate only the required memory. Fixes issue #241
3804
3805 Closes #241
3806
3807 See merge request libtiff/libtiff!451
3808
3809 2023-01-09 Su Laus <[email protected]>
3810
3811 tiffset: get filesize to allocate only the required memory. Fixes issue #241
3812
3813 2023-01-09 Even Rouault <[email protected]>
3814
3815 Merge branch '_TIFFCleanupIFDOffsetAndNumberMaps' into 'master'
3816 Add _TIFFCleanupIFDOffsetAndNumberMaps() and call it from TIFFUnlinkDirectory()
3817
3818 See merge request libtiff/libtiff!454
3819
3820 2023-01-06 Even Rouault <[email protected]>
3821
3822 Remove use of tif_dirnumber.
3823
3824 TIFFSetSubDirectory(): call _TIFFCleanupIFDOffsetAndNumberMaps()
3825
3826 struct tiff: remove unused tif_dirlistoff.
3827
3828 TIFFUnlinkDirectory(): reset tif_dirnumber.
3829
3830 Add _TIFFCleanupIFDOffsetAndNumberMaps() and call it from TIFFUnlinkDirectory()
3831
3832 2022-12-29 Even Rouault <[email protected]>
3833
3834 Merge branch 'cmake_in_files_formatting_sensitive' into 'master'
3835 Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in...
3836
3837 See merge request libtiff/libtiff!452
3838
3839 2022-12-28 Su_Laus <[email protected]>
3840
3841 Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in because sensitive for CMake scripts. - explanation added
3842
3843 2022-12-26 Su_Laus <[email protected]>
3844
3845 Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in because sensitive for CMake scripts.
3846
3847 2022-12-19 Even Rouault <[email protected]>
3848
3849 Merge branch 'manpage_multi-page-TIFF' into 'master'
3850 manpage: Add multi page TIFF and SubIFDs description and read / write example.
3851
3852 See merge request libtiff/libtiff!450
3853
3854 2022-12-19 Su Laus <[email protected]>
3855
3856 manpage: Add multi page TIFF and SubIFDs description and read / write example.
3857
3858 2022-12-18 Even Rouault <[email protected]>
3859
3860 Merge branch 'TIFFOpen_r+_windows_behaviour' into 'master'
3861 Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux.
3862
3863 See merge request libtiff/libtiff!449
3864
3865 2022-12-16 Su_Laus <[email protected]>
3866
3867 Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux.
3868
3869 2022-12-15 Even Rouault <[email protected]>
3870
3871 Merge branch 'ossfuzz_54343' into 'master'
3872 TIFFSetDirectory: avoid harmless unsigned-integer-overflow
3873
3874 See merge request libtiff/libtiff!447
3875
3876 2022-12-15 Even Rouault <[email protected]>
3877
3878 TIFFSetDirectory: avoid harmless unsigned-integer-overflow.
3879 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54343
3880
3881 2022-12-14 Even Rouault <[email protected]>
3882
3883 Merge branch 'ossfuzz_54311' into 'master'
3884 TIFFWriteDirectorySec(): avoid harmless unsigned-integer-overflow
3885
3886 See merge request libtiff/libtiff!446
3887
3888 2022-12-14 Even Rouault <[email protected]>
3889
3890 TIFFWriteDirectorySec(): avoid harmless unsigned-integer-overflow.
3891 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54311
3892
3893 2022-12-14 Even Rouault <[email protected]>
3894
3895 libtiff v4.5.0rc2 preparation
3896
3897 2022-12-14 Su_Laus <[email protected]>
3898
3899 tiffinfo: update curdir from uint16_t to tdir_t for more than 64k IFD handling.
3900
3901 2022-12-13 Even Rouault <[email protected]>
3902
3903 Merge branch 'fix_502' into 'master'
3904 Make TIFFSetDirectory(tiff, 65534) work again (fixes #502)
3905
3906 Closes #502
3907
3908 See merge request libtiff/libtiff!436
3909
3910 2022-12-13 Even Rouault <[email protected]>
3911
3912 Add tests for IFD loop detection.
3913
3914 Fix IFD loop detection.
3915
3916 Use UINT_MAX.
3917
3918 Make TIFF_MAX_DIR_COUNT a autoconf/CMake setting.
3919
3920 2022-12-13 Even Rouault <[email protected]>
3921
3922 Merge branch 'build-shared-by-default' into 'master'
3923 Restore shared libraries by default
3924
3925 See merge request libtiff/libtiff!437
3926
3927 2022-12-13 shaun walbridge <[email protected]>
3928
3929 CMake: restore shared libraries by default for top-level build.
3930
3931 2022-12-12 Even Rouault <[email protected]>
3932
3933 Add a TIFF_MAX_DIR_COUNT public #define.
3934
3935 TIFFCurrentDirectory(), TIFFNumberOfDirectories(), TIFFSetDirectory(), TIFFUnlinkDirectory(): use tdir_t that is now a uint32_t, and raise limit of IFDs to 1048576
3936
3937 IFD loop checking: use hashmap to avoid quadratic performance.
3938
3939 Add a hashset/hashmap implementation (ported from GDAL's CPLHashSet)
3940
3941 Make TIFFSetDirectory(tiff, 65534) work again (fixes #502)
3942
3943 2022-12-11 Even Rouault <[email protected]>
3944
3945 Merge branch 'do_not_format_tiffvers_h' into 'master'
3946 Revert formatting of tiffvers.h and add TIFFLIB_MAJOR_VERSION, TIFFLIB_MINOR_VERSION, TIFFLIB_MICRO_VERSION defines
3947
3948 See merge request libtiff/libtiff!434
3949
3950 2022-12-11 Even Rouault <[email protected]>
3951
3952 Merge branch 'tiffcrop_exclude_some_comment_from_clang-format' into 'master'
3953 tiffcrop: Exclude some comments from clang-format
3954
3955 See merge request libtiff/libtiff!435
3956
3957 2022-12-11 Su Laus <[email protected]>
3958
3959 tiffcrop: Exclude some comments from clang-format.
3960
3961 2022-12-11 Even Rouault <[email protected]>
3962
3963 tiffvers.h.in: add clang-format off/on.
3964
3965 2022-12-10 Even Rouault <[email protected]>
3966
3967 tiffvers.h: add TIFFLIB_MAJOR_VERSION, TIFFLIB_MINOR_VERSION, TIFFLIB_MICRO_VERSION defines
3968 Also add a TIFFLIB_AT_LEAST() macro
3969
3970 tiffvers.h: revert formatting.
3971
3972 Exclude reformatting of tiffvers.h which breaks version detection for FindTIFF.cmake
3973
3974 2022-12-09 Even Rouault <[email protected]>
3975
3976 Merge branch 'release_4_5_0' into 'master'
3977 Prepare v4.5.0 release
3978
3979 See merge request libtiff/libtiff!433
3980
3981 2022-12-09 Even Rouault <[email protected]>
3982
3983 libtiff v4.5.0rc1 preparation
3984
3985 2022-12-08 Even Rouault <[email protected]>
3986
3987 Merge branch 'reformat' into 'master'
3988 Whole code-base reformatting
3989
3990 See merge request libtiff/libtiff!431
3991
3992 2022-12-08 Even Rouault <[email protected]>
3993
3994 Add .git-blame-ignore-revs.
3995
3996 tiffcrop: remove version_id and rev_date.
3997
3998 2022-12-08 pre-commit run by Even Rouault <[email protected]>
3999
4000 Reformatting in all other directories using 'pre-commit run'
4001
4002 Reformatting in test/ using 'pre-commit run'
4003
4004 Reformatting in tools/ using 'pre-commit run'
4005
4006 Reformatting in libtiff/ using 'pre-commit run'
4007
4008 2022-12-08 Even Rouault <[email protected]>
4009
4010 Add .clang-format, .pre-commit-config.yaml and CONTRIBUTING.md.
4011
4012 Remove vim/emacs formatting footers.
4013
4014 2022-11-29 Even Rouault <[email protected]>
4015
4016 Merge branch 'fix_489' into 'master'
4017 TIFFWriteRawStrip(): restore capabilities to append data in the current strip (fixes #489)
4018
4019 Closes #489
4020
4021 See merge request libtiff/libtiff!430
4022
4023 2022-11-29 Even Rouault <[email protected]>
4024
4025 Add test case for scenario of issue #489.
4026
4027 TIFFWriteRawStrip(): restore capabilities to append data in the current strip (fixes #489)
4028 This fixes a regression of libtiff 4.4.0
4029
4030 2022-11-29 Even Rouault <[email protected]>
4031
4032 Merge branch 'manpage_re-entrant_error_handler' into 'master'
4033 manpage update for re-entrant error handler TIFFErrorExtR(), TIFFOpenExt() and...
4034
4035 See merge request libtiff/libtiff!427
4036
4037 2022-11-29 Su Laus <[email protected]>
4038
4039 manpage update for re-entrant error handler TIFFErrorExtR(), TIFFOpenExt() and...
4040
4041 2022-11-27 Even Rouault <[email protected]>
4042
4043 Merge branch 'tiffcrop_fix_#169' into 'master'
4044 tiffcrop: Add check if (bps != 1) in writeSingleSection() for...
4045
4046 Closes #169
4047
4048 See merge request libtiff/libtiff!429
4049
4050 2022-11-27 Su Laus <[email protected]>
4051
4052 tiffcrop: Add check if (bps != 1) in writeSingleSection() for...
4053
4054 2022-11-26 Even Rouault <[email protected]>
4055
4056 Merge branch 'TIFFErrorExtR_fix_missing_calls' into 'master'
4057 TIFFErrorExt() was not replaced with TIFFErrorExtR() everywhere in libtiff....
4058
4059 See merge request libtiff/libtiff!428
4060
4061 2022-11-26 Su Laus <[email protected]>
4062
4063 TIFFErrorExt() was not replaced with TIFFErrorExtR() everywhere in libtiff....
4064
4065 2022-11-25 Even Rouault <[email protected]>
4066
4067 Merge branch 'tif_jpeg_build_fix' into 'master'
4068 tif_jpeg.c: fix compilation with MSVC (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
4069
4070 See merge request libtiff/libtiff!426
4071
4072 2022-11-25 Even Rouault <[email protected]>
4073
4074 tif_jpeg.c: fix compilation with MSVC (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
4075
4076 2022-11-25 Even Rouault <[email protected]>
4077
4078 Merge branch 'fix_0fd1a81d3547acb8f5be50bbbc3e44bde01c014b' into 'master'
4079 JPEGEncode(): fix wrong pointer data type with libjpeg-turbo 2.2dev in 12-bit mode
4080
4081 See merge request libtiff/libtiff!425
4082
4083 2022-11-25 Even Rouault <[email protected]>
4084
4085 JPEGEncode(): fix wrong pointer data type with libjpeg-turbo 2.2dev in 12-bit mode
4086 (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
4087
4088 2022-11-25 Even Rouault <[email protected]>
4089
4090 Merge branch 'libjpegturbo_dual' into 'master'
4091 Add support for libjpeg-turbo 2.2-dev 8/12 bit dual mode
4092
4093 See merge request libtiff/libtiff!422
4094
4095 2022-11-25 Even Rouault <[email protected]>
4096
4097 Add support for libjpeg-turbo 2.2-dev 8/12 bit dual mode.
4098
4099 2022-11-23 Even Rouault <[email protected]>
4100
4101 Merge branch 'windows-fix' into 'master'
4102 libtiff: Fix TIFFOpen* for the Windows platform in tif_unix.c
4103
4104 See merge request libtiff/libtiff!424
4105
4106 2022-11-23 Francois Bleibel <[email protected]>
4107
4108 libtiff: Fix TIFFOpen* for the Windows platform in tif_unix.c.
4109 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.
4110
4111 Verified: Tested libtiff on a local Windows build.
4112
4113 2022-11-23 Even Rouault <[email protected]>
4114
4115 Merge branch 'tiffcrop_signed_vs_unsigned' into 'master'
4116 tiffcrop.c: fix warning about signed vs unsigned comparison
4117
4118 See merge request libtiff/libtiff!423
4119
4120 2022-11-23 Even Rouault <[email protected]>
4121
4122 tiffcrop.c: fix warning about signed vs unsigned comparison.
4123
4124 2022-11-23 Even Rouault <[email protected]>
4125
4126 Merge branch 'TIFFClientOpenExt_warning_fix' into 'master'
4127 TIFFClientOpenExt(): fix warning on 32-bit platforms (master only)
4128
4129 See merge request libtiff/libtiff!421
4130
4131 2022-11-23 Even Rouault <[email protected]>
4132
4133 TIFFClientOpenExt(): fix warning on 32-bit platforms (master only)
4134
4135 2022-11-23 Even Rouault <[email protected]>
4136
4137 Merge branch 'tiffcp_TIFFOpenOptionsFree_memleak_fix' into 'master'
4138 tiffcp: fix leak of TIFFOpenOptionsAlloc() introduced in latest commit (master only)
4139
4140 See merge request libtiff/libtiff!420
4141
4142 2022-11-23 Even Rouault <[email protected]>
4143
4144 tiffcp: fix leak of TIFFOpenOptionsAlloc() introduced in latest commit (master only)
4145 Fixes Coverity CID 1517032
4146
4147 2022-11-23 Even Rouault <[email protected]>
4148
4149 Merge branch 'TIFFOpenOptionsSetMaxSingleMemAlloc' into 'master'
4150 Add TIFFOpenOptionsSetMaxSingleMemAlloc() to define a limit in bytes for a single memory allocation done by libtiff
4151
4152 See merge request libtiff/libtiff!419
4153
4154 2022-11-23 Even Rouault <[email protected]>
4155
4156 Emit explicit error message when tif_max_single_mem_alloc is exceeded.
4157
4158 test_open_options: test TIFFOpenOptionsSetMaxSingleMemAlloc()
4159
4160 Rename test_error_handlers to test_open_options.
4161
4162 tiffinfo, tiffcp, tiffcrop, tiffsplit, tiff2rgba, tiff2ps: use TIFFOpenOptionsSetMaxSingleMemAlloc()
4163
4164 Convert uses of _TIFFmalloc/realloc/calloc/free to the Ext functions.
4165
4166 2022-11-22 Even Rouault <[email protected]>
4167
4168 Add TIFFOpenOptionsSetMaxSingleMemAlloc()
4169 to define a limit in bytes for a single memory allocation done by libtiff.
4170
4171 Also add internal functions used in replacement of the non Ext ones:
4172 void* _TIFFmallocExt(TIFF* tif, tmsize_t s);
4173 void* _TIFFcallocExt(TIFF* tif, tmsize_t nmemb, tmsize_t siz);
4174 void* _TIFFreallocExt(TIFF* tif, void* p, tmsize_t s);
4175 void _TIFFfreeExt(TIFF* tif, void* p);
4176
4177 2022-11-22 Even Rouault <[email protected]>
4178
4179 Merge branch 'TIFFOpenEx' into 'master'
4180 Add TIFFOpenExt(), TIFFOpenWExt() and TIFFFdOpenExt() with re-entrant error handlers
4181
4182 See merge request libtiff/libtiff!413
4183
4184 2022-11-21 Even Rouault <[email protected]>
4185
4186 Remove TIFFSetErrorHandlerExtR() and TIFFSetWarningHandlerExtR() that were temporarily added in master
4187
4188 Add a _TIFFErrorEarly() function to be able to use the re-entrant error handler, even before TIFF* is valid
4189
4190 Rework TIFFOpenExt() and similar to use an opaque TIFFOpenOptions* opts argument, with alloc, free and setters
4191
4192 Document TIFFOpenExt, TIFFOpenWExt, TIFFFdOpenExt, TIFFClientOpenExt, TIFFSetErrorHandlerExtR, TIFFSetWarningHandlerExtR
4193
4194 2022-11-21 Even Rouault <[email protected]>
4195
4196 Add TIFFOpenExt(), TIFFOpenWExt() and TIFFFdOpenExt() with re-entrant error handlers
4197 Rename TIFFClientOpenEx() to TIFFClientOpenExt()
4198
4199 Rework signature of the re-entrant error handlers and of
4200 TIFFSetWarningHandlerExt() and TIFFSetErrorHandlerExt()
4201
4202 Use structures that can be extended as extra argument.
4203
4204 Leverages and amends https://gitlab.com/libtiff/libtiff/-/merge_requests/409
4205
4206 2022-11-21 Even Rouault <[email protected]>
4207
4208 Merge branch 'manpage_fix485_file-descriptor_clientdata' into 'master'
4209 manpage: Correct description of file handle/descriptors tif_fd and tif_clientdata. Closes #485.
4210
4211 Closes #485
4212
4213 See merge request libtiff/libtiff!418
4214
4215 2022-11-21 Su Laus <[email protected]>
4216
4217 manpage: Correct description of file handle/descriptors tif_fd and tif_clientdata. Closes #485.
4218
4219 2022-11-20 Even Rouault <[email protected]>
4220
4221 Merge branch 'manpage_fix440_fix28_TIFFOpen_SubIFD_update' into 'master'
4222 manpage: fix28, fix440, update TIFFOpen and SubIFD
4223
4224 Closes #440 et #28
4225
4226 See merge request libtiff/libtiff!417
4227
4228 2022-11-20 Su Laus <[email protected]>
4229
4230 manpage: fix28, fix440, update TIFFOpen and SubIFD.
4231
4232 2022-11-17 Even Rouault <[email protected]>
4233
4234 Merge branch 'cmake_tiff_install_warning' into 'master'
4235 CMakeLists.txt: fix warning with -Wdev
4236
4237 See merge request libtiff/libtiff!416
4238
4239 2022-11-13 Even Rouault <[email protected]>
4240
4241 CMakeLists.txt: fix warning with -Wdev.
4242 ```
4243 CMake Warning (dev) at CMakeLists.txt:62 (option):
4244 Policy CMP0077 is not set: option() honors normal variables. Run "cmake
4245 --help-policy CMP0077" for policy details. Use the cmake_policy command to
4246 set the policy and suppress this warning.
4247
4248 For compatibility with older versions of CMake, option is clearing the
4249 normal variable 'tiff-install'.
4250 This warning is for project developers. Use -Wno-dev to suppress it.
4251 ```
4252
4253 2022-11-12 Even Rouault <[email protected]>
4254
4255 Merge branch 'fix_479' into 'master'
4256 _TIFFReadEncodedTileAndAllocBuffer(): avoid excessive memory allocation on...
4257
4258 See merge request libtiff/libtiff!412
4259
4260 2022-11-12 Even Rouault <[email protected]>
4261
4262 Merge branch 'typo_fix' into 'master'
4263 tif_dirread.c: fix typo in comment
4264
4265 See merge request libtiff/libtiff!414
4266
4267 2022-11-12 Even Rouault <[email protected]>
4268
4269 tif_dirread.c: fix typo in comment.
4270
4271 2022-11-11 Even Rouault <[email protected]>
4272
4273 _TIFFReadEncodedTileAndAllocBuffer(): avoid excessive memory allocation on broken files (fixes #479)
4274
4275 2022-11-10 Even Rouault <[email protected]>
4276
4277 Merge branch 'bugfix/tiff2pdf-stdout' into 'master'
4278 tiff2pdf Don't try to seek into stdout.
4279
4280 See merge request libtiff/libtiff!367
4281
4282 2022-11-10 Claus-Justus Heine <[email protected]>
4283
4284 tiff2pdf: Don't try to seek into stdout.
4285 Fixes #441
4286
4287 2022-11-08 Even Rouault <[email protected]>
4288
4289 Merge branch 'fix_coverity_1516759' into 'master'
4290 TIFFErrorExtR(): fix Dereference after null check (CID 1516759)
4291
4292 See merge request libtiff/libtiff!411
4293
4294 2022-11-08 Even Rouault <[email protected]>
4295
4296 Merge branch 'fix_ossfuzz_53137' into 'master'
4297 TIFFReadRGBATileExt(): fix (unsigned) integer overflow on strips/tiles > 2 GB
4298
4299 See merge request libtiff/libtiff!410
4300
4301 2022-11-08 Even Rouault <[email protected]>
4302
4303 TIFFErrorExtR(): fix Dereference after null check (CID 1516759)
4304
4305 2022-11-08 Even Rouault <[email protected]>
4306
4307 Merge branch 'no_sprintf' into 'master'
4308 Replace sprintf calls with snprintf
4309
4310 See merge request libtiff/libtiff!408
4311
4312 2022-11-08 Mark Mentovai <[email protected]>
4313
4314 Replace sprintf calls with snprintf.
4315 This makes it possible to build libtiff without warnings using the macOS
4316 13 SDK. Calls to sprintf are replaced with snprintf, passing appropriate
4317 buffer sizes.
4318
4319 It doesn’t appear that any of the changed uses of sprintf were actually
4320 unsafe, so no behavior change is expected aside from SDK compatibility.
4321
4322 The macOS 13 SDK deprecates sprintf as it’s difficult to use safely. The
4323 deprecation warning message is visible when building C++, but it is not
4324 normally visible when building plain C code due to a quirk in how
4325 sprintf is declared in the SDK. However, the deprecation message is
4326 visible when building plain C under Address Sanitizer
4327 (-fsanitize=address). This discrepancy was discovered at
4328 https://crbug.com/1381706 and reported to Apple with a copy at
4329 https://openradar.appspot.com/FB11761475.
4330
4331 The macOS 13 SDK is packaged in Xcode 14.1, released on 2022-11-01. This
4332 also affects the iOS 16 SDK and other 2022-era Apple OS SDKs packaged in
4333 Xcode 14.0, released on 2022-09-12.
4334
4335 libtiff is visible to the Chromium build via PDFium, and this change is
4336 needed to allow Chromium to move forward to the macOS 13 SDK.
4337
4338 This change is limited to the libtiff directory. Other uses of sprintf
4339 were found in contrib, test, and tools.
4340
4341 2022-11-08 Even Rouault <[email protected]>
4342
4343 Merge branch 'reentrant' into 'master'
4344 Add reentrant error functions
4345
4346 See merge request libtiff/libtiff!409
4347
4348 2022-11-08 Even Rouault <[email protected]>
4349
4350 TIFFReadRGBATileExt(): fix (unsigned) integer overflow on strips/tiles > 2 GB
4351 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53137
4352
4353 2022-11-08 Laramie Leavitt <[email protected]>
4354
4355 Add reentrant error functions.
4356 Prior to this change, libtiff relied on global error handlers,
4357 which is problematic when libtiff used by multiple independent
4358 libraries from within the same process, as they may unwittingly
4359 clobber the error handling, introduce race conditions when setting
4360 handlers, or otherwise have unintended side effects.
4361
4362 This change adds error handlers to the TIFF struct, which are
4363 used preferentially when available. The error handlers are invoked
4364 when the re-entrant error functions are called:
4365
4366 void TIFFErrorExtR(TIFF*, const char* module, const char* fmt, ...)
4367 void TIFFWarningExtR(TIFF*, const char* module, const char* fmt, ...)
4368
4369 The handlers have a similar signature to the existing extended
4370 handlers, additionally returning an int:
4371
4372 int TIFFErrorHandlerExtR(thandle_t, const char*, const char*, va_list)
4373
4374 thandle_t is the userdata passed to TIFFOpen
4375 When the handler returns 1, the global handlers are not called.
4376
4377 Custom error/warning handlers may be installed on a per-file
4378 basis by calling the Set functions:
4379
4380 TIFF* tif = TIFFOpen(...);
4381 TIFFSetErrorHandlerExtR(tif, MyErrorHandler);
4382 TIFFSetWarningHandlerExtR(tif, MyWarningHandler);
4383
4384 Additionally, the callsites to TIFFErrorExt and TIFFWarningExt
4385 have been updated to call the reentrant versions.
4386
4387 2022-11-08 Even Rouault <[email protected]>
4388
4389 Merge branch 'tiffcrop_fix_CoverityScan_tmsize_issue' into 'master'
4390 tiffcrop: should fix some Coverity Scan issues OVERFLOW_BEFORE_WIDEN
4391
4392 See merge request libtiff/libtiff!403
4393
4394 2022-11-08 Su Laus <[email protected]>
4395
4396 tiffcrop: should fix some Coverity Scan issues OVERFLOW_BEFORE_WIDEN.
4397
4398 2022-11-02 Even Rouault <[email protected]>
4399
4400 Merge branch 'typo_fix' into 'master'
4401 tif_dirread.c: fix typo in comment
4402
4403 See merge request libtiff/libtiff!407
4404
4405 2022-11-02 Even Rouault <[email protected]>
4406
4407 tif_dirread.c: fix typo in comment.
4408
4409 2022-10-23 Even Rouault <[email protected]>
4410
4411 Merge branch 'tiffcrop_formatting_fix' into 'master'
4412 tiffcrop: add casts in TIFFError() to fix compiler warnings
4413
4414 See merge request libtiff/libtiff!406
4415
4416 2022-10-23 Even Rouault <[email protected]>
4417
4418 Merge branch 'fix_482' into 'master'
4419 CMake: correctly set default value of 'lzma' option when liblzma is detected (fixes #482)
4420
4421 Closes #482
4422
4423 See merge request libtiff/libtiff!404
4424
4425 2022-10-23 Even Rouault <[email protected]>
4426
4427 tiffcrop: add casts in TIFFError() to fix compiler warnings.
4428
4429 CMake: correctly set default value of 'lzma' option when liblzma is detected (fixes #482)
4430
4431 2022-10-20 Even Rouault <[email protected]>
4432
4433 Merge branch 'fix_480' into 'master'
4434 Fix incorrect printf() formatters introduced in recent commits (fixes #480)
4435
4436 Closes #480
4437
4438 See merge request libtiff/libtiff!401
4439
4440 2022-10-19 Even Rouault <[email protected]>
4441
4442 Fix incorrect printf() formatters introduced in recent commits (fixes #480)
4443
4444 2022-10-13 Even Rouault <[email protected]>
4445
4446 Merge branch 'CLIPPATH_tags_corrected' into 'master'
4447 CLIPPATH tags defined twice but differently and also wrongly (#439) - corrected
4448
4449 Closes #439
4450
4451 See merge request libtiff/libtiff!366
4452
4453 2022-10-13 Even Rouault <[email protected]>
4454
4455 Merge branch 'FIELD_IGNORE_warning-messages' into 'master'
4456 Warning messages for FIELD_IGNORE tags for writing and for TIFF_SETGET_UNDEFINED for reading added. (#438)
4457
4458 Closes #438
4459
4460 See merge request libtiff/libtiff!365
4461
4462 2022-10-13 Su Laus <[email protected]>
4463
4464 Warning messages for FIELD_IGNORE tags for writing and for TIFF_SETGET_UNDEFINED for reading added. (#438)
4465
4466 2022-10-13 Even Rouault <[email protected]>
4467
4468 Merge branch 'tag-def_COMPRESSION_corrected' into 'master'
4469 tif_dirinfo.c TIFFTAG_COMPRESSION and _BITSPERSAMPLE definition corrected
4470
4471 See merge request libtiff/libtiff!364
4472
4473 2022-10-13 Even Rouault <[email protected]>
4474
4475 Merge branch 'fix_getopt_included_twice' into 'master'
4476 Fix including module getopt.c twice with CMake and HAVE_GETOPT=false
4477
4478 See merge request libtiff/libtiff!381
4479
4480 2022-10-13 Even Rouault <[email protected]>
4481
4482 Merge branch 'tiffcrop_CoverityScan_fix_PRINTF_ARGS' into 'master'
4483 tiffcrop: fix Coverity Scan issues about PRINTF_ARGS.
4484
4485 See merge request libtiff/libtiff!400
4486
4487 2022-10-13 Su_Laus <[email protected]>
4488
4489 tiffcrop fix Coverity Scan issues about PRINTF_ARGS.
4490
4491 2022-10-13 Even Rouault <[email protected]>
4492
4493 Merge branch 'tiffcrop_fix_#450_too-many-mode-options' into 'master'
4494 tiffcrop: fix #450 too many 'mode' options on command line.
4495
4496 Closes #470 et #450
4497
4498 See merge request libtiff/libtiff!384
4499
4500 2022-10-13 Su Laus <[email protected]>
4501
4502 tiffcrop: fix #450 too many 'mode' options on command line.
4503
4504 2022-10-13 Even Rouault <[email protected]>
4505
4506 Merge branch 'tiffcrop_fix_#435' into 'master'
4507 tiffcrop subroutines require a larger buffer (fixes #271, #381, #386, #388, #389, #435)
4508
4509 Closes #465, #464, #435, #389, #388, #386, #381 et #271
4510
4511 See merge request libtiff/libtiff!382
4512
4513 2022-10-13 Su Laus <[email protected]>
4514
4515 tiffcrop subroutines require a larger buffer (fixes #271, #381, #386, #388, #389, #435)
4516
4517 2022-10-12 Even Rouault <[email protected]>
4518
4519 Merge branch 'InkNames_NumberOfInks_handling_revised' into 'master'
4520 Revised handling of TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value (fixes #149, #150, #152, #168, #250, #269, #398 and #456)
4521
4522 Closes #474, #463, #387, #456, #398, #269, #250, #168, #152, #150 et #149
4523
4524 See merge request libtiff/libtiff!385
4525
4526 2022-10-12 Even Rouault <[email protected]>
4527
4528 Merge branch 'tiffcrop_fix_#411_#413' into 'master'
4529 tiffcrop: disable incompatibility of -Z, -X, -Y, -z options with any PAGE_MODE_x option (fixes #411, #413 and #426)
4530
4531 Closes #426, #413 et #411
4532
4533 See merge request libtiff/libtiff!383
4534
4535 2022-10-10 Even Rouault <[email protected]>
4536
4537 Merge branch 'TIFFAdvanceDirectory_mapped_uio' into 'master'
4538 TIFFAdvanceDirectory(): fix unsigned-integer-overflow in mapped case
4539
4540 See merge request libtiff/libtiff!398
4541
4542 2022-10-10 Even Rouault <[email protected]>
4543
4544 TIFFAdvanceDirectory(): fix unsigned-integer-overflow in mapped case.
4545 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52309
4546
4547 2022-10-08 Even Rouault <[email protected]>
4548
4549 Merge branch 'tiffinfo_parse_SubIFDs' into 'master'
4550 tiffinfo: Updated to parse through SubIFDs and show their tags.
4551
4552 See merge request libtiff/libtiff!396
4553
4554 2022-10-08 Su Laus <[email protected]>
4555
4556 tiffinfo: Updated to parse through SubIFDs and show their tags.
4557
4558 2022-10-07 Roger Leigh <[email protected]>
4559
4560 Merge branch 'master' into 'master'
4561 Moved linking of CMath::CMath into CMath_LIBRARY check
4562
4563 See merge request libtiff/libtiff!397
4564
4565 2022-10-07 Frei Herr <[email protected]>
4566
4567 Moved linking of CMath::CMath into CMath_LIBRARY check.
4568
4569 2022-10-06 Even Rouault <[email protected]>
4570
4571 Merge branch 'rational_precision2double_coverity-fix' into 'master'
4572 rational_precision2double.c: Fix issue from Coverity Scan.
4573
4574 See merge request libtiff/libtiff!395
4575
4576 2022-10-06 Su_Laus <[email protected]>
4577
4578 rational_precision2double.c: Fix issue from Coverity Scan.
4579
4580 Fix including module getopt.c twice with CMake and HAVE_GETOPT=false.
4581 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.
4582 This can be avoided by including getopt.c as source in port.lib within port\CMakeLists.txt not with PUBLIC but with PRIVATE.
4583
4584 2022-10-06 Even Rouault <[email protected]>
4585
4586 Merge branch 'fix-455_Improved-IFD-loop-handling' into 'master'
4587 Improved IFD-Loop Handling (fixes #455)
4588
4589 Closes #455
4590
4591 See merge request libtiff/libtiff!386
4592
4593 2022-10-06 Su Laus <[email protected]>
4594
4595 Improved IFD-Loop Handling (fixes #455)
4596 IFD infinite looping was not fixed by MR 20 (see #455).
4597 An improved IFD loop handling is proposed.
4598
4599 Basic approach:
4600
4601 - The order in the entire chain must be checked, and not only whether an offset has already been read once.
4602 - To do this, pairs of directory number and offset are stored and checked.
4603 - The offset of a directory number can change.
4604 - TIFFAdvanceDirectory() must also perform an IFD loop check.
4605 - TIFFCheckDirOffset() is replaced by _TIFFCheckDirNumberAndOffset().
4606
4607 Rules for the check:
4608
4609 - If an offset is already in the list, it must have the same IFD number. Otherwise it is an IDF loop.
4610 - 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.
4611 - Otherwise, the offset of the IFD number is updated.
4612
4613 Reference is also made to old bugzilla bug 2772 and MR 20, which did not solve the general issue.
4614 This MR closes #455
4615
4616 2022-10-05 Roger Leigh <[email protected]>
4617
4618 Merge branch 'fix-cmake-subproject' into 'master'
4619 Fix CMake build to be compatible with FetchContent
4620
4621 See merge request libtiff/libtiff!394
4622
4623 2022-10-04 Timothy Lyanguzov <[email protected]>
4624
4625 Apply 9 suggestion(s) to 3 file(s)
4626
4627 2022-10-04 Jeremy Maitin-Shepard <[email protected]>
4628
4629 Fix CMake build to be compatible with FetchContent.
4630 Recent versions of CMake have improved support for including
4631 dependencies, using the FetchContent module, which allows a dependency
4632 to be imported as a subproject and then later found automatically by
4633 calls to `find_package`.
4634
4635 This change makes libtiff's CMake better behaved when used as a
4636 sub-project:
4637
4638 - CMake has a single global namespace for all target names in all
4639 sub-projects. This commit renames the following CMake targets:
4640
4641 - port -> tiff_port
4642 - mkg3states -> tiff_mkg3states
4643 - faxtable -> tiff_faxtable
4644 - release -> tiff_release
4645
4646 - When building TIFF as a sub-project, it is not normally useful to
4647 create install rules for its targets. This commit adds a
4648 `tiff-install` option that controls whether the install rules are
4649 added and defaults to OFF when libtiff is included as a sub-project.
4650
4651 - Previously, libtiff set `BUILD_SHARED_LIBS` to ON by default. With
4652 this commit, that default is only set if libtiff is the top-level
4653 project.
4654
4655 - When using `find_package(TIFF)`, the targets `TIFF::TIFF` and
4656 `TIFF::CXX` are defined. This commit makes libtiff itself define
4657 those targets as aliases, to allow other cmake projects to use
4658 either `find_package` or `FetchContent` interchangeably.
4659
4660 - Adds ZSTD_HAVE_DECOMPRESS_STREAM variable which may be set to bypass
4661 `check_symbol_exists` call. Fixes
4662 https://gitlab.com/libtiff/libtiff/-/issues/472.
4663
4664 2022-09-27 Even Rouault <[email protected]>
4665
4666 Merge branch 'getimage_overflow' into 'master'
4667 Update getimage to support reading large raster images
4668
4669 See merge request libtiff/libtiff!389
4670
4671 2022-09-26 Even Rouault <[email protected]>
4672
4673 Merge branch 'MinGW-warnings_ipctutil' into 'master'
4674 Fix #458: MinGW Windows 64: warning because 'long' is a 32 bits type in...
4675
4676 Closes #458
4677
4678 See merge request libtiff/libtiff!391
4679
4680 2022-09-26 Su Laus <[email protected]>
4681
4682 Fix #458: MinGW Windows 64: warning because 'long' is a 32 bits type in...
4683
4684 2022-09-16 Eric Siegel <[email protected]>
4685
4686 Update getimage to support large raster images.
4687
4688 2022-09-08 Even Rouault <[email protected]>
4689
4690 Merge branch 'typo_fix' into 'master'
4691 tif_lzw.c: fix typo in code comment
4692
4693 See merge request libtiff/libtiff!387
4694
4695 2022-09-08 Even Rouault <[email protected]>
4696
4697 tif_lzw.c: fix typo in code comment.
4698
4699 2022-08-30 Su_Laus <[email protected]>
4700
4701 Revised handling of TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value
4702 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:
4703
4704 Behaviour for writing:
4705 `NumberOfInks` MUST fit to the number of inks in the `InkNames` string.
4706 `NumberOfInks` is automatically set when `InkNames` is set.
4707 If `NumberOfInks` is different to the number of inks within `InkNames` string, that will be corrected and a warning is issued.
4708 If `NumberOfInks` is not equal to samplesperpixel only a warning will be issued.
4709
4710 Behaviour for reading:
4711 When reading `InkNames` from a TIFF file, the `NumberOfInks` will be set automatically to the number of inks in `InkNames` string.
4712 If `NumberOfInks` is different to the number of inks within `InkNames` string, that will be corrected and a warning is issued.
4713 If `NumberOfInks` is not equal to samplesperpixel only a warning will be issued.
4714
4715 This allows the safe use of the NumberOfInks value to read out the InkNames without buffer overflow
4716
4717 This MR will close the following issues: #149, #150, #152, #168 (to be checked), #250, #269, #398 and #456.
4718
4719 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.
4720
4721 2022-08-25 Su_Laus <[email protected]>
4722
4723 tiffcrop: disable incompatibility of -Z, -X, -Y, -z options with any PAGE_MODE_x option (fixes #411 and #413)
4724 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.
4725
4726 Code analysis:
4727
4728 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[].
4729 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) .
4730
4731 Execution of the else-clause often leads to buffer-overflows.
4732
4733 Therefore, the above option combination is not supported and will be disabled to prevent those buffer-overflows.
4734
4735 The MR solves issues #411 and #413.
4736
4737 2022-08-21 Even Rouault <[email protected]>
4738
4739 Merge branch 'tiffcrop_S-option_mutually_exclusive' into 'master'
4740 tiffcrop: -S option mutually exclusive (fixes #349, #414, #422, #423, #424)
4741
4742 Closes #424, #423, #422, #414 et #349
4743
4744 See merge request libtiff/libtiff!378
4745
4746 2022-08-20 Su_Laus <[email protected]>
4747
4748 tiffcrop -S option: Make decision simpler.
4749
4750 2022-08-20 Even Rouault <[email protected]>
4751
4752 Merge branch 'remove_death_commented_code' into 'master'
4753 Remove dead code from tif_dirread.c, tif_dirwrite.c and tif_getimage.c
4754
4755 See merge request libtiff/libtiff!380
4756
4757 2022-08-20 Su Laus <[email protected]>
4758
4759 Remove dead code from tif_dirread.c, tif_dirwrite.c and tif_getimage.c.
4760
4761 2022-08-16 Even Rouault <[email protected]>
4762
4763 Merge branch 'coverity_fixes' into 'master'
4764 Silence Coverity Scan false positive warnings about out-of-bounds access
4765
4766 See merge request libtiff/libtiff!379
4767
4768 2022-08-16 Even Rouault <[email protected]>
4769
4770 tif_zip.c: silence Coverity Scan false positive warnings about out-of-bounds access (CID 1491190, 1491197, 1491201)
4771
4772 tif_dirread.c: silence Coverity Scan false positive warnings about out-of-bounds access (CID 1491182, 1491186)
4773
4774 2022-08-16 Even Rouault <[email protected]>
4775
4776 Merge branch 'default_tag_values_extended' into 'master'
4777 Presetting of default tag values extended (e.g. PlanarConfig). (fixes #449)
4778
4779 Closes #449
4780
4781 See merge request libtiff/libtiff!377
4782
4783 2022-08-16 Su Laus <[email protected]>
4784
4785 Presetting of default tag values extended (e.g. PlanarConfig). (fixes #449)
4786
4787 2022-08-15 Su_Laus <[email protected]>
4788
4789 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.
4790 This is now checked and ends tiffcrop if those arguments are not mutually exclusive.
4791
4792 This MR will fix the following tiffcrop issues: #349, #414, #422, #423, #424
4793
4794 2022-08-09 Even Rouault <[email protected]>
4795
4796 Merge branch 'warning_fix' into 'master'
4797 Fix warning about shadowing
4798
4799 See merge request libtiff/libtiff!376
4800
4801 2022-08-09 Even Rouault <[email protected]>
4802
4803 Fix warning about shadowing.
4804
4805 2022-08-09 Even Rouault <[email protected]>
4806
4807 Merge branch 'fix_225' into 'master'
4808 Deal with RichTIFFIPTC tag written with LONG type (fixes #225)
4809
4810 Closes #225
4811
4812 See merge request libtiff/libtiff!374
4813
4814 2022-08-09 Even Rouault <[email protected]>
4815
4816 Merge branch 'Writing_IFD8_to_ClassicTIFF_bugfix' into 'master'
4817 Correcting defects reported by Coverity Scan for MR !369
4818
4819 See merge request libtiff/libtiff!375
4820
4821 2022-08-09 Su Laus <[email protected]>
4822
4823 Correcting defects reported by Coverity Scan for MR !369.
4824
4825 2022-08-09 Even Rouault <[email protected]>
4826
4827 Merge branch 'fix_442_Writing_IFD8_to_ClassicTIFF' into 'master'
4828 TIFFSetValue(): Writing IFD8 & LONG8 tags to ClassicTIFF corrected (fixes #442)
4829
4830 Closes #442
4831
4832 See merge request libtiff/libtiff!369
4833
4834 2022-08-09 Su Laus <[email protected]>
4835
4836 TIFFSetValue(): Writing IFD8 & LONG8 tags to ClassicTIFF corrected (fixes #442)
4837
4838 2022-08-09 Even Rouault <[email protected]>
4839
4840 Deal with RichTIFFIPTC tag written with LONG type (fixes #225)
4841
4842 2022-08-07 Roger Leigh <[email protected]>
4843
4844 Merge branch 'manpage-functions-added' into 'master'
4845 doc: Missing public functions added to TIFF documentation in Sphinx
4846
4847 See merge request libtiff/libtiff!372
4848
4849 2022-08-07 Su Laus <[email protected]>
4850
4851 doc: Missing public functions added to TIFF documentation in Sphinx.
4852
4853 2022-07-29 Even Rouault <[email protected]>
4854
4855 Merge branch 'tifjpeg_version_check' into 'master'
4856 tif_jpeg.c: allow to pass -DEXPECTED_JPEG_LIB_VERSION=number to do optional...
4857
4858 See merge request libtiff/libtiff!373
4859
4860 2022-07-29 Even Rouault <[email protected]>
4861
4862 tif_jpeg.c: allow to pass -DEXPECTED_JPEG_LIB_VERSION=number to do optional compile-time version check
4863
4864 2022-07-21 Even Rouault <[email protected]>
4865
4866 Merge branch 'TIFFReadFromUserBuffer_fix' into 'master'
4867 TIFFReadFromUserBuffer(): fix clearing of TIFF_CODERSETUP flag that could...
4868
4869 See merge request libtiff/libtiff!371
4870
4871 2022-07-21 Even Rouault <[email protected]>
4872
4873 TIFFReadFromUserBuffer(): fix clearing of TIFF_CODERSETUP flag that could cause issues with reading JPEG compressed files
4874
4875 2022-07-21 Roger Leigh <[email protected]>
4876
4877 Merge branch 'vs2022-fixes' into 'master'
4878 cmake: Correct duplicate definition of _CRT_SECURE_NO_WARNINGS
4879
4880 Closes #443
4881
4882 See merge request libtiff/libtiff!370
4883
4884 2022-07-13 Roger Leigh <[email protected]>
4885
4886 cmake: Correct duplicate definition of _CRT_SECURE_NO_WARNINGS.
4887
4888 2022-07-13 Even Rouault <[email protected]>
4889
4890 Merge branch 'vs2022-fixes' into 'master'
4891 cmake: Fixes for Visual Studio 2022
4892
4893 See merge request libtiff/libtiff!368
4894
4895 2022-07-13 Roger Leigh <[email protected]>
4896
4897 cmake: Fixes for Visual Studio 2022.
4898
4899 2022-07-03 Roger Leigh <[email protected]>
4900
4901 Merge branch 'elf-symbol-export' into 'master'
4902 Explicit export of versioned ELF symbols
4903
4904 Closes #437
4905
4906 See merge request libtiff/libtiff!361
4907
4908 2022-07-03 Even Rouault <[email protected]>
4909
4910 Merge branch 'fix_433' into 'master'
4911 _TIFFCheckFieldIsValidForCodec(): return FALSE when passed a codec-specific...
4912
4913 Closes #433
4914
4915 See merge request libtiff/libtiff!363
4916
4917 2022-07-01 Su_Laus <[email protected]>
4918
4919 CLIPPATH tags defined twice but differently and also wrongly.
4920 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.
4921 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.
4922
4923 The current definition is:
4924
4925 { TIFFTAG_CLIPPATH, -1, -3, TIFF_BYTE, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 1, "ClipPath", NULL },
4926 { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_SLONG, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
4927 { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_SBYTE, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
4928 { TIFFTAG_YCLIPPATHUNITS, 1, 1, TIFF_SLONG, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "YClipPathUnits", NULL },
4929
4930 Whereas the correct definition according to TIFF Specification Supplement 1 (https://www.awaresystems.be/imaging/tiff/specification/TIFFPM6.pdf) should be:
4931
4932 { TIFFTAG_CLIPPATH, -3, -3, TIFF_BYTE, 0, TIFF_SETGET_C32_UINT8, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 1, "ClipPath", NULL },
4933 { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_LONG, 0, TIFF_SETGET_UINT32, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
4934 { TIFFTAG_YCLIPPATHUNITS, 1, 1, TIFF_LONG, 0, TIFF_SETGET_UINT32, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "YClipPathUnits", NULL },
4935
4936 Also the set_get_field of the following tag should be corrected from
4937
4938 { TIFFTAG_INTEROPERABILITYIFD, 1, 1, TIFF_IFD8, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "InteroperabilityIFDOffset", NULL },
4939 to
4940 { TIFFTAG_INTEROPERABILITYIFD, 1, 1, TIFF_IFD8, 0, TIFF_SETGET_IFD8, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "InteroperabilityIFDOffset", NULL },
4941
4942 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
4943
4944 2022-07-01 Su_Laus <[email protected]>
4945
4946 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.
4947
4948 2022-06-27 Even Rouault <[email protected]>
4949
4950 _TIFFCheckFieldIsValidForCodec(): return FALSE when passed a codec-specific tag and the codec is not configured (fixes #433)
4951 This avoids crashes when querying such tags
4952
4953 2022-06-27 Even Rouault <[email protected]>
4954
4955 Merge branch '16bit_cielab' into 'master'
4956 add basic 16bit-cielab support
4957
4958 See merge request libtiff/libtiff!336
4959
4960 2022-06-27 Caolán McNamara <[email protected]>
4961
4962 Add basic 16bit-cielab support.
4963 just a copy of putcontig8bitCIELab that reads 16bit vals but divide l by
4964 257, a and b by 256 before passing to TIFFCIELabToXYZ
4965
4966 motivation: https://bugs.documentfoundation.org/show_bug.cgi?id=131199
4967 the "clavijo16bitlab.tiff" example where tiffinfo says:
4968 ```
4969 Image Width: 2601 Image Length: 3503
4970 Resolution: 96, 96 pixels/inch
4971 Bits/Sample: 16
4972 Compression Scheme: AdobeDeflate
4973 Photometric Interpretation: CIE L*a*b*
4974 Orientation: row 0 top, col 0 lhs
4975 Samples/Pixel: 3
4976 Rows/Strip: 1
4977 Planar Configuration: single image plane
4978 DateTime: 2020:03:07 10:20:42
4979 ```
4980
4981 2022-06-24 Roger Leigh <[email protected]>
4982
4983 Merge branch 'manpage-fixes' into 'master'
4984 Sphinx documentation fixes
4985
4986 See merge request libtiff/libtiff!362
4987
4988 2022-06-24 Roger Leigh <[email protected]>
4989
4990 doc: Correct types and cross-references.
4991
4992 doc: Correct manual page path.
4993
4994 build: Make rational2double static only for automake.
4995 This copies the same logic as used by CMake.
4996
4997 build: Update autoconf version to 4.5.0 and soname to 6.0.0.
4998
4999 build: Update autoconf ld-version-script default.
5000
5001 libtiff: Correct version script for changes since v4.4.0.
5002
5003 libtiff: Update version script documentation.
5004
5005 libtiff: Add symbol versioning of all exported symbols.
5006
5007 2022-06-24 Even Rouault <[email protected]>
5008
5009 Merge branch 'webp_mem_improvements' into 'master'
5010 WEBP codec: avoid temporary buffer and memcpy() on whole tile/strip decoding
5011
5012 See merge request libtiff/libtiff!360
5013
5014 2022-06-24 Roger Leigh <[email protected]>
5015
5016 build: Enable symbol versioning by default.
5017
5018 2022-06-24 Roger Leigh <[email protected]>
5019
5020 Merge branch 'sphinx-manpages' into 'master'
5021 doc: Add Sphinx conversion of all manpages
5022
5023 Closes #361
5024
5025 See merge request libtiff/libtiff!356
5026
5027 2022-06-24 Roger Leigh <[email protected]>
5028
5029 Merge branch 'remove-wince' into 'master'
5030 Remove obsolete WinCE source file
5031
5032 See merge request libtiff/libtiff!357
5033
5034 2022-06-23 Even Rouault <[email protected]>
5035
5036 WEBP codec: avoid temporary buffer and memcpy() on whole tile/strip decoding
5037
5038 2022-06-22 Even Rouault <[email protected]>
5039
5040 Merge branch 'horAcc8_fix' into 'master'
5041 tif_predict.c: make horAcc8() work with icc (ICC) 2021.6.0 20220226 -O2
5042
5043 See merge request libtiff/libtiff!359
5044
5045 2022-06-22 Even Rouault <[email protected]>
5046
5047 tif_predict.c: make horAcc8() work with icc (ICC) 2021.6.0 20220226 -O2.
5048 For a reason I don't understand, recent ICC generates wrong code in -O2
5049 mode for the stride = 3 and 4 cases. The modified code is more
5050 straightforward, so go for it.
5051
5052 2022-06-19 Roger Leigh <[email protected]>
5053
5054 Merge branch 'ci-restore-old' into 'master'
5055 ci: Restore testing with Ubuntu 20.04
5056
5057 See merge request libtiff/libtiff!358
5058
5059 2022-06-19 Roger Leigh <[email protected]>
5060
5061 ci: Restore testing with Ubuntu 20.04.
5062
5063 Remove obsolete WinCE source file.
5064
5065 doc: Add missing punctuation.
5066
5067 doc: Remove semicolon from c:function definition.
5068
5069 doc: Remove remaining HTML entities.
5070
5071 doc: Improve the build page.
5072
5073 2022-06-18 Roger Leigh <[email protected]>
5074
5075 doc: Add Sphinx conversion of all manpages.
5076
5077 2022-06-18 Roger Leigh <[email protected]>
5078
5079 Merge branch 'dist-html' into 'master'
5080 build: Distribute and install HTML documentation
5081
5082 See merge request libtiff/libtiff!352
5083
5084 2022-06-13 Even Rouault <[email protected]>
5085
5086 Merge branch 'pkgconfig' into 'master'
5087 Adding Requires.private generation
5088
5089 See merge request libtiff/libtiff!355
5090
5091 2022-06-13 Yishen Miao <[email protected]>
5092
5093 Adding Requires.private generation.
5094 Adds Requires.private generation so that pkg-config can correctly find
5095 the dependencies of libtiff.
5096
5097 2022-06-11 Roger Leigh <[email protected]>
5098
5099 Merge branch 'ci-dist' into 'master'
5100 ci: Archive distribution tar and zip files
5101
5102 See merge request libtiff/libtiff!354
5103
5104 2022-06-11 Roger Leigh <[email protected]>
5105
5106 ci: Archive distribution tar and zip files.
5107
5108 2022-06-11 Even Rouault <[email protected]>
5109
5110 Merge branch 'export_TIFFClampDoubleToUInt32' into 'master'
5111 libtiff.def: export _TIFFClampDoubleToUInt32
5112
5113 See merge request libtiff/libtiff!353
5114
5115 2022-06-11 Even Rouault <[email protected]>
5116
5117 libtiff.def: export _TIFFClampDoubleToUInt32.
5118
5119 2022-06-11 Even Rouault <[email protected]>
5120
5121 Merge branch 'issue-415+427+428' into 'master'
5122 fix the FPE in tiffcrop (#415, #427, and #428)
5123
5124 Closes #428, #427 et #415
5125
5126 See merge request libtiff/libtiff!346
5127
5128 2022-06-11 4ugustus <[email protected]>
5129
5130 fix the FPE in tiffcrop (#415, #427, and #428)
5131
5132 2022-06-11 Roger Leigh <[email protected]>
5133
5134 build: Distribute and install HTML documentation.
5135
5136 2022-06-10 Even Rouault <[email protected]>
5137
5138 Merge branch 'tif_jpeg_warning_fix' into 'master'
5139 tif_jpeg.c: fix error message
5140
5141 See merge request libtiff/libtiff!351
5142
5143 2022-06-10 Even Rouault <[email protected]>
5144
5145 tif_jpeg.c: fix error message.
5146
5147 2022-06-10 Roger Leigh <[email protected]>
5148
5149 Merge branch 'android_libm' into 'master'
5150 Fix dependency on libm on Android
5151
5152 See merge request libtiff/libtiff!350
5153
5154 2022-06-09 Matthias Kuhn <[email protected]>
5155
5156 Always link to libm if available.
5157
5158 2022-06-05 Roger Leigh <[email protected]>
5159
5160 Merge branch 'vasyl5-master-patch-97651' into 'master'
5161 libtoolize: command not found on macOS.
5162
5163 See merge request libtiff/libtiff!289
5164
5165 2022-06-05 Roger Leigh <[email protected]>
5166
5167 Merge branch 'rst-docs' into 'master'
5168 Convert HTML documentation to Sphinx RST
5169
5170 See merge request libtiff/libtiff!349
5171
5172 2022-06-05 Roger Leigh <[email protected]>
5173
5174 Merge remote-tracking branch 'origin/master' into rst-docs.
5175
5176 2022-06-05 Roger Leigh <[email protected]>
5177
5178 Merge branch 'cmake-xc-faxtable' into 'master'
5179 cmake: Do not build faxtable target when cross-compiling
5180
5181 See merge request libtiff/libtiff!342
5182
5183 2022-06-05 Roger Leigh <[email protected]>
5184
5185 Merge branch 'cmake-disable-options' into 'master'
5186 Add options for disabling tools, tests, contrib and docs
5187
5188 See merge request libtiff/libtiff!343
5189
5190 2022-06-05 Roger Leigh <[email protected]>
5191
5192 Merge branch 'cmake-msvc-options' into 'master'
5193 cmake: Add MSVC options when building all libraries and executables
5194
5195 See merge request libtiff/libtiff!344
5196
5197 2022-06-05 Roger Leigh <[email protected]>
5198
5199 Merge branch 'cmake-win32-libtiffxx-static' into 'master'
5200 cmake: libtiffxx is static on win32
5201
5202 See merge request libtiff/libtiff!338
5203
5204 2022-06-05 Roger Leigh <[email protected]>
5205
5206 Merge branch 'licence-file' into 'master'
5207 Rename COPYRIGHT to LICENSE.md
5208
5209 See merge request libtiff/libtiff!345
5210
5211 2022-06-05 Roger Leigh <[email protected]>
5212
5213 Rename COPYRIGHT to LICENSE.md.
5214
5215 doc: Fix make distcheck.
5216
5217 doc: Update automake configuration.
5218
5219 doc: Do not pass srcdir and builddir to sphinx-build.
5220
5221 doc: Additional top-level tidying.
5222
5223 doc: Tidy top-level index.
5224
5225 doc: Move bugs to project.
5226
5227 doc: Move misc to project.
5228
5229 doc: Move all BigTIFF documentation into specification directory.
5230 * Remove the BigTIFF proposal since this has long been completed
5231 * Update the BigTIFF PR to note completion of the work and replace
5232 present with past tense.
5233
5234 doc: Split release history.
5235 This permits the newer releases to be included in the top-level
5236 toctree without polluting it with dozens of old releases.
5237
5238 doc: Correct accents.
5239
5240 doc: BigTIFF design markup improvements.
5241
5242 Add doc/_static.
5243
5244 doc: Move TIFF specification and design notes into subdirectory.
5245
5246 doc: Move releases into subdirectory.
5247
5248 doc: Mark up TIFF tech note 2.
5249
5250 doc: Use sphinxdox theme.
5251 The sphix_rtd_theme formats complex tables badly.
5252
5253 doc: Clean up HTML tags.
5254
5255 2022-06-04 Roger Leigh <[email protected]>
5256
5257 ci: Install Sphinx manual for use by GitLab pages.
5258
5259 doc: Use sphinx_rtd_theme.
5260
5261 Convert HTML documentation to Sphinx RST.
5262 * Add CMake build logic
5263 * Add Autotools build logic
5264 * Move from html/ to doc/
5265 * Manual pages are still generated HTML for the time being
5266
5267 git: Ignore common IDE build files.
5268
5269 2022-06-04 Roger Leigh <[email protected]>
5270
5271 Merge branch 'ci-ubuntu-22.04' into 'master'
5272 ci: Update to use Ubuntu 22.04 CI images
5273
5274 Closes #429
5275
5276 See merge request libtiff/libtiff!348
5277
5278 2022-06-04 Roger Leigh <[email protected]>
5279
5280 Merge branch 'opengl-option' into 'master'
5281 cmake: Add tiff-opengl option
5282
5283 See merge request libtiff/libtiff!340
5284
5285 2022-06-04 Roger Leigh <[email protected]>
5286
5287 tiffdump: Avoid overflow warning when reading.
5288
5289 ci: Update to use Ubuntu 22.04 CI images.
5290
5291 2022-06-04 Even Rouault <[email protected]>
5292
5293 Merge branch 'master' into 'master'
5294 Include stdlib.h in tif_lzw.c.
5295
5296 See merge request libtiff/libtiff!347
5297
5298 2022-06-04 Brian Ledger <[email protected]>
5299
5300 Merge branch 'master' of https://gitlab.com/libtiff/libtiff.
5301
5302 2022-06-04 Brian Ledger <[email protected]>
5303
5304 Include stdlib.h in tif_lzw.c.
5305 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.
5306
5307 This change adds `#include stdlib.h` to `tif_lzw.c`, to prevent a name error from occurring when `stdlib.h` is not included.
5308
5309 2022-05-29 Roger Leigh <[email protected]>
5310
5311 Add options for disabling tools, tests, contrib and docs.
5312
5313 cmake: Add MSVC options when building all libraries and executables.
5314
5315 cmake: Do not build faxtable target when cross-compiling.
5316
5317 cmake: Use add_compile_definitions and add_compile_options.
5318 It seems that some CMake versions can't export targets using PRIVATE
5319 linking, even though the private target is never used.
5320
5321 Merge remote-tracking branch 'origin/master' into cmake-msvc-options.
5322
5323 Merge remote-tracking branch 'origin/master' into cmake-win32-libtiffxx-static
5324
5325 2022-05-29 Roger Leigh <[email protected]>
5326
5327 Merge branch 'ci-x64' into 'master'
5328 ci: Remove arm64 temporarily
5329
5330 See merge request libtiff/libtiff!341
5331
5332 2022-05-29 Roger Leigh <[email protected]>
5333
5334 ci: Remove arm64 temporarily.
5335
5336 autoconf: Add --disable-opengl option.
5337
5338 cmake: Add tiff-opengl option.
5339
5340 cmake: Add MSVC options when building all libraries and executables.
5341
5342 cmake: libtiffxx is static on win32.
5343
5344 2022-05-22 Even Rouault <[email protected]>
5345
5346 html/Makefile.am: add v4.4.0.html to docfiles.
5347
5348 2022-05-20 Even Rouault <[email protected]>
5349
5350 Update HOWTO-RELEASE with .tar.xz.
5351
5352 Prepare for release 4.4.0.
5353
5354 2022-05-16 Even Rouault <[email protected]>
5355
5356 libtiff v4.4.0 released
5357
5358 2022-05-16 Even Rouault <[email protected]>
5359
5360 Merge branch 'pkgconf_abs_path' into 'master'
5361 Handle absolute paths in pkg-config file
5362
5363 See merge request libtiff/libtiff!333
5364
5365 2022-05-16 Miloš Komarčević <[email protected]>
5366
5367 Handle absolute paths in pkg-config file.
5368
5369 2022-05-15 Even Rouault <[email protected]>
5370
5371 Merge branch 'fix-tests-with-ro-source-dir' into 'master'
5372 cmake: allow running the tests with a read-only source directory
5373
5374 See merge request libtiff/libtiff!332
5375
5376 2022-05-15 Alex Richardson <[email protected]>
5377
5378 cmake: allow running the tests with a read-only source directory.
5379 Prior to this commit CTest would invoke all simple_tests tests with the
5380 current working directory set to the source directory. However, some of
5381 the tests (e.g. rewrite) will output files to the current working
5382 directory and will therefore fail when run with a read-only source
5383 directory. This can happen e.g. when testing a cross-compiled version of
5384 libtiff where the sources are mounted read-only in the virtual machine.
5385
5386 Simply changing the working directory to CMAKE_CURRENT_BINARY_DIR allows
5387 all but raw_decode to pass. The raw_decode test looks for files in the
5388 source directory, and uses the `srcdir` environment variable to find, so
5389 we also have to add a set_tests_properties() call to specify that env var.
5390
5391 2022-05-14 Even Rouault <[email protected]>
5392
5393 Merge branch 'tiffcrop_pipeline_error' into 'master'
5394 tiffcrop: Fixes complain of pipeline "cmake-ninja-arm64" about abs() on...
5395
5396 See merge request libtiff/libtiff!331
5397
5398 2022-05-14 Su Laus <[email protected]>
5399
5400 tiffcrop: Fixes complain of pipeline "cmake-ninja-arm64" about abs() on...
5401
5402 2022-05-14 Even Rouault <[email protected]>
5403
5404 Merge branch 'TIFFField_SetGetSize_CountSize' into 'master'
5405 Public functions TIFFFieldSetGetSize() and TIFFieldSetGetCountSize() added.
5406
5407 See merge request libtiff/libtiff!284
5408
5409 2022-05-14 Su Laus <[email protected]>
5410
5411 Public functions TIFFFieldSetGetSize() and TIFFieldSetGetCountSize() added.
5412
5413 2022-05-13 Even Rouault <[email protected]>
5414
5415 Merge branch 'jondo-master-patch-87274' into 'master'
5416 Replace add_compile_definitions for CMake versions before 3.12 (#238)
5417
5418 See merge request libtiff/libtiff!330
5419
5420 2022-05-13 Robert Pollak <[email protected]>
5421
5422 Replace add_compile_definitions for CMake versions before 3.12 (#238)
5423
5424 2022-05-13 Even Rouault <[email protected]>
5425
5426 Merge branch 'master' into 'master'
5427 Remove incorrect assert.
5428
5429 See merge request libtiff/libtiff!329
5430
5431 2022-05-13 Ben Laurie <[email protected]>
5432
5433 Remove incorrect assert.
5434
5435 2022-05-10 Even Rouault <[email protected]>
5436
5437 Merge branch 'Fix_Issue#330' into 'master'
5438 tiffcrop: Fix issue #330 and some more from 320 to 349
5439
5440 Closes #330
5441
5442 See merge request libtiff/libtiff!298
5443
5444 2022-05-10 Su Laus <[email protected]>
5445
5446 tiffcrop: Fix issue #330 and some more from 320 to 349.
5447
5448 2022-05-10 Even Rouault <[email protected]>
5449
5450 test_signed_tags.c: fix CID 1504376.
5451
5452 2022-05-10 Even Rouault <[email protected]>
5453
5454 Merge branch 'fix_#29_tiffcp_orientationTag' into 'master'
5455 tiffcp: Fix incomprehensible setting of orientation tag (fixes #29)
5456
5457 Closes #29
5458
5459 See merge request libtiff/libtiff!327
5460
5461 2022-05-10 Even Rouault <[email protected]>
5462
5463 Merge branch 'palette-8bit' into 'master'
5464 tiff2pdf: handle 8-bit palette colormap
5465
5466 See merge request libtiff/libtiff!328
5467
5468 2022-05-09 Jay Berkenbilt <[email protected]>
5469
5470 tiff2pdf: handle 8-bit palette colormap.
5471 If all the colors in a palette are in the range [0, 255], treat the
5472 palette as an 8-bit colormap. This workaround already exists elsewhere
5473 in the software including in tiff2ps.
5474
5475 2022-05-08 Even Rouault <[email protected]>
5476
5477 Merge branch 'fix_#40_ReadSignedTags' into 'master'
5478 Reading of signed tags added (fixes #40)
5479
5480 Closes #40
5481
5482 See merge request libtiff/libtiff!326
5483
5484 2022-05-08 Su Laus <[email protected]>
5485
5486 Reading of signed tags added (fixes #40)
5487
5488 2022-05-08 Even Rouault <[email protected]>
5489
5490 Fix typos in comments.
5491
5492 2022-05-08 Even Rouault <[email protected]>
5493
5494 Merge branch 'fix_400' into 'master'
5495 tiffcp: avoid buffer overflow in "mode" string (fixes #400)
5496
5497 Closes #400
5498
5499 See merge request libtiff/libtiff!323
5500
5501 2022-05-08 Even Rouault <[email protected]>
5502
5503 Merge branch 'CheckForBigTiff' into 'master'
5504 TIFFIsBigTiff() function added.
5505
5506 See merge request libtiff/libtiff!325
5507
5508 2022-05-08 Su Laus <[email protected]>
5509
5510 TIFFIsBigTiff() function added.
5511
5512 2022-05-01 Su_Laus <[email protected]>
5513
5514 tiffcp: Fix incomprehensible setting of orientation tag (fixes #29)
5515
5516 2022-04-23 Even Rouault <[email protected]>
5517
5518 Merge branch 'fix_#8_FreeAnonTag' into 'master'
5519 extra flag for anonymous (unknown) tags (fixes #8)
5520
5521 Closes #400 et #8
5522
5523 See merge request libtiff/libtiff!324
5524
5525 2022-04-22 Even Rouault <[email protected]>
5526
5527 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)
5528
5529 2022-04-06 Su_Laus <[email protected]>
5530
5531 extra flag for anonymous (unknown) tags (fixes #8)
5532
5533 2022-04-02 Su_Laus <[email protected]>
5534
5535 tiffcp: avoid buffer overflow in "mode" string (fixes #400)
5536
5537 2022-03-21 Even Rouault <[email protected]>
5538
5539 avoid hang in TIFFRewriteDirectory() if a classic file > 4 GB is attempted to be created
5540 Fixes https://github.com/OSGeo/gdal/issues/5479
5541
5542 2022-03-19 Even Rouault <[email protected]>
5543
5544 Merge branch 'Correct_tag_auto-registration_description' into 'master'
5545 Correct reading description for anonymous tag auto-registration in addingtags.html (closes 353)
5546
5547 Closes #353
5548
5549 See merge request libtiff/libtiff!320
5550
5551 2022-03-19 Su Laus <[email protected]>
5552
5553 Correct reading description for anonymous tag auto-registration in addingtags.html (closes 353)
5554
5555 2022-03-18 Even Rouault <[email protected]>
5556
5557 tif_lzw.c: avoid harmless unsigned-integer-overflow (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45741)
5558
5559 2022-03-17 Even Rouault <[email protected]>
5560
5561 Merge branch 'fix_396' into 'master'
5562 tiffcp: do not try to fetch compressor-specific tags when not appropriate (fixes #396)
5563
5564 Closes #396
5565
5566 See merge request libtiff/libtiff!316
5567
5568 2022-03-17 Even Rouault <[email protected]>
5569
5570 Merge branch 'Fix_cmake_warnings' into 'master'
5571 Fix some CMake warnings
5572
5573 See merge request libtiff/libtiff!319
5574
5575 2022-03-17 Su Laus <[email protected]>
5576
5577 Fix some CMake warnings.
5578
5579 2022-03-17 Even Rouault <[email protected]>
5580
5581 Merge branch 'lzw_decode_improvements' into 'master'
5582 LZWDecode(): major speed improvements
5583
5584 See merge request libtiff/libtiff!318
5585
5586 2022-03-16 Even Rouault <[email protected]>
5587
5588 LZWDecode(): major speed improvements.
5589 This mostly comes from dealing specifically with codes that expand to
5590 2, 3 and 4 bytes or more to avoid branches, and dealing with longer
5591 repeated sequences (e.g. lots of bytes to 0).
5592
5593 With the following bench.c, execution time is 32% faster on a 8000x8000
5594 4 bands uint16 predictor=2 image that has a 1.6x compression ratio. with
5595 gcc 9.4.0, on x86_64
5596
5597 bench.c:
5598 ```
5599 #include "tiffio.h"
5600 #include <stdlib.h>
5601 #include <stdint.h>
5602
5603 int main(int argc, char* argv[])
5604 {
5605 if( argc != 2 )
5606 {
5607 fprintf(stderr, "Usage: ./bench my.tif\n");
5608 exit(1);
5609 }
5610 TIFF* tif = TIFFOpen(argv[1], "r");
5611 if( tif == NULL )
5612 {
5613 fprintf(stderr, "Cannot open %s\n", argv[1]);
5614 exit(1);
5615 }
5616 if( !TIFFIsTiled(tif) )
5617 {
5618 fprintf(stderr, "Only tiled image supported\n");
5619 exit(1);
5620 }
5621 int tilesize = (int)TIFFTileSize(tif);
5622 char* c = malloc(tilesize);
5623 if( c == NULL )
5624 {
5625 fprintf(stderr, "Out of memory\n");
5626 exit(1);
5627 }
5628 const uint32_t numtiles = TIFFNumberOfTiles(tif);
5629 //int numloops = 4 * (int)(1e9 / ((double)tilesize * numtiles));
5630 //printf("Number of loops: %d\n", numloops);
5631 int numloops = 1;
5632 for(int i =0; i< numloops; i++)
5633 {
5634 for(uint32_t tileindex = 0; tileindex < numtiles; tileindex++ )
5635 {
5636 TIFFReadEncodedTile(tif, tileindex, c, tilesize);
5637 }
5638 }
5639 free(c);
5640 TIFFClose(tif);
5641 return 0;
5642 }
5643 ```
5644
5645 2022-03-16 Even Rouault <[email protected]>
5646
5647 LZWDecode(): modest speed improvement: fetch input data by chunks of the largest natural integer of the architecture
5648
5649 2022-03-14 Even Rouault <[email protected]>
5650
5651 Merge branch 'kmilos-master-patch-45885' into 'master'
5652 Correct fix for the pkgconf file relative paths
5653
5654 See merge request libtiff/libtiff!317
5655
5656 2022-03-10 Even Rouault <[email protected]>
5657
5658 tif_lzw.c: make LZW_CHECKEOS non-optional.
5659
5660 tiffsplit.c: fix compiler warning on 32-bit.
5661
5662 2022-03-10 Miloš Komarčević <[email protected]>
5663
5664 Correct fix for the pkgconf file relative paths.
5665
5666 2022-03-10 Even Rouault <[email protected]>
5667
5668 Merge branch 'issue-278' into 'master'
5669 fix heap buffer overflow in tiffcp (#278)
5670
5671 Closes #278
5672
5673 See merge request libtiff/libtiff!311
5674
5675 2022-03-10 4ugustus <[email protected]>
5676
5677 fix heap buffer overflow in tiffcp (#278)
5678
5679 2022-03-09 Even Rouault <[email protected]>
5680
5681 tiffcp: do not try to fetch compressor-specific tags when not appropriate (fixes #396)
5682
5683 2022-03-09 Even Rouault <[email protected]>
5684
5685 Merge branch 'i_am_a_unsympathetic_person' into 'master'
5686 index.html: make it clear that I'm a unsympathetic person
5687
5688 See merge request libtiff/libtiff!315
5689
5690 2022-03-09 Even Rouault <[email protected]>
5691
5692 index.html: make it clear that I'm a unsympathetic person.
5693
5694 2022-03-08 Even Rouault <[email protected]>
5695
5696 Merge branch 'Fix_Issue#395' into 'master'
5697 tiffcrop: fix issue #395: generation of strange section images.
5698
5699 Closes #395
5700
5701 See merge request libtiff/libtiff!312
5702
5703 2022-03-08 Su Laus <[email protected]>
5704
5705 tiffcrop: fix issue #395: generation of strange section images.
5706
5707 2022-03-08 Even Rouault <[email protected]>
5708
5709 Merge branch 'Fix_Issue#380' into 'master'
5710 tiffcrop: fix issue #380 and #382 heap buffer overflow in extractImageSection
5711
5712 Closes #382 et #380
5713
5714 See merge request libtiff/libtiff!307
5715
5716 2022-03-08 Su Laus <[email protected]>
5717
5718 tiffcrop: fix issue #380 and #382 heap buffer overflow in extractImageSection
5719
5720 2022-03-08 Even Rouault <[email protected]>
5721
5722 Merge branch 'issue-392' into 'master'
5723 add checks for return value of limitMalloc (#392)
5724
5725 Closes #392
5726
5727 See merge request libtiff/libtiff!314
5728
5729 2022-03-08 Even Rouault <[email protected]>
5730
5731 Merge branch 'issue-393' into 'master'
5732 fix the FPE in tiffcrop (#393)
5733
5734 Closes #393
5735
5736 See merge request libtiff/libtiff!310
5737
5738 2022-03-08 4ugustus <[email protected]>
5739
5740 fix the FPE in tiffcrop (#393)
5741
5742 2022-03-08 Even Rouault <[email protected]>
5743
5744 Merge branch 'kmilos-master-patch-56785' into 'master'
5745 Fix pkgconf file relative paths
5746
5747 Closes #394
5748
5749 See merge request libtiff/libtiff!309
5750
5751 2022-03-07 Augustus <[email protected]>
5752
5753 add checks for return value of limitMalloc (#392)
5754
5755 2022-03-02 Miloš Komarčević <[email protected]>
5756
5757 Fix pkgconf file relative paths.
5758
5759 2022-02-25 Even Rouault <[email protected]>
5760
5761 Merge branch 'fix_385' into 'master'
5762 tif_jbig.c: fix crash when reading a file with multiple IFD in memory-mapped...
5763
5764 Closes #385
5765
5766 See merge request libtiff/libtiff!306
5767
5768 2022-02-24 Even Rouault <[email protected]>
5769
5770 tif_jbig.c: fix crash when reading a file with multiple IFD in memory-mapped mode and when bit reversal is needed (fixes #385)
5771
5772 2022-02-24 Even Rouault <[email protected]>
5773
5774 Merge branch 'string_size_limit' into 'master'
5775 _TIFFVSetField(): when passing a string without explicit length, check that...
5776
5777 See merge request libtiff/libtiff!304
5778
5779 2022-02-24 Even Rouault <[email protected]>
5780
5781 Merge branch 'TIFFClientOpen_cleanup' into 'master'
5782 TIFFClientOpen(): remove useless initializations of tif_rawcc and tif_flags...
5783
5784 See merge request libtiff/libtiff!303
5785
5786 2022-02-20 Even Rouault <[email protected]>
5787
5788 Remove extra word in comment.
5789
5790 TIFFPrintDirectory(): avoid potential multi-threading issue when reading the DotRange tag
5791 The severity of the issue would be low (mix of values displayed) and the
5792 time window where that would occur would be short.
5793
5794 Constify signature of _TIFFsetXXXXArray() functions, and remove unused _TIFFsetString()
5795
5796 _TIFFVSetField(): when passing a string without explicit length, check that the length doesn't except the 1 << 31 maximum bytes we support
5797
5798 2022-02-19 Even Rouault <[email protected]>
5799
5800 tiffsplit.c: fix use after free introduced in master per commit 8ed97f401552a2b4300d3c489b03dcada86a21fd (related to #290)
5801
5802 2022-02-19 Even Rouault <[email protected]>
5803
5804 Merge branch 'Fix_Issue#284' into 'master'
5805 tiff2ps: In limitMalloc() check for negative size (fixes #284)
5806
5807 Closes #284
5808
5809 See merge request libtiff/libtiff!300
5810
5811 2022-02-19 Su Laus <[email protected]>
5812
5813 tiff2ps: In limitMalloc() check for negative size (fixes #284)
5814
5815 2022-02-19 Even Rouault <[email protected]>
5816
5817 Merge branch 'fix_288' into 'master'
5818 tiffinfo: limit more memory allocations using -M switch (fixes #288)
5819
5820 Closes #288
5821
5822 See merge request libtiff/libtiff!299
5823
5824 2022-02-19 Even Rouault <[email protected]>
5825
5826 Merge branch 'Fix_Issue#290' into 'master'
5827 tiffsplit: limitMalloc() and getopt() introduced and more error messages. (fixes #290)
5828
5829 Closes #290
5830
5831 See merge request libtiff/libtiff!301
5832
5833 2022-02-19 Su Laus <[email protected]>
5834
5835 tiffsplit: limitMalloc() and getopt() introduced and more error messages. (fixes #290)
5836
5837 2022-02-19 Even Rouault <[email protected]>
5838
5839 Merge branch 'Fix_Issue#273_#275' into 'master'
5840 tiffcrop: buffsize check formula in loadImage() amended (fixes #273,#275)
5841
5842 Closes #275 et #273
5843
5844 See merge request libtiff/libtiff!302
5845
5846 2022-02-19 Su Laus <[email protected]>
5847
5848 tiffcrop: buffsize check formula in loadImage() amended (fixes #273,#275)
5849
5850 2022-02-19 Even Rouault <[email protected]>
5851
5852 TIFFClientOpen(): remove useless initializations of tif_rawcc and tif_flags after TIFFReadDirectory()
5853 Those initializations date back to the initial commit of libtiff, but I
5854 strongly suspect there are no longer needed those days.
5855 Setting tif_rawcc to (tmsize_t)-1 is weird. AFAICS, nowhere else in the library
5856 -1 is used as a special markeri for that field. Immediately after TIFFReadDirectory()
5857 returns it is set to 0, and this is the value used in tif_read.c/tif_write.c to
5858 reset it.
5859 And setting the TIFF_BUFFERSETUP bit of tif_flags is even more
5860 suspicious as the only place where it is set otherwise is in
5861 TIFFWriteBufferSetup(). I suspect this bogus setting of the flag was the
5862 reason for commit dbf2339a1 where BUFFERCHECK() in addition to checking
5863 the bit also checked the tif_rawdata against nullptr.
5864
5865 If setting those 2 fields was needed, it would mean that TIFFClientOpen() with the
5866 'h' hint to disable automatic TIFFReadDirectory() would be broken,
5867 because someone issuing a manual TIFFReadDirectory() couldn't set them,
5868 as being private members.
5869
5870 The libtiff test suite is happy with that change, and the GDAL one too.
5871
5872 2022-02-19 Even Rouault <[email protected]>
5873
5874 TIFFFetchNormalTag(): speed optimization when reading a (very large) nul-terminated ASCII tag
5875
5876 TIFFWriteDirectoryTagData(): turn assertion on data length into a runtime check
5877 For example, the assertion could actually be triggered when writing an
5878 ASCII tag with more than 1 << 31 bytes.
5879
5880 2022-02-17 Even Rouault <[email protected]>
5881
5882 TIFFFetchNormalTag(): avoid calling memcpy() with a null source pointer and size of zero (fixes #383)
5883
5884 2022-02-15 Roger Leigh <[email protected]>
5885
5886 Merge branch 'tl/fix-cpack' into 'master'
5887 Fix packaging with CPack
5888
5889 See merge request libtiff/libtiff!292
5890
5891 2022-02-11 Even Rouault <[email protected]>
5892
5893 tiffinfo: limit more memory allocations using -M switch (fixes #288)
5894
5895 tif_dirwrite.c: take into account COMPRESSION_JXL.
5896
5897 2022-02-11 Even Rouault <[email protected]>
5898
5899 Merge branch 'predictor_2_64bit' into 'master'
5900 Predictor 2 (horizontal differentiation): support 64-bit
5901
5902 See merge request libtiff/libtiff!296
5903
5904 2022-02-10 Even Rouault <[email protected]>
5905
5906 Merge branch 'Fix_Issue#365' into 'master'
5907 tiff2pdf: Fixes issues #365, #258 and #257 related to initializing 't2p->pdf_compressionquality'.
5908
5909 Closes #257, #258 et #365
5910
5911 See merge request libtiff/libtiff!297
5912
5913 2022-02-10 Su Laus <[email protected]>
5914
5915 tiff2pdf: Fixes issues #365, #258 and #257 related to initializing 't2p->pdf_compressionquality'.
5916
5917 2022-02-09 Even Rouault <[email protected]>
5918
5919 Predictor 2 (horizontal differentiation): support 64-bit.
5920 There's no reason not to support 64-bit. The TIFF 6 specification
5921 doesn't say anything about that (and even mention 4-bit, which we don't
5922 support)
5923
5924 2022-02-09 Even Rouault <[email protected]>
5925
5926 Merge branch 'Fix_Issue#352' into 'master'
5927 tiffcrop.c: Fix issue #352 heap-buffer-overflow by correcting uint32_t underflow.
5928
5929 Closes #352
5930
5931 See merge request libtiff/libtiff!294
5932
5933 2022-02-09 Su Laus <[email protected]>
5934
5935 tiffcrop.c: Fix issue #352 heap-buffer-overflow by correcting uint32_t underflow.
5936
5937 2022-02-08 Even Rouault <[email protected]>
5938
5939 Merge branch 'custom_dir_EXIF_Coverity_fixes' into 'master'
5940 Fix Coverity Scan report issues for custom_dir_EXIF_231.c and test_directory.c
5941
5942 See merge request libtiff/libtiff!295
5943
5944 2022-02-08 Su Laus <[email protected]>
5945
5946 Fix Coverity Scan report issues for custom_dir_EXIF_231.c and test_directory.c
5947
5948 2022-02-06 Roger Leigh <[email protected]>
5949
5950 Merge branch 'cmake-test' into 'master'
5951 Correct CMake testing
5952
5953 Closes #317
5954
5955 See merge request libtiff/libtiff!291
5956
5957 2022-02-06 Even Rouault <[email protected]>
5958
5959 LogLuvEncode32(): avoid undefined behaviour of left shift on a signed integer
5960
5961 TIFFFetchStripThing(): avoid calling memcpy() with a null source pointer and size of zero (fixes #362)
5962
5963 2022-02-05 Even Rouault <[email protected]>
5964
5965 TIFFReadDirectory(): avoid calling memcpy() with a null source pointer and size of zero (fixes #362)
5966
5967 2022-01-29 Even Rouault <[email protected]>
5968
5969 Merge branch 'Jamaika1-master-patch-68264' into 'master'
5970 Added stdlib.h
5971
5972 See merge request libtiff/libtiff!293
5973
5974 2022-01-29 Jamaika <[email protected]>
5975
5976 tif_win32.c: include stdlib.h.
5977
5978 2022-01-28 Timothy Lyanguzov <[email protected]>
5979
5980 Fix packaging with CPack.
5981 Replace all CMAKE_INSTALL_FULL_<DIR> with CMAKE_INSTALL_<DIR> to allow CPack setting CMAKE_INSTALL_PREFIX
5982
5983 2022-01-25 Even Rouault <[email protected]>
5984
5985 Merge branch 'master' into 'master'
5986 Fix the global-buffer-overflow in tiffset
5987
5988 See merge request libtiff/libtiff!287
5989
5990 2022-01-25 4ugustus <[email protected]>
5991
5992 tiffset: fix global-buffer-overflow for ASCII tags where count is required (fixes #355)
5993
5994 2022-01-23 Roger Leigh <[email protected]>
5995
5996 Merge branch 'autogen' into 'master'
5997 Fix autogen.sh permissions issues during mv
5998
5999 See merge request libtiff/libtiff!290
6000
6001 2022-01-23 Roger Leigh <[email protected]>
6002
6003 Correct CMake testing.
6004 * Use functions rather than macros to avoid problems with variables in
6005 conditions (since macro arguments are not variables)
6006 * Conditionally add to file lists and test program lists based upon the
6007 configuration options (e.g. JPEG and old-JPEG availability)
6008 * Sync tests, files and option usage with current automake usage
6009
6010 2022-01-19 Will Cohen <[email protected]>
6011
6012 autogen.sh: mv -f for config.sub and config.guess.
6013
6014 2022-01-12 Even Rouault <[email protected]>
6015
6016 TIFFYCbCrToRGBInit(): avoid Integer-overflow in gdal_TIFFYCbCrToRGBInit. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43559
6017
6018 2022-01-10 Even Rouault <[email protected]>
6019
6020 Merge branch 'fix_TIFFFillStrip_wrong_check' into 'master'
6021 Fix sanity check in TIFFFillStrip()/TIFFFillStrile()
6022
6023 See merge request libtiff/libtiff!288
6024
6025 2022-01-10 Even Rouault <[email protected]>
6026
6027 TIFFFillStrip()/TIFFFillStrile(): remove useless test.
6028
6029 Fix sanity check in TIFFFillStrip()/TIFFFillStrile()
6030 A sanity check comparing the compressed vs uncompressed file that was
6031 originally written 'correctly' but relied on undefined behaviour was
6032 changed in 1b5e3b6a23827c33acf19ad50ce5ce78f12b3773 in an incorrect way.
6033 Fix that. Credits to @burn for spotting this in
6034 https://gitlab.com/libtiff/libtiff/-/issues/343#note_806089714
6035
6036 2021-12-29 Even Rouault <[email protected]>
6037
6038 Merge branch 'Fix_FieldName_NULL' into 'master'
6039 Fix Issue #354 Segmentation Fault due to field_name=NULL
6040
6041 See merge request libtiff/libtiff!285
6042
6043 2021-12-29 Even Rouault <[email protected]>
6044
6045 Merge branch 'mingw-static' into 'master'
6046 build: Fix static library imports in mingw
6047
6048 See merge request libtiff/libtiff!286
6049
6050 2021-12-29 Biswapriyo Nath <[email protected]>
6051
6052 build: Fix static library imports in mingw.
6053 This defines LERC_STATIC while creating libtiff static library
6054 in Win32 platform in presence of lerc library. Otherwise, the
6055 static library import lerc APIs with dllimport attribute and
6056 thus linked with shared lerc library.
6057
6058 2021-12-28 Su_Laus <[email protected]>
6059
6060 Fix Issue #354 Segmentation Fault due to field_name=NULL.
6061
6062 2021-12-17 Even Rouault <[email protected]>
6063
6064 Merge branch 'fix_342' into 'master'
6065 TIFFGetField(TIFFTAG_STRIPBYTECOUNTS/TIFFTAG_STRIPOFFSETS): return error if...
6066
6067 Closes #342
6068
6069 See merge request libtiff/libtiff!283
6070
6071 2021-12-16 Even Rouault <[email protected]>
6072
6073 TIFFGetField(TIFFTAG_STRIPBYTECOUNTS/TIFFTAG_STRIPOFFSETS): return error if returned pointer is NULL (fixes #342)
6074
6075 tiff2pdf: validate TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc) return (fixes #342)
6076
6077 2021-12-16 Even Rouault <[email protected]>
6078
6079 Merge branch 'master' into 'master'
6080 fix raw2tiff floating point exception(fixes #338)
6081
6082 Closes #338
6083
6084 See merge request libtiff/libtiff!282
6085
6086 2021-12-16 t.feng <[email protected]>
6087
6088 raw2tiff: check that band number if not zero to avoid floating point exception(fixes #338)
6089
6090 2021-12-14 Even Rouault <[email protected]>
6091
6092 Merge branch 'fix_337' into 'master'
6093 OJPEG: avoid assertion when using TIFFReadScanline() (fixes #337)
6094
6095 Closes #337
6096
6097 See merge request libtiff/libtiff!280
6098
6099 2021-12-13 Even Rouault <[email protected]>
6100
6101 OJPEG: avoid assertion when using TIFFReadScanline() (fixes #337)
6102 Note: my analysis of the issue would be that the use of the scanline API
6103 is currently probably broken with OJPEG.
6104
6105 2021-12-10 Even Rouault <[email protected]>
6106
6107 JPEG 12bit: make it easier for GDAL's RENAME_INTERNAL_LIBTIFF_SYMBOLS mode
6108
6109 2021-12-09 Even Rouault <[email protected]>
6110
6111 tif_lzw.c: other warning fixes.
6112
6113 tif_lzw.c: fix warnings of previous commit.
6114
6115 2021-12-09 Even Rouault <[email protected]>
6116
6117 Merge branch 'lzw_2gb_windows' into 'master'
6118 LZW codec: fix support for strips/tiles > 2 GB on Windows
6119
6120 See merge request libtiff/libtiff!279
6121
6122 2021-12-08 Even Rouault <[email protected]>
6123
6124 LZW codec: fix support for strips/tiles > 2 GB on Windows.
6125
6126 2021-12-07 Even Rouault <[email protected]>
6127
6128 Merge branch 'fix_287' into 'master'
6129 tiffinfo: add a -M switch to define the maximum heap allocation, and default...
6130
6131 Closes #287
6132
6133 See merge request libtiff/libtiff!278
6134
6135 2021-12-06 Even Rouault <[email protected]>
6136
6137 Merge branch 'fix_319' into 'master'
6138 TIFFReadDirectory: fix OJPEG hack (fixes #319)
6139
6140 Closes #319
6141
6142 See merge request libtiff/libtiff!277
6143
6144 2021-12-06 Even Rouault <[email protected]>
6145
6146 Merge branch 'fix_309' into 'master'
6147 TIFFAppendToStrip(): fix rewrite-in-place logic (fixes #309)
6148
6149 Closes #309
6150
6151 See merge request libtiff/libtiff!276
6152
6153 2021-12-05 Even Rouault <[email protected]>
6154
6155 Merge branch 'b1' into 'master'
6156 Fix resource leak on error path
6157
6158 See merge request libtiff/libtiff!263
6159
6160 2021-12-05 bonniegong <[email protected]>
6161
6162 rast2tiff: Fix resource leak on error path.
6163
6164 2021-12-05 Even Rouault <[email protected]>
6165
6166 Merge branch 'tiffsplit-leak' into 'master'
6167 tiffsplit.c: Fix memleak before exit
6168
6169 See merge request libtiff/libtiff!270
6170
6171 2021-12-05 Even Rouault <[email protected]>
6172
6173 tiffinfo: add a -M switch to define the maximum heap allocation, and default it to 256 MiB (fixes #287)
6174
6175 tiffinfo: fix read of invalid pointer in TIFFReadRawDataTiled() (fixes #295)
6176
6177 2021-12-05 Even Rouault <[email protected]>
6178
6179 TIFFReadDirectory: fix OJPEG hack (fixes #319)
6180 to avoid having the size of the strip arrays inconsistent with the
6181 number of strips returned by TIFFNumberOfStrips(), which may cause
6182 out-ouf-bounds array read afterwards.
6183
6184 One of the OJPEG hack that alters SamplesPerPixel may influence the
6185 number of strips. Hence compute tif_dir.td_nstrips only afterwards.
6186
6187 2021-12-04 Even Rouault <[email protected]>
6188
6189 TIFFAppendToStrip(): fix rewrite-in-place logic (fixes #309)
6190 Properly reset tif_curoff when writing strips/tiles
6191
6192 2021-12-03 Even Rouault <[email protected]>
6193
6194 TIFFReInitJPEG_12(): avoid warning about unused variable in -DNDEBUG.
6195
6196 2021-12-01 Even Rouault <[email protected]>
6197
6198 Merge branch 'fix_316' into 'master'
6199 TIFFReadCustomDirectory(): avoid crash when reading SubjectDistance tag on a non EXIF directory
6200
6201 Closes #316
6202
6203 See merge request libtiff/libtiff!273
6204
6205 2021-12-01 Even Rouault <[email protected]>
6206
6207 Merge branch 'VisualStudio_warnings_suppress' into 'master'
6208 Suppress unnecessary warnings in Visual Studio in AppVeyor test.
6209
6210 See merge request libtiff/libtiff!234
6211
6212 2021-11-30 Even Rouault <[email protected]>
6213
6214 TIFFReadCustomDirectory(): avoid crash when reading SubjectDistance tag on a non EXIF directory
6215 Fixes #316
6216
6217 The Valgrind trace was
6218 ```
6219 TIFFReadCustomDirectory: Warning, Unknown field with tag 37382 (0x9206) encountered.
6220 ==3277355== Invalid read of size 1
6221 ==3277355== at 0x4842B60: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
6222 ==3277355== by 0x48BB799: _TIFFmemcpy (tif_unix.c:346)
6223 ==3277355== by 0x485B3CB: _TIFFVSetField (tif_dir.c:647)
6224 ==3277355== by 0x485C125: TIFFVSetField (tif_dir.c:890)
6225 ==3277355== by 0x485BEDC: TIFFSetField (tif_dir.c:834)
6226 ==3277355== by 0x486DA9A: TIFFFetchSubjectDistance (tif_dirread.c:5826)
6227 ==3277355== by 0x4869E35: TIFFReadCustomDirectory (tif_dirread.c:4530)
6228 ==3277355== by 0x4869F0A: TIFFReadGPSDirectory (tif_dirread.c:4564)
6229 ==3277355== by 0x10AA7A: main (tiffinfo.c:171)
6230 ==3277355== Address 0x3fc856aaaaaaaaab is not stack'd, malloc'd or (recently) free'd
6231 ==3277355==
6232 ```
6233
6234 2021-11-29 Even Rouault <[email protected]>
6235
6236 Merge branch 'add-null-check' into 'master'
6237 Added missing null check.
6238
6239 See merge request libtiff/libtiff!274
6240
6241 2021-11-28 Dirk Lemstra <[email protected]>
6242
6243 Added missing null check.
6244
6245 2021-11-26 Even Rouault <[email protected]>
6246
6247 tif_print.c: remove duplicated if() in previous commit.
6248
6249 2021-11-26 Even Rouault <[email protected]>
6250
6251 Merge branch 'GPS_Print_BugFix' into 'master'
6252 Fix Segmentation fault printing GPS directory if Altitude tag is present (tif_print.c/tiffinfo.c)
6253
6254 See merge request libtiff/libtiff!272
6255
6256 2021-11-26 Su Laus <[email protected]>
6257
6258 Fix Segmentation fault printing GPS directory if Altitude tag is present (tif_print.c/tiffinfo.c)
6259
6260 2021-11-01 Even Rouault <[email protected]>
6261
6262 Merge branch 'cmake_tiffconf' into 'master'
6263 Fix STRIPCHOP_DEFAULT value in CMake builds
6264
6265 See merge request libtiff/libtiff!271
6266
6267 2021-11-01 Even Rouault <[email protected]>
6268
6269 Fix STRIPCHOP_DEFAULT value in CMake builds.
6270 CMake builds erroneously used value 1 instead of TIFF_STRIPCHOP, which
6271 resulted in strip chopping not being enabled by default.
6272
6273 2021-10-26 Even Rouault <[email protected]>
6274
6275 tif_jpeg.c: typo fix.
6276
6277 2021-10-24 Han Han <[email protected]>
6278
6279 tiffsplit.c: Fix memleak before exit.
6280 Details of the memleak:
6281 $ valgrind --leak-check=full tiffsplit id:001763,sync:fuzzer07,src:001641,+cov
6282
6283 ==2090657==
6284 ==2090657== HEAP SUMMARY:
6285 ==2090657== in use at exit: 13,517 bytes in 17 blocks
6286 ==2090657== total heap usage: 41 allocs, 24 frees, 29,351 bytes allocated
6287 ==2090657==
6288 ==2090657== 2,473 (1,249 direct, 1,224 indirect) bytes in 1 blocks are definitely lost in loss record 10 of 13
6289 ==2090657== at 0x484086F: malloc (vg_replace_malloc.c:381)
6290 ==2090657== by 0x48BF35C: TIFFClientOpen (tif_open.c:118)
6291 ==2090657== by 0x48CF058: TIFFFdOpen (tif_unix.c:209)
6292 ==2090657== by 0x48CF0C4: TIFFOpen (tif_unix.c:248)
6293 ==2090657== by 0x10954C: main (tiffsplit.c:91)
6294 ==2090657==
6295 ==2090657== 11,044 (1,300 direct, 9,744 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 13
6296 ==2090657== at 0x484086F: malloc (vg_replace_malloc.c:381)
6297 ==2090657== by 0x48BF35C: TIFFClientOpen (tif_open.c:118)
6298 ==2090657== by 0x48CF058: TIFFFdOpen (tif_unix.c:209)
6299 ==2090657== by 0x48CF0C4: TIFFOpen (tif_unix.c:248)
6300 ==2090657== by 0x1093D9: main (tiffsplit.c:75)
6301 ==2090657==
6302 ==2090657== LEAK SUMMARY:
6303 ==2090657== definitely lost: 2,549 bytes in 2 blocks
6304 ==2090657== indirectly lost: 10,968 bytes in 15 blocks
6305 ==2090657== possibly lost: 0 bytes in 0 blocks
6306 ==2090657== still reachable: 0 bytes in 0 blocks
6307 ==2090657== suppressed: 0 bytes in 0 blocks
6308 ==2090657==
6309 ==2090657== For lists of detected and suppressed errors, rerun with: -s
6310 ==2090657== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
6311
6312 2021-10-20 Even Rouault <[email protected]>
6313
6314 tif_webp.c: add explicit cast to please MSVC verbose warnings.
6315
6316 tif_webp.c: white space fixing.
6317
6318 2021-10-04 Even Rouault <[email protected]>
6319
6320 Merge branch 'work/amyspark/psd-blobs' into 'master'
6321 Enable writing Photoshop blobs
6322
6323 See merge request libtiff/libtiff!269
6324
6325 2021-10-04 L. E. Segovia <[email protected]>
6326
6327 Enable writing Photoshop blobs.
6328
6329 2021-09-29 Even Rouault <[email protected]>
6330
6331 Merge branch 'remove_packbits_hack' into 'master'
6332 PackBitsDecode: remove hack for when char is unsigned.
6333
6334 See merge request libtiff/libtiff!267
6335
6336 2021-09-28 Even Rouault <[email protected]>
6337
6338 PackBitsDecode: remove hack for when char is unsigned.
6339 The function has a hack for platforms where char is unsigned. This is
6340 better replaced by making bp a int8_t* pointer, which is guaranteed to
6341 be signed.
6342
6343 2021-09-27 Even Rouault <[email protected]>
6344
6345 tiffcrop.c: remove useless 'set but not read' variables.
6346
6347 2021-09-23 Even Rouault <[email protected]>
6348
6349 Merge branch 'fix_gdal_4538' into 'master'
6350 TIFFAppendToStrip(): fix rewrite-in-place logic
6351
6352 See merge request libtiff/libtiff!266
6353
6354 2021-09-23 Even Rouault <[email protected]>
6355
6356 TIFFAppendToStrip(): fix rewrite-in-place logic.
6357 reproducible in particular with packbits compression.
6358
6359 Fixes https://github.com/OSGeo/gdal/issues/4538
6360
6361 2021-09-17 Even Rouault <[email protected]>
6362
6363 tif_lzw.c: silence compiler warning about set but not used variable with recent clang
6364
6365 2021-09-07 Even Rouault <[email protected]>
6366
6367 Merge branch 'fix_cygwin' into 'master'
6368 Fix build warnings on cygwin about 'argument 1 of type 'float[3]' with...
6369
6370 See merge request libtiff/libtiff!265
6371
6372 2021-09-06 Even Rouault <[email protected]>
6373
6374 test/rational_precision2double.c: add missing curly braces to fix -Werror=misleading-indentation
6375
6376 2021-09-05 Even Rouault <[email protected]>
6377
6378 Fix build warnings on cygwin about 'argument 1 of type 'float[3]' with mismatched bound [-Werror=array-parameter=]'
6379
6380 2021-09-05 Even Rouault <[email protected]>
6381
6382 Merge branch 'rewrite-fix' into 'master'
6383 Fix TIFFRewriteDirectory discarding directories after the rewritten one
6384
6385 See merge request libtiff/libtiff!264
6386
6387 2021-09-05 Facundo Tuesca <[email protected]>
6388
6389 tif_dirwrite.c: Fix TIFFRewriteDirectory discarding directories.
6390 This fixes a bug caused by the `tif_lastdiroff` optimization when
6391 rewriting directories.
6392
6393 Rewriting the Nth directory temporarily zeroes the pointer to it
6394 (located in the N-1th directory) and relies on `TIFFLinkDirectory`
6395 traversing the whole directory list to find the zeroed pointer and
6396 linking the rewritten directory to it. Since `TIFFLinkDirectory` skips
6397 the traversal when `tif_lastdiroff` is set, this change unsets it
6398 to force the full traversal when rewriting a directory.
6399
6400 A test to catch this particular issue is also added.
6401
6402 2021-09-01 Even Rouault <[email protected]>
6403
6404 test_directory.c: fix compiler warnings.
6405
6406 2021-09-01 Even Rouault <[email protected]>
6407
6408 Merge branch 'multipage-optimization' into 'master'
6409 Keep track of last directory to improve performance for large multi-page files
6410
6411 See merge request libtiff/libtiff!262
6412
6413 2021-08-28 Facundo Tuesca <[email protected]>
6414
6415 Add field to keep track of last written directory.
6416 This adds a new `tif_lastdiroff` field to the TIFF data structure
6417 and uses it to store the offset of the last written directory.
6418
6419 Appending a new directory required traversing the whole file
6420 to find the last directory. By keeping track of its offset in this
6421 new field, the search is no longer necessary.
6422
6423 Since this offset is only stored in-memory, the first directory
6424 append after opening a file will have to transverse the whole
6425 directory list. Subsequent calls will have access to the last
6426 offset, avoiding the transversal.
6427
6428 2021-08-13 Even Rouault <[email protected]>
6429
6430 tif_jpeg.c: fix memory leak on error code path for JPEG 12 bit (CID 1086702)
6431
6432 2021-07-29 Even Rouault <[email protected]>
6433
6434 Merge branch 'jpeg12' into 'master'
6435 Enable JPEG 12bit support with a libjpeg that has a different ABI than the one for 8bit support
6436
6437 See merge request libtiff/libtiff!261
6438
6439 2021-07-28 Even Rouault <[email protected]>
6440
6441 Reformat tif_jpeg.c and tif_jpeg_12.c with clang-format-10.
6442
6443 2021-07-27 Even Rouault <[email protected]>
6444
6445 Enable JPEG 12bit support with a libjpeg that has a different ABI than the one for 8bit support
6446 See https://github.com/OSGeo/gdal/pull/4139 for more details
6447
6448 Note: this hasn't been tested for standalone libtiff builds.
6449
6450 2021-07-09 Even Rouault <[email protected]>
6451
6452 Merge branch 'wip/export-targets' into 'master'
6453 Export tiff targets
6454
6455 See merge request libtiff/libtiff!258
6456
6457 2021-07-09 Even Rouault <[email protected]>
6458
6459 Merge branch 'pkgconfig' into 'master'
6460 Add version and requirements to pc file
6461
6462 See merge request libtiff/libtiff!256
6463
6464 2021-07-09 Kai Pastor <[email protected]>
6465
6466 Fix version in libtiff-4.pc.in, and CMake build: Add requirements to pc file
6467
6468 2021-07-09 Even Rouault <[email protected]>
6469
6470 Merge branch 'cmake' into 'master'
6471 Fix build issues with CMake 3.10
6472
6473 See merge request libtiff/libtiff!260
6474
6475 2021-07-04 Kai Pastor <[email protected]>
6476
6477 Fix reconfiguration with cmake.
6478
6479 Fix build with CMake 3.10.
6480
6481 2021-06-28 Milian Wolff <[email protected]>
6482
6483 Export tiff targets.
6484 Fixes build when including libtiff as a cmake subproject into
6485 another project and then installing a target from there which
6486 depends on tiff. For example we could end up with:
6487
6488 ```
6489 CMake Error in 3rdParty/diplib/CMakeLists.txt:
6490 export called with target "DIP" which requires target "tiff" that is not in
6491 any export set.
6492 ```
6493
6494 2021-06-21 Even Rouault <[email protected]>
6495
6496 Merge branch 'libjpeg9d_support_simplification' into 'master'
6497 tif_jpeg.c: simplify libjpeg 9d support (refs #266)
6498
6499 See merge request libtiff/libtiff!257
6500
6501 2021-06-20 Even Rouault <[email protected]>
6502
6503 tif_jpeg.c: simplify libjpeg 9d support (refs #266)
6504 Credits to Guido Vollbeding for the suggestion
6505
6506 2021-06-15 Even Rouault <[email protected]>
6507
6508 Merge branch 'jpeg_in_tiff_jpeg_9d' into 'master'
6509 tif_jpeg.c: workaround bug of libjpeg 9d that defers Huffman table creation
6510
6511 Closes #266
6512
6513 See merge request libtiff/libtiff!255
6514
6515 2021-06-15 Even Rouault <[email protected]>
6516
6517 Merge branch 'jpeg_disable_progressive_with_mozjpeg' into 'master'
6518 tif_jpeg.c: do not emit progressive scans with mozjpeg and force optimize_coding
6519
6520 See merge request libtiff/libtiff!254
6521
6522 2021-06-12 Even Rouault <[email protected]>
6523
6524 tif_jpeg.c: with mozjpeg, disable emission of Huffman tables in JpegTables tag, and use optimize_coding
6525
6526 2021-06-10 Even Rouault <[email protected]>
6527
6528 tif_jpeg.c: workaround bug of libjpeg 9d that defers Huffman table creation
6529 Fixes #266
6530
6531 libjpeg-9d no longer creates default Huffman tables in
6532 jpeg_set_defaults(), which make their emission in the JpegTables tag no
6533 longer possible. Workaround that by borrowing code from libjpeg to
6534 manually create them when they are not initialized.
6535
6536 2021-06-10 Even Rouault <[email protected]>
6537
6538 tif_jpeg.c: do not emit progressive scans with mozjpeg.
6539 Relates to #266
6540
6541 - On writing, explicitly disable progressive scans, which is normally
6542 not enabled, except with mozjpeg.
6543 - On reading, emit a warning when encountering progressive scans.
6544
6545 2021-06-10 Even Rouault <[email protected]>
6546
6547 Merge branch 'fix-263' into 'master'
6548 Fix memory leak in tiff2pdf
6549
6550 See merge request libtiff/libtiff!249
6551
6552 2021-06-09 Even Rouault <[email protected]>
6553
6554 Merge branch 'diizzyy-master-patch-20521' into 'master'
6555 html: Add missing pages when using CMake
6556
6557 See merge request libtiff/libtiff!242
6558
6559 2021-06-09 Daniel E <[email protected]>
6560
6561 html: Add missing pages when using CMake.
6562
6563 2021-06-07 Even Rouault <[email protected]>
6564
6565 Merge branch 'ci-reenable-cygwin' into 'master'
6566 ci: Re-enable cygwin builds
6567
6568 See merge request libtiff/libtiff!252
6569
6570 2021-06-06 Roger Leigh <[email protected]>
6571
6572 ci: Re-enable cygwin builds.
6573
6574 2021-06-06 Even Rouault <[email protected]>
6575
6576 Merge branch 'ci-arm64' into 'master'
6577 ci: Add arm64 build
6578
6579 See merge request libtiff/libtiff!251
6580
6581 2021-06-06 Roger Leigh <[email protected]>
6582
6583 ci: Add arm64 build.
6584
6585 2021-06-05 Even Rouault <[email protected]>
6586
6587 _TIFFRewriteField(): fix when writing a IFD with a single tile that is a sparse one, on big endian hosts
6588
6589 2021-06-02 Timothy Lyanguzov <[email protected]>
6590
6591 Fix memory leak in tiff2pdf.
6592
6593 2021-06-01 Even Rouault <[email protected]>
6594
6595 Merge branch 'lzw_cleanup' into 'master'
6596 tif_lzw.c: cleanup, no functional change
6597
6598 See merge request libtiff/libtiff!248
6599
6600 2021-05-31 Even Rouault <[email protected]>
6601
6602 tif_lzw.c: cleanup, no functional change.
6603
6604 2021-05-22 Even Rouault <[email protected]>
6605
6606 Merge branch 'appveyor_disable_cygwin' into 'master'
6607 .appveyor.yml: disable cygwin configs for now as they are broken
6608
6609 See merge request libtiff/libtiff!247
6610
6611 2021-05-22 Even Rouault <[email protected]>
6612
6613 Merge branch 'zstd_reuse_objects' into 'master'
6614 ZSTD codec: reuse compressor/decompressor objects
6615
6616 See merge request libtiff/libtiff!246
6617
6618 2021-05-22 Even Rouault <[email protected]>
6619
6620 .appveyor.yml: disable cygwin configs for now as they are broken.
6621
6622 ZSTD codec: reuse compressor/decompressor objects.
6623 No need to recreate them each time in the PreEncode/Decode functions.
6624 They can be reused if already existing.
6625
6626 2021-05-08 Even Rouault <[email protected]>
6627
6628 Merge branch 'adobedeflate-fix' into 'master'
6629 Fix all remaining uses of legacy Deflate compression id and warn on use
6630
6631 See merge request libtiff/libtiff!245
6632
6633 2021-05-08 David Ryskalczyk <[email protected]>
6634
6635 Fix all remaining uses of legacy Deflate compression id and warn on use.
6636
6637 2021-05-06 Even Rouault <[email protected]>
6638
6639 Merge branch 'improve_tiffinfo_tiffdump_for_gdal_tags' into 'master'
6640 tiffinfo/tiffdump: improve output for GDAL tags
6641
6642 See merge request libtiff/libtiff!244
6643
6644 2021-05-03 Even Rouault <[email protected]>
6645
6646 Merge branch 'issue-252' into 'master'
6647 Prevent adding root directory to include list
6648
6649 Closes #252 et #218
6650
6651 See merge request libtiff/libtiff!243
6652
6653 2021-05-03 Even Rouault <[email protected]>
6654
6655 tiffinfo/tiffdump: improve output for GDAL tags.
6656
6657 2021-04-29 Timothy Lyanguzov <[email protected]>
6658
6659 Prevent adding root directory to include list.
6660 there is a file VERSION in the root directory which clashes with C++20 standard header <version>
6661 "config.h" file is created in "config" subdirectory to prevent adding "-I.." to generated Makefile
6662
6663 closes #218, #252
6664
6665 2021-04-23 Laszlo Boszormenyi (GCS) <[email protected]>
6666
6667 fix TIFFReadRawStrip man and HTML page typo.
6668 From https://github.com/conda-forge/libtiff-feedstock/blob/master/recipe/patches/fix_TIFFReadRawStrip_man_page_typo.patch
6669
6670 2021-04-20 Even Rouault <[email protected]>
6671
6672 HOWTO-RELEASE: update.
6673
6674 2021-04-18 Even Rouault <[email protected]>
6675
6676 Merge branch 'lerc_zstd_deflate' into 'master'
6677 Make LERC_SUPPORT conditional on ZLIB_SUPPORT. Make display of lerc options in tiffcp depend on actual zstd support.
6678
6679 See merge request libtiff/libtiff!239
6680
6681 2021-04-18 Miguel Medalha <[email protected]>
6682
6683 Make LERC_SUPPORT conditional on ZLIB_SUPPORT. Make display of lerc options in tiffcp depend on actual zstd support.
6684
6685 2021-04-17 Even Rouault <[email protected]>
6686
6687 Merge branch 'vtorri_xz' into 'master'
6688 automatic creation of xz archive when running make distcheck
6689
6690 See merge request libtiff/libtiff!238
6691
6692 2021-04-16 Even Rouault <[email protected]>
6693
6694 iptcutil.c: fix bug in EOF comparison, spotted on NetBSD 9 earmv7hf-el.
6695
6696 2021-04-16 Even Rouault <[email protected]>
6697
6698 libtiff v4.3.0 released
6699
6700 2021-04-15 Even Rouault <[email protected]>
6701
6702 Merge branch 'libjpeg12_cmake' into 'master'
6703 libtiff/tif_config.h.cmake.in: surround LIBJPEG_12_PATH by double quotes
6704
6705 See merge request libtiff/libtiff!237
6706
6707 2021-04-15 Even Rouault <[email protected]>
6708
6709 libtiff/tif_config.h.cmake.in: surround LIBJPEG_12_PATH by double quotes
6710
6711 2021-04-14 Even Rouault <[email protected]>
6712
6713 Merge branch 'lerc_api_change' into 'master'
6714 tif_lerc.c: cope with API breakage in liblerc master
6715
6716 See merge request libtiff/libtiff!236
6717
6718 2021-04-14 Even Rouault <[email protected]>
6719
6720 tif_lerc.c: cope with API breakage in liblerc master.
6721
6722 2021-04-08 Even Rouault <[email protected]>
6723
6724 libtiff: remove remaining #ifdef WIN32 and use PRI formatting.
6725
6726 2021-03-10 Even Rouault <[email protected]>
6727
6728 Merge branch 'kmilos-master-patch-73187' into 'master'
6729 tiffcp: Remove LZW help text, preset not supported
6730
6731 See merge request libtiff/libtiff!229
6732
6733 2021-03-10 Miloš Komarčević <[email protected]>
6734
6735 tiffcp: Remove LZW help text, preset not supported.
6736
6737 2021-03-10 Even Rouault <[email protected]>
6738
6739 Merge branch 'feature/lerc' into 'master'
6740 Add LERC Compression Plugin (closes: #213)
6741
6742 Closes #213
6743
6744 See merge request libtiff/libtiff!228
6745
6746 2021-03-10 Even Rouault <[email protected]>
6747
6748 Merge branch 'cmake-fixes' into 'master'
6749 CMake fixes
6750
6751 Closes #246 et #245
6752
6753 See merge request libtiff/libtiff!232
6754
6755 2021-03-09 Roger Leigh <[email protected]>
6756
6757 cmake: Correct FindCMath.
6758
6759 cmake: Correct ZSTD_USABLE typo.
6760
6761 2021-03-07 Roger Leigh <[email protected]>
6762
6763 Merge branch 'cmake-find-lib-prefixes' into 'master'
6764 cmake: Correct find lib prefixes for Deflate and JBIG
6765
6766 See merge request libtiff/libtiff!231
6767
6768 2021-03-07 Roger Leigh <[email protected]>
6769
6770 cmake: FindJBIG uses lib prefix on Windows.
6771
6772 cmake: FindDeflate uses lib prefix on Windows.
6773
6774 2021-03-07 Even Rouault <[email protected]>
6775
6776 TWebPDecode(): avoid potential overflow on multiplication (CID 1472928)
6777
6778 TIFFReadDirEntryArrayWithLimit(): avoid false positive from Coverity Scan regarding out-of-bounds access (CID 1472927)
6779
6780 tif_dirwrite.c: avoid setting a variable that is not read afterwards.
6781
6782 2021-03-07 Even Rouault <[email protected]>
6783
6784 Merge branch 'coverity-fixes' into 'master'
6785 Coverity fixes (high impact)
6786
6787 See merge request libtiff/libtiff!227
6788
6789 2021-03-07 Roger Leigh <[email protected]>
6790
6791 Fix high-impact Coverity issues (resource leaks).
6792 The issues are in the tests and tiffcrop, not the core library. Real issues, but not high risk.
6793
6794 Use to test if Coverity integration is performing properly on merge.
6795
6796 2021-03-07 Even Rouault <[email protected]>
6797
6798 Merge branch 'fix_tif_fax3_encoder_regression' into 'master'
6799 tif_fax3.c: fix master regression in encoder
6800
6801 See merge request libtiff/libtiff!230
6802
6803 2021-03-07 Even Rouault <[email protected]>
6804
6805 tif_fax3.c: fix master regression in encoder.
6806 Fix issue introduced in 39a74eede0455ec8ee334dcddf71f5354d508d8b
6807
6808 Spotted by gdal's tiff_write_76 test
6809
6810 2021-03-07 Antonio Valentino <[email protected]>
6811
6812 Add LERC support in CMake.
6813
6814 2021-03-07 Antonio Valentino <[email protected]>
6815
6816 Add LERC support in configure.ac and Makefile.am.
6817
6818 2021-03-07 Antonio Valentino <[email protected]>
6819
6820 Add LERC support to tiffcp.
6821
6822 2021-03-07 Antonio Valentino <[email protected]>
6823
6824 Add LERC plugin.
6825 The lerc plugin code has been copied from GDAL.
6826
6827 2021-03-06 Roger Leigh <[email protected]>
6828
6829 Merge branch 'display_tool_purpose' into 'master'
6830 TIFF tools: insert a line of text summarizing each tool's purpose
6831
6832 See merge request libtiff/libtiff!214
6833
6834 2021-03-06 Even Rouault <[email protected]>
6835
6836 Merge branch 'cmake-update' into 'master'
6837 CMake updates
6838
6839 See merge request libtiff/libtiff!224
6840
6841 2021-03-06 Even Rouault <[email protected]>
6842
6843 tiff.h: typo fix in comment.
6844
6845 2021-02-15 Roger Leigh <[email protected]>
6846
6847 Merge branch 'remove-travis' into 'master'
6848 ci: Remove unused Travis-CI support
6849
6850 See merge request libtiff/libtiff!226
6851
6852 2021-02-14 Roger Leigh <[email protected]>
6853
6854 ci: Remove unused Travis-CI support.
6855
6856 2021-02-14 Roger Leigh <[email protected]>
6857
6858 Merge branch 'ci-coverity' into 'master'
6859 Enable Coverity static analysis with CI pipeline
6860
6861 See merge request libtiff/libtiff!225
6862
6863 2021-02-14 Roger Leigh <[email protected]>
6864
6865 ci: Add Coverity static analysis job.
6866
6867 ci: Use custom libtiff CI image.
6868
6869 2021-02-13 Roger Leigh <[email protected]>
6870
6871 cmake: Add release target.
6872
6873 cmake: Remove empty contrib files.
6874
6875 cmake: Tidy toplevel.
6876
6877 cmake: Move pkg-config support to PkgConfig.cmake.
6878
6879 cmake: Move library feature options to CXXLibraryFeatures.cmake.
6880
6881 cmake: Move C++ support to CXXLibrary.cmake.
6882
6883 cmake: Add FindCMath to handle libm linking portably.
6884
6885 cmake: Tidy unused includes.
6886
6887 cmake: Rename release date to build date.
6888
6889 cmake: Compute timestamp portably.
6890
6891 cmake: Remove remaining uses of report_values()
6892
6893 cmake: Move JPEG12 checks to JPEGCodec.cmake.
6894
6895 cmake: Move OpenGL checks to OpenGLChecks.cmake.
6896
6897 cmake: Move OpenGL checks to OpenGLChecks.cmake.
6898
6899 cmake: Move WebP codec support to WebPCodec.cmake.
6900
6901 cmake: Use imported targets for WebP.
6902
6903 cmake: Add FindWebP.
6904
6905 cmake: Move ZSTD codec support to ZSTDCodec.cmake.
6906
6907 cmake: Use imported targets for ZSTD.
6908
6909 cmake: Add FindZSTD.
6910
6911 cmake: Move LZMA codec support to LZMACodec.cmake.
6912
6913 cmake: Use imported targets for LibLZMA.
6914
6915 cmake: Move JBIG codec support to JBIGCodec.cmake.
6916
6917 cmake: Use imported targets for JBIG.
6918
6919 cmake: Add FindJBIG.
6920
6921 cmake: Move PixarLog codec support to PixarLogCodec.cmake.
6922
6923 cmake: Report system name in configuration report.
6924
6925 cmake: Move JPEG codec support to JPEGCodec.cmake.
6926
6927 cmake: Use imported targets for JPEG.
6928
6929 cmake: Move Deflate codec support to DeflateCodec.cmake.
6930
6931 cmake: Use imported targets for ZLIB and Deflate.
6932
6933 cmake: Add FindDeflate.
6934
6935 cmake: Move symbol checks to SymbolChecks.cmake.
6936
6937 cmake: Move include checks to IncludeChecks.cmake.
6938
6939 cmake: Move all autotools logic to separate files.
6940
6941 cmake: Move internal codec options to InternalCodecs.cmake.
6942
6943 cmake: Move LFS check to LargeFileSupport.cmake.
6944
6945 cmake: Move Win32 IO feature to WindowsIOFeature.cmake.
6946
6947 cmake: Move processor capability checks to ProcessorChecks.cmake.
6948
6949 cmake: Move type size checks to TypeSizeChecks.cmake.
6950
6951 cmake: Move linker checks to LinkerChecks.cmake.
6952
6953 cmake: Move warning options to CompilerChecks.
6954
6955 cmake: Move version introspection to AutotoolsVersion.cmake.
6956
6957 cmake: Move compiler checks to CompilerChecks.cmake.
6958
6959 cmake: Split into helper scripts.
6960
6961 2021-02-08 Roger Leigh <[email protected]>
6962
6963 cmake: Use target_sources.
6964
6965 libport: Adjust header and library to only define and link if required.
6966 * Make libport an OBJECT library when in use, otherwise a dummy
6967 INTERFACE library
6968 * libport.h will work if getopt is present or not present. If
6969 present, will fall back to <unistd.h>, else will define
6970 symbols
6971 * Add generated libport_config.h to define HAVE_GETOPT and HAVE_UNISTD_H
6972 * dummy.c no longer needed with CMake
6973 * libtiff/libtiffxx no longer link with libport
6974
6975 cmake: Remove unnecessary extra_dist usage.
6976 Only makes sense in the context of Automake. Was carried over
6977 for reference while porting, but is not needed.
6978
6979 cmake: Update minimum version and policy version to 3.9.
6980
6981 2021-02-08 Roger Leigh <[email protected]>
6982
6983 Merge branch 'remove-nmake' into 'master'
6984 Remove NMake build support
6985
6986 See merge request libtiff/libtiff!223
6987
6988 2021-02-08 Roger Leigh <[email protected]>
6989
6990 Remove NMake build support.
6991 The functionality provided by the NMake build is now completely
6992 superseded by the CMake build.
6993
6994 2021-02-08 Even Rouault <[email protected]>
6995
6996 Merge branch 'warning-fixes' into 'master'
6997 Warning fixes
6998
6999 See merge request libtiff/libtiff!222
7000
7001 2021-02-07 Miguel Medalha <[email protected]>
7002
7003 Update tiffsplit.c.
7004
7005 Reinsert summary line lost after conflicting merge.
7006
7007 Merge branch 'master' into 'display_tool_purpose'
7008 # Conflicts:
7009 # tools/tiffsplit.c
7010
7011 2021-02-06 Roger Leigh <[email protected]>
7012
7013 ci: Enable fatal warnings with -Werror for AppVeyor/GCC.
7014
7015 ci: Enable fatal warnings with -Werror for GitLab CI.
7016
7017 tif_zstd.c: Remove unused variable warning.
7018
7019 custom_dir_EXIF_231: Remove case statement fallthrough.
7020
7021 custom_dir_EXIF_231: Correct use of strncpy.
7022
7023 Correct include order.
7024
7025 Eliminate implicit fallthrough usage.
7026 Use simple loops in place of manual loop unrolling. Rely on
7027 the compiler optimiser to unroll loops when appropriate.
7028
7029 Suppress potential unused variable warning.
7030
7031 Suppress warnings or avoid case statement fallthrough.
7032
7033 2021-02-05 Roger Leigh <[email protected]>
7034
7035 Merge branch 'c99-ssize_t-fixes' into 'master'
7036 C99 ssize_t fixes
7037
7038 Closes #239
7039
7040 See merge request libtiff/libtiff!219
7041
7042 2021-02-05 Even Rouault <[email protected]>
7043
7044 Merge branch 'tiffsplit-too-many-args' into 'master'
7045 tiffsplit.c: exit with EXIT_FAILURE if there are extra args on the command line
7046
7047 See merge request libtiff/libtiff!209
7048
7049 2021-02-05 Roger Leigh <[email protected]>
7050
7051 Add additional TIFF_SSIZE_FORMAT uses.
7052
7053 2021-02-04 Roger Leigh <[email protected]>
7054
7055 NMake fixes for size type formatting.
7056
7057 Add TIFF_SIZE_FORMAT for portable use of %z.
7058 MinGW64 does support %z, but it issues a compiler warning.
7059
7060 Align Autoconf tif_config.h and CMake tif_config.cmake.in.
7061
7062 Use TIFF_SSIZE_FORMAT for formatting tmsize_t.
7063
7064 2021-02-04 Even Rouault <[email protected]>
7065
7066 Merge branch 'remove-lcc' into 'master'
7067 Remove Makefile.lcc
7068
7069 See merge request libtiff/libtiff!221
7070
7071 2021-02-04 Even Rouault <[email protected]>
7072
7073 Merge branch 'remove-scons' into 'master'
7074 Remove SCons build
7075
7076 See merge request libtiff/libtiff!220
7077
7078 2021-02-03 Even Rouault <[email protected]>
7079
7080 Merge branch 'c99-snprintf' into 'master'
7081 Use C99 snprintf
7082
7083 See merge request libtiff/libtiff!217
7084
7085 2021-02-03 Roger Leigh <[email protected]>
7086
7087 Merge branch 'tiff2ps-const' into 'master'
7088 tiff2ps.c: string literals must be const char *, not char *
7089
7090 See merge request libtiff/libtiff!202
7091
7092 2021-02-03 Roger Leigh <[email protected]>
7093
7094 Remove SCons build.
7095 Unmaintained for 16 years.
7096
7097 2021-02-03 Roger Leigh <[email protected]>
7098
7099 Merge branch 'codec_summary' into 'master'
7100 Modify 'CMakeLists.txt' to produce a meaningful summary of external codecs
7101
7102 See merge request libtiff/libtiff!192
7103
7104 2021-02-03 Roger Leigh <[email protected]>
7105
7106 Remove Makefile.lcc.
7107 Unmaintained for 22 years.
7108
7109 2021-02-02 Roger Leigh <[email protected]>
7110
7111 Merge branch 'ci-32-bit' into 'master'
7112 ci: Build 32- and 64-bit MSVC variants
7113
7114 See merge request libtiff/libtiff!218
7115
7116 2021-02-01 Roger Leigh <[email protected]>
7117
7118 ci: Build 32- and 64-bit MSVC variants.
7119
7120 Use C99 snprintf.
7121
7122 2021-02-01 Even Rouault <[email protected]>
7123
7124 Merge branch 'c99-strtol' into 'master'
7125 Use C99 strtol, strtoul, strtoll and strtoull
7126
7127 See merge request libtiff/libtiff!216
7128
7129 2021-01-31 Even Rouault <[email protected]>
7130
7131 Merge branch 'c99-inline' into 'master'
7132 Use C99 inline
7133
7134 See merge request libtiff/libtiff!215
7135
7136 2021-01-31 Roger Leigh <[email protected]>
7137
7138 Use C99 strtol, strtoul, strtoll and strtoull.
7139
7140 tif_fax3: Use C99 inline.
7141
7142 Remove inline feature tests and defines.
7143 Available as a standard feature with C99.
7144
7145 2021-01-30 Miguel Medalha <[email protected]>
7146
7147 Update raw2tiff.c (remove duplicate description of tool)
7148
7149 2021-01-30 Roger Leigh <[email protected]>
7150
7151 Merge branch 'c99-format-strings' into 'master'
7152 C99 format strings
7153
7154 See merge request libtiff/libtiff!211
7155
7156 2021-01-29 Miguel Medalha <[email protected]>
7157
7158 Update tiffdither.c (2 tabs caused slight misalignment of lines in usage info output)
7159
7160 2021-01-28 Miguel Medalha <[email protected]>
7161
7162 Update ppm2tiff.c (slight misalignment of lines in usage info output)
7163
7164 Update tiffset.c (small misalignment of lines in usage info output)
7165
7166 2021-01-28 Medalha <[email protected]>
7167
7168 Display tool purpose.
7169
7170 2021-01-28 Thomas Bernard <[email protected]>
7171
7172 tiff2ps.c: string literals must be const char *, not char *
7173
7174 2021-01-28 Roger Leigh <[email protected]>
7175
7176 libtiff: Use PRI format flags and remove unnecessary casts.
7177
7178 2021-01-27 Roger Leigh <[email protected]>
7179
7180 ascii_tag: Use PRI format flags and remove unnecessary casts.
7181
7182 check_tag: Use PRI format flags and remove unnecessary casts.
7183
7184 custom_dir_EXIF_231: Use PRI format flags and remove unnecessary casts.
7185
7186 short_tag: Use PRI format flags and remove unnecessary casts.
7187
7188 strip_rw: Use PRI format flags and remove unnecessary casts.
7189
7190 fax2tiff: Use PRI format flags and remove unnecessary casts.
7191
7192 ppm2tiff: Correct format strings.
7193
7194 raw2tiff: Use PRI format flags and remove unnecessary casts.
7195
7196 rgb2ycbcr: Use PRI format flags and remove unnecessary casts.
7197
7198 tiff2pdf: Use PRI format flags and remove unnecessary casts.
7199
7200 tiff2ps: Use PRI format flags and remove unnecessary casts.
7201
7202 tiff2rgba: Use PRI format flags and remove unnecessary casts.
7203
7204 tiffcmp: Use PRI format flags and remove unnecessary casts.
7205
7206 tiffcp: Use PRI format flags and remove unnecessary casts.
7207
7208 tiffcrop: Use PRI format flags and remove unnecessary casts.
7209
7210 tiffinfo: Use PRI format flags and remove unnecessary casts.
7211
7212 tiffdump: Use PRI format flags and remove unnecessary casts.
7213
7214 2021-01-27 Even Rouault <[email protected]>
7215
7216 Merge branch 'c99-require-stdtypes' into 'master'
7217 Use standard C99 integer types
7218
7219 See merge request libtiff/libtiff!205
7220
7221 2021-01-26 Even Rouault <[email protected]>
7222
7223 Merge branch 'reserve_COMPRESSION_JXL' into 'master'
7224 tiff.h: reserve COMPRESSION_JXL=50002 for JPEGXL
7225
7226 See merge request libtiff/libtiff!210
7227
7228 2021-01-22 Even Rouault <[email protected]>
7229
7230 tiff.h: reserve COMPRESSION_JXL=50002 for JPEGXL.
7231
7232 2021-01-22 Kurt Schwehr <[email protected]>
7233
7234 tiffsplit.c: exit with EXIT_FAILURE if there are extra args on the command line
7235 e.g. tiffsplit in.tif a_prefix_ junk
7236
7237 2021-01-22 Roger Leigh <[email protected]>
7238
7239 Add and enable TIFF_DISABLE_DEPRECATED for internal use.
7240
7241 Add typedef deprecations for GCC/Clang and MSVC.
7242
7243 Use standard C99 integer types.
7244
7245 2021-01-20 Even Rouault <[email protected]>
7246
7247 Merge branch 'ubuntu-zstd-wepb' into 'master'
7248 gitlab-ci : use libzstd-dev and libwebp-dev ubuntu packages
7249
7250 See merge request libtiff/libtiff!208
7251
7252 2021-01-20 Thomas Bernard <[email protected]>
7253
7254 gitlab-ci : use libzstd-dev and libwebp-dev ubuntu packages.
7255 should replace !206
7256
7257 2021-01-20 Even Rouault <[email protected]>
7258
7259 Merge branch 'issue-232' into 'master'
7260 tiff2ps: exit the loop in case of error
7261
7262 Closes #232
7263
7264 See merge request libtiff/libtiff!201
7265
7266 2021-01-20 Even Rouault <[email protected]>
7267
7268 Merge branch 'tiffsplit-exit-status' into 'master'
7269 tiffsplit: Exit with EXIT_FAILURE if unable to open the input file.
7270
7271 See merge request libtiff/libtiff!207
7272
7273 2021-01-20 Even Rouault <[email protected]>
7274
7275 Merge branch 'config-cleanup' into 'master'
7276 Remove HAVE_INTTYPES_H, HAVE_LFIND & lfind, HAVE_SEARCH_H & include <search.h>
7277
7278 See merge request libtiff/libtiff!203
7279
7280 2021-01-19 Kurt Schwehr <[email protected]>
7281
7282 tiffsplit: Exit with EXIT_FAILURE if unable to open the input file.
7283
7284 2021-01-18 Even Rouault <[email protected]>
7285
7286 Merge branch 'tiffcmp' into 'master'
7287 tiffcmp: fix comparison with pixels that are fractional number of bytes
7288
7289 Closes #53
7290
7291 See merge request libtiff/libtiff!141
7292
7293 2021-01-15 Kurt Schwehr <[email protected]>
7294
7295 CMakeLists.txt: Remove search for lfind.
7296
7297 Remove HAVE_INTTYPES_H, HAVE_LFIND & lfind, HAVE_SEARCH_H & include <search.h>
7298 - HAVE_INTTYPES_H is replaced with TIFF_HAVE_INTTYPES_H
7299 - tif_dirinfo.c has a static td_lfind
7300
7301 2021-01-15 Thomas Bernard <[email protected]>
7302
7303 tiffcmp: fix comparison with pixels that are fractional number of bytes
7304 For example : 4bits per sample + 3 samples per pixel => 1.5 bytes per pixel
7305
7306 tiff2ps: exit the loop in case of error.
7307 fixes #232
7308
7309 2021-01-15 Even Rouault <[email protected]>
7310
7311 Merge branch 'rm-strcasecmp' into 'master'
7312 Remove port/strcasecmp.c as strcasecmp is not currently used in libtiff.
7313
7314 Closes #235
7315
7316 See merge request libtiff/libtiff!199
7317
7318 2021-01-15 Even Rouault <[email protected]>
7319
7320 Merge branch 'std-int-types' into 'master'
7321 Use standard C99 integer types
7322
7323 See merge request libtiff/libtiff!185
7324
7325 2021-01-13 Kurt Schwehr <[email protected]>
7326
7327 Remove port/strcasecmp.c as strcasecmp is not currently used in libtiff.
7328 Fixes #235
7329
7330 2021-01-10 Miguel Medalha <[email protected]>
7331
7332 Update CMakeLists.txt. Delete unnecessary line from libdeflate codec support section
7333
7334 2021-01-10 Roger Leigh <[email protected]>
7335
7336 Merge branch 'include_libport' into 'master'
7337 tiff tools and libtiff/mkg3states: include 'libport.h', remove local definition of 'getopt()'
7338
7339 See merge request libtiff/libtiff!198
7340
7341 2021-01-09 Miguel Medalha <[email protected]>
7342
7343 Update CMakeLists.txt. Cleanup of indentation space. Removal of leading '/' from webp include dir.
7344
7345 2021-01-09 miguel <[email protected]>
7346
7347 cmake: Use target_include_directories correctly.
7348
7349 2021-01-09 Roger Leigh <[email protected]>
7350
7351 cmake: Use target_include_directories correctly.
7352
7353 cmake: Drop unnecessary TOOL_INCLUDES.
7354
7355 2021-01-07 Roger Leigh <[email protected]>
7356
7357 cmake: Use target_include_directories correctly.
7358
7359 2021-01-07 miguel <[email protected]>
7360
7361 tiff tools and libtiff/mkg3states: include 'libport.h', remove local definition of 'getopt()'
7362
7363 2021-01-07 Miguel Medalha <[email protected]>
7364
7365 Update CMakeLists.txt.
7366
7367 2021-01-07 miguel <[email protected]>
7368
7369 tiff tools: include 'libport.h', remove local definition of 'getopt()'
7370
7371 2021-01-06 Roger Leigh <[email protected]>
7372
7373 Remove conditional use of <string.h>
7374
7375 cmake: Drop dlfcn.h check.
7376
7377 cmake: Remove duplicate line.
7378
7379 Use stdint.h types when available.
7380
7381 2021-01-05 Olivier Paquet <[email protected]>
7382
7383 Merge branch 'iptcutil' into 'master'
7384 contrib/iptcutil.c: set '#ifdef _WIN32' (was '#ifdef WIN32', which failed at build time)
7385
7386 See merge request libtiff/libtiff!197
7387
7388 2021-01-05 miguel <[email protected]>
7389
7390 tiff tools: include 'libport.h', remove local definition of 'getopt()'
7391
7392 contrib/iptcutil.c - set '#ifdef _WIN32' (was '#ifdef WIN32', which failed at build time)
7393
7394 2021-01-04 Even Rouault <[email protected]>
7395
7396 tools/CMakeLists.txt: add comment about rgb2ycbcr and thumbnail not to be installed
7397
7398 2021-01-04 Even Rouault <[email protected]>
7399
7400 Merge branch 'revert-5331ed49' into 'master'
7401 Revert "Merge branch 'install_targets' into 'master'"
7402
7403 See merge request libtiff/libtiff!196
7404
7405 2021-01-04 Even Rouault <[email protected]>
7406
7407 Merge branch 'drop-wince' into 'master'
7408 Remove non-functional WinCE support
7409
7410 See merge request libtiff/libtiff!188
7411
7412 2021-01-04 Even Rouault <[email protected]>
7413
7414 Merge branch 'drop-vms' into 'master'
7415 Remove non-functional VMS support
7416
7417 See merge request libtiff/libtiff!187
7418
7419 2021-01-03 Even Rouault <[email protected]>
7420
7421 Revert "Merge branch 'install_targets' into 'master'"
7422 This reverts merge request !193
7423
7424 2021-01-03 Even Rouault <[email protected]>
7425
7426 Merge branch 'tiffcp_b_parameter' into 'master'
7427 tiffcp: Remove unnecessary reference to compression from usage info for -b parameter
7428
7429 See merge request libtiff/libtiff!189
7430
7431 2021-01-03 Even Rouault <[email protected]>
7432
7433 Merge branch 'cmake-faxtable' into 'master'
7434 cmake: Add faxtable target
7435
7436 See merge request libtiff/libtiff!186
7437
7438 2021-01-03 Roger Leigh <[email protected]>
7439
7440 Merge branch 'install_targets' into 'master'
7441 Update 'CMakeLists.txt' from 'tools'.
7442
7443 See merge request libtiff/libtiff!193
7444
7445 2021-01-03 Miguel Medalha <[email protected]>
7446
7447 Update 'CMakeLists.txt' from 'tools'.
7448
7449 Update CMakeLists.txt.
7450
7451 2021-01-03 Roger Leigh <[email protected]>
7452
7453 Merge branch 'usage_info' into 'master'
7454 thumbnail: Rename constant variable 'stuff' to 'usage_info'
7455
7456 See merge request libtiff/libtiff!190
7457
7458 2021-01-03 Miguel Medalha <[email protected]>
7459
7460 Modified 'CMakeLists.txt' to produce a meaningful summary of external codecs support.
7461
7462 Removed unnecessary reference to compression from usage info for -b parameter
7463
7464 Constant variable 'stuff' renamed to 'usage_info' for consistency with the other tools
7465
7466 2021-01-02 Roger Leigh <[email protected]>
7467
7468 Remove non-functional VMS support.
7469
7470 Remove non-functional WinCE support.
7471
7472 2021-01-02 Roger Leigh <[email protected]>
7473
7474 Merge branch 'codespell' into 'master'
7475 Fix spelling mistakes.
7476
7477 See merge request libtiff/libtiff!183
7478
7479 2021-01-02 Kurt Schwehr <[email protected]>
7480
7481 ChangeLog: Remove extraneous character from prior commit - 00fe7828.
7482
7483 2021-01-02 Roger Leigh <[email protected]>
7484
7485 Merge branch 'codespell-custom_dir_EXIF_231' into 'master'
7486 custom_dir_EXIF_231.c: dos2unix and codespell
7487
7488 See merge request libtiff/libtiff!184
7489
7490 2021-01-01 Roger Leigh <[email protected]>
7491
7492 mkg3states: Sync generator with current generated file content.
7493
7494 cmake: Add faxtable and mkg3states targets.
7495
7496 2020-12-31 Kurt Schwehr <[email protected]>
7497
7498 custom_dir_EXIF_231.c: dos2unix and codespell.
7499 additional, Variable, greater, always
7500
7501 2020-12-31 Kurt Schwehr <[email protected]>
7502
7503 Fix spelling mistakes.
7504 Found with:
7505
7506 codespell --version
7507 1.17.1
7508
7509 2020-12-29 Even Rouault <[email protected]>
7510
7511 Merge branch 'remove-some-vms-ifdef' into 'master'
7512 Remove "ifdef VMS" that are no longer necessary.
7513
7514 See merge request libtiff/libtiff!181
7515
7516 2020-12-29 Kurt Schwehr <[email protected]>
7517
7518 Remove "ifdef VMS" that are no longer necessary.
7519 Both sides of the if are now the same.
7520
7521 2020-12-29 Bob Friesenhahn <[email protected]>
7522
7523 _TIFFBuiltinCODECS should be const.
7524
7525 2020-12-28 Even Rouault <[email protected]>
7526
7527 Merge branch 'issue-202' into 'master'
7528 tiff2pdf.c: check that tiff_datasize fits in a signed tsize_t
7529
7530 Closes #202
7531
7532 See merge request libtiff/libtiff!166
7533
7534 2020-12-28 Even Rouault <[email protected]>
7535
7536 Merge branch 'w_report-when-libdeflate-is-found' into 'master'
7537 CMakeLists.txt: Report when libdeflate is found
7538
7539 See merge request libtiff/libtiff!175
7540
7541 2020-12-28 Bob Friesenhahn <[email protected]>
7542
7543 Declare gpsFields as static const.
7544
7545 2020-12-28 Bob Friesenhahn <[email protected]>
7546
7547 Merge branch 'tools-reduce-initialized-data' into 'master'
7548 Reduce initialized data by making more data const and simplifying usage() implementation.
7549
7550 See merge request libtiff/libtiff!180
7551
7552 2020-12-28 Bob Friesenhahn <[email protected]>
7553
7554 Reduce initialized data by making more data const and simplifying usage() implementation.
7555
7556 2020-12-27 Bob Friesenhahn <[email protected]>
7557
7558 Merge branch 'master' into 'master'
7559 tiff tools: display of compression methods is now conditional instead of hard-coded
7560
7561 See merge request libtiff/libtiff!176
7562
7563 2020-12-27 Bob Friesenhahn <[email protected]>
7564
7565 Merge branch 'build' into 'master'
7566 Fix wrong URL for fetching config.guess and config.sub
7567
7568 See merge request libtiff/libtiff!177
7569
7570 2020-12-26 Chocobo1 <[email protected]>
7571
7572 Fix wrong URL for fetching config.guess and config.sub.
7573
7574 2020-12-25 miguel <[email protected]>
7575
7576 tiff tools: made display of compression methods and their parameters conditional on their actual availability
7577
7578 2020-12-20 Bob Friesenhahn <[email protected]>
7579
7580 autogen.sh now updates config.guess and config.sub from master gnulib version.
7581
7582 2020-12-19 Bob Friesenhahn <[email protected]>
7583
7584 Add a https://libtiff.gitlab.io/libtiff/ link.
7585
7586 Remove stray character in URL area.
7587
7588 Changes for 4.2.0 release.
7589
7590 Changes for 4.2.0 release.
7591
7592 2020-12-19 Bob Friesenhahn <[email protected]>
7593
7594 * libtiff 4.2.0 released.
7595
7596 * configure.ac: Pass tar-ustar option to AM_INIT_AUTOMAKE rather
7597 than tar-pax since ustar POSIX 1003.1-1988 format is more portable
7598 than PAX POSIX 1003.1-2001 format.
7599
7600 2020-12-12 Even Rouault <[email protected]>
7601
7602 Merge branch 'w_adjust-deflate_names' into 'master'
7603 Set 'deflate' to DEFLATE_NAMES, instead of 'libdeflate'
7604
7605 See merge request libtiff/libtiff!174
7606
7607 2020-12-12 Lemures Lemniscati <[email protected]>
7608
7609 Set 'deflate' to DEFLATE_NAMES, instead of 'libdeflate'
7610 'lib' will be automatically added as a prefix while doing find_library()
7611
7612 2020-12-12 Even Rouault <[email protected]>
7613
7614 DoubleToRational(): avoid casting NaN to uint32 (fixes #227)
7615
7616 2020-12-12 Even Rouault <[email protected]>
7617
7618 Merge branch 'fix_221' into 'master'
7619 tiffio.h: do not define __attribute__ but defines TIFF_ATTRIBUTE instead (fixes #221)
7620
7621 Closes #221
7622
7623 See merge request libtiff/libtiff!173
7624
7625 2020-12-12 Even Rouault <[email protected]>
7626
7627 tiffio.h: do not define __attribute__ but defines TIFF_ATTRIBUTE instead (fixes #221)
7628
7629 2020-12-08 Even Rouault <[email protected]>
7630
7631 TIFFReadDirEntryArrayWithLimit(): properly read from offline tag value when we clamp the number of strips to 1.
7632 Fixes regression of commit 7057734d986001b7fd6d2afde9667da7754ff2cc on reading
7633 a file with StripByteCounts with 1 element (broken) and StripOffsets with
7634 896 elements, and where StripOffsets[0] is correct
7635
7636 $ tiffdump foo.tif
7637 Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF>
7638 Directory 0: offset 25725448 (0x1888a08) next 0 (0)
7639 SubFileType (254) LONG (4) 1<0>
7640 ImageWidth (256) LONG (4) 1<640>
7641 ImageLength (257) LONG (4) 1<20098>
7642 BitsPerSample (258) SHORT (3) 1<16>
7643 Photometric (262) SHORT (3) 1<1>
7644 SamplesPerPixel (277) SHORT (3) 1<1>
7645 ResolutionUnit (296) SHORT (3) 1<2>
7646 StripByteCounts (279) LONG (4) 1<1806>
7647 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 ...>
7648
7649 2020-12-02 Even Rouault <[email protected]>
7650
7651 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
7652
7653 2020-11-27 Even Rouault <[email protected]>
7654
7655 Merge branch 'Jamaika1-master-patch-47839' into 'master'
7656 Change ULARGE_INTEGER to LARGE_INTEGER
7657
7658 See merge request libtiff/libtiff!170
7659
7660 2020-11-27 Even Rouault <[email protected]>
7661
7662 Merge branch 'Jamaika1-master-patch-46397' into 'master'
7663 Added stdint.h
7664
7665 See merge request libtiff/libtiff!171
7666
7667 2020-11-27 Jamaika <[email protected]>
7668
7669 Added stdint.h.
7670
7671 ``` 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); | ~~~~~~~~~~~~~~~^~~~~~~~~~ ```
7672
7673 2020-11-21 Even Rouault <[email protected]>
7674
7675 Merge branch 'issue-113' into 'master'
7676 tiffcrop: fix buffer overrun in extractContigSamples24bits()
7677
7678 Closes #113
7679
7680 See merge request libtiff/libtiff!169
7681
7682 2020-11-21 Even Rouault <[email protected]>
7683
7684 Merge branch 'issue-156' into 'master'
7685 tiff2pdf: Check output size before writing
7686
7687 Closes #156
7688
7689 See merge request libtiff/libtiff!168
7690
7691 2020-11-21 Even Rouault <[email protected]>
7692
7693 Merge branch 'issue-201' into 'master'
7694 tiff2pdf: enforce memory limit for tiled pictures too
7695
7696 Closes #201
7697
7698 See merge request libtiff/libtiff!167
7699
7700 2020-11-20 Even Rouault <[email protected]>
7701
7702 Merge branch 'issue-207' into 'master'
7703 enforce (configurable) memory limit in tiff2rgba
7704
7705 Closes #209 et #207
7706
7707 See merge request libtiff/libtiff!165
7708
7709 2020-11-20 Even Rouault <[email protected]>
7710
7711 tif_lzw.c: avoid false positive -Wnull-dereference of mingw32 gcc 7.3.
7712
7713 2020-11-17 Thomas Bernard <[email protected]>
7714
7715 tiffcrop: fix buffer overrun in extractContigSamples24bits()
7716 fixes #113
7717
7718 tiff2pdf: Check output size before writing.
7719 fixes #156
7720
7721 tiff2pdf: enforce memory limit for tiled pictures too.
7722 fixes #201
7723
7724 2020-11-15 Thomas Bernard <[email protected]>
7725
7726 tiff2rgba.1: -M option.
7727
7728 enforce (configurable) memory limit in tiff2rgba.
7729 fixes #207
7730 fixes #209
7731
7732 2020-11-14 Even Rouault <[email protected]>
7733
7734 Merge branch 'issue-220' into 'master'
7735 tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr
7736
7737 Closes #220
7738
7739 See merge request libtiff/libtiff!159
7740
7741 2020-11-14 Thomas Bernard <[email protected]>
7742
7743 tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr.
7744 fixes #220
7745
7746 2020-11-14 Even Rouault <[email protected]>
7747
7748 Merge branch 'issue-204' into 'master'
7749 avoid buffer overflow while writing jpeg end of file marker
7750
7751 Closes #204
7752
7753 See merge request libtiff/libtiff!161
7754
7755 2020-11-14 Even Rouault <[email protected]>
7756
7757 Merge branch 'issue-193' into 'master'
7758 fix buffer overflow in tiff2ps.c
7759
7760 Closes #193
7761
7762 See merge request libtiff/libtiff!162
7763
7764 2020-11-14 Even Rouault <[email protected]>
7765
7766 Merge branch 'skal65535-master-patch-91082' into 'master'
7767 More overflow fixes for large widths
7768
7769 See merge request libtiff/libtiff!164
7770
7771 2020-11-14 skal <[email protected]>
7772
7773 More overflow fixes for large width.
7774 Also: use INT_MAX instead of hard-coded constants.
7775
7776 2020-11-12 Even Rouault <[email protected]>
7777
7778 Merge branch 'skal65535-master-patch-56655' into 'master'
7779 Fix potential overflow in gtStripContig()
7780
7781 See merge request libtiff/libtiff!163
7782
7783 2020-11-12 Even Rouault <[email protected]>
7784
7785 Merge branch 'issue-211' into 'master'
7786 check for tile width overflow
7787
7788 Closes #211
7789
7790 See merge request libtiff/libtiff!160
7791
7792 2020-11-12 skal <[email protected]>
7793
7794 Fix potential overflow in gtStripContig()
7795 (w + w) might not fit in int32 if too large.
7796
7797 2020-11-09 Thomas Bernard <[email protected]>
7798
7799 tiff2ps.c: fix buffer overread.
7800 fixes #193
7801
7802 fix undefined behaviour (int shifted too much to the left)
7803
7804 avoid buffer overflow while writing jpeg end of file marker.
7805 fixes #204
7806
7807 gtTileContig(): check Tile width for overflow.
7808 fixes #211
7809
7810 fix warning messages (v32 is unsigned)
7811
7812 2020-10-26 Even Rouault <[email protected]>
7813
7814 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
7815
7816 2020-10-20 Even Rouault <[email protected]>
7817
7818 tif_webp.c: validate tile/strip dimension to avoid unsigned integer overflow in RGBA.size computation
7819
7820 2020-10-19 Even Rouault <[email protected]>
7821
7822 tif_zip.c: fix typo in comment.
7823
7824 2020-10-16 Even Rouault <[email protected]>
7825
7826 tiff.h: remove irrelevant warning about webp related pseudo-tags not being registered: they are purely internal libtiff concepts
7827
7828 2020-10-16 Even Rouault <[email protected]>
7829
7830 Merge branch 'libdeflate' into 'master'
7831 Add support for building against libdeflate for faster Zip/Deflate compression/decompression
7832
7833 See merge request libtiff/libtiff!158
7834
7835 2020-10-16 Even Rouault <[email protected]>
7836
7837 test: add testdeflatelaststripextradata.sh.
7838
7839 2020-10-16 Even Rouault <[email protected]>
7840
7841 Add support for optional building against libdeflate for faster Zip/Deflate compression/decompression.
7842 So we can have 2 kind of builds with the Zip/Deflate codec:
7843 - zlib only
7844 - zlib + libdeflate
7845
7846 Speed improvements in the 35%-50% range can be expected when libdeflate is used.
7847 Compression level up to 12 is now supported (capped to 9 when zlib is used).
7848 Still requires zlib for situations where libdeflate cannot be used (that
7849 is for scanline access, since libdeflate has no streaming mode)
7850
7851 Pseudo-tag TIFFTAG_DEFLATE_SUBCODEC=DEFLATE_SUBCODEC_ZLIB/DEFLATE_SUBCODEC_LIBDEFLATE
7852 is added to control which subcodec (zlib or libdeflate) should be used (it defaults
7853 of course to libdeflate, when it is available).
7854 This is mostly aimed at being used on the writing side, to be able to reproduce
7855 output of previous libtiff versions at a binary level, in situations where this would
7856 be really needed. Or as a safety belt in case there would be unforeseen issues
7857 with using libdeflate.
7858 It can be used to know when libdeflate is available at runtime (DEFLATE_SUBCODEC_LIBDEFLATE
7859 will be the default value in that situation).
7860
7861 Of course, deflate codestreams produced by libdeflate can be read by zlib, and vice-versa.
7862
7863 2020-10-14 Even Rouault <[email protected]>
7864
7865 tif_webp.c: fix compiler warnings with MSVC.
7866
7867 2020-10-12 Even Rouault <[email protected]>
7868
7869 Merge branch 'various_fixes' into 'master'
7870 Fix compiler warnings about unused variables when assert() expands to nothing
7871
7872 See merge request libtiff/libtiff!157
7873
7874 2020-10-12 Even Rouault <[email protected]>
7875
7876 .gitignore: add entries for new files in test/
7877
7878 Fix compiler warnings about unused variables when assert() expands to nothing
7879
7880 2020-10-09 Roger Leigh <[email protected]>
7881
7882 Merge branch '215-cygwin-appveyor-fail' into 'master'
7883 Update Appveyor CI build to build with VS2019 image
7884
7885 Closes #215
7886
7887 See merge request libtiff/libtiff!154
7888
7889 2020-10-09 Roger Leigh <[email protected]>
7890
7891 wip.
7892
7893 wip.
7894
7895 wip.
7896
7897 wip.
7898
7899 wip.
7900
7901 wip.
7902
7903 2020-10-09 Roger Leigh <[email protected]>
7904
7905 Merge branch 'TIFF-217_m_lib_path' into 'master'
7906 cmake: Do not use absolute libm path
7907
7908 Closes #217
7909
7910 See merge request libtiff/libtiff!156
7911
7912 2020-10-09 Roger Leigh <[email protected]>
7913
7914 cmake: Do not use absolute libm path.
7915
7916 2020-10-08 Even Rouault <[email protected]>
7917
7918 tif_fax3.h: restore systematic calls to CLEANUP_RUNS()
7919 now that SETVALUE() no longer cause overflows.
7920 Those were removed per b351db8be1b4d3f712bdb9424a79d3174cc03202 and
7921 3440ac216463fcad170bbb391491e69730a59ffa.
7922
7923 As SETVALUE() now returns an error, this allow the decoder to exit.
7924
7925 Otherwise, the assert(x == lastx) in _TIFFFax3fillruns() can trigger.
7926
7927 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26201
7928
7929 2020-10-06 Even Rouault <[email protected]>
7930
7931 Merge branch 'check_TIFFFlushData1' into 'master'
7932 FAX/JPEG/LZMA/PixarLog/ZIP/ZSTD codecs: make sure to check TIFFFlushData1() return value
7933
7934 See merge request libtiff/libtiff!155
7935
7936 2020-10-04 Even Rouault <[email protected]>
7937
7938 Merge branch 'shared-memory' into 'master'
7939 Set the --shared-memory linker flag for Emscripten builds
7940
7941 See merge request libtiff/libtiff!153
7942
7943 2020-10-03 Even Rouault <[email protected]>
7944
7945 tiff2rgba.c: fix -Wold-style-declaration warning.
7946
7947 FAX/JPEG/LZMA/PixarLog/ZIP/ZSTD codecs: make sure to check TIFFFlushData1() return value
7948
7949 2020-09-26 Even Rouault <[email protected]>
7950
7951 tif_fax3.h: extra buffer overflow checks. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25934
7952
7953 2020-09-25 Roger Leigh <[email protected]>
7954
7955 wip.
7956
7957 wip.
7958
7959 wip.
7960
7961 wip.
7962
7963 wip.
7964
7965 wip.
7966
7967 Update AppVeyor image.
7968
7969 test-appveyor.
7970
7971 2020-09-24 Attila Oláh <[email protected]>
7972
7973 Also pass --shared-memory to raw_decode.
7974 This is needed when building for Emscripten with *both* WEBP and JPEG
7975 support.
7976
7977 Set the --shared-memory linker flag for Emscripten builds.
7978 This is only needed when building with WEBP support, which uses atomics,
7979 therefore the linker needs the --shared-memory flag. The flag cannot be
7980 added globally because not all executables link against libwebp.
7981
7982 2020-09-22 Even Rouault <[email protected]>
7983
7984 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
7985
7986 2020-09-11 Even Rouault <[email protected]>
7987
7988 Merge branch 'fix-float-compare' into 'master'
7989 Fix comparison for max negative float value.
7990
7991 See merge request libtiff/libtiff!152
7992
7993 2020-09-11 Dirk Lemstra <[email protected]>
7994
7995 Fix comparison for max negative float value.
7996
7997 2020-09-07 Even Rouault <[email protected]>
7998
7999 Fax3PreDecode(): reset curruns and refruns state variables.
8000 to avoid out-of-bounds write triggered by GDAL when repeatedly
8001 reading a corrupt strip.
8002
8003 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25493
8004
8005 2020-06-06 Thomas Bernard <[email protected]>
8006
8007 Merge branch 'issue-17' into 'master'
8008 normalize tools behaviour regarding -h
8009
8010 Closes #17
8011
8012 See merge request libtiff/libtiff!115
8013
8014 2020-05-31 Even Rouault <[email protected]>
8015
8016 TWebPSetupEncode(): fix logic problem (and instead of or) in test that checks input is 8bit unsigned data
8017
8018 2020-05-12 Even Rouault <[email protected]>
8019
8020 TIFFGetConfiguredCODECs(): fix to avoid wrong structure to be returned for registered (ie non built-in) codecs
8021
8022 2020-05-09 Even Rouault <[email protected]>
8023
8024 Merge branch 'zstd-webp-update' into 'master'
8025 gitlab-ci: use latest zstd and webp versions
8026
8027 See merge request libtiff/libtiff!148
8028
8029 2020-05-09 Even Rouault <[email protected]>
8030
8031 Merge branch 'deprecated' into 'master'
8032 ojpeg: s/Depreciated/Deprecated/
8033
8034 See merge request libtiff/libtiff!149
8035
8036 2020-05-09 Aaron Boxer <[email protected]>
8037
8038 ojpeg: s/Depreciated/Deprecated/
8039
8040 2020-04-27 Even Rouault <[email protected]>
8041
8042 Fix typos.
8043
8044 tif_jpeg.c: avoid potential division in previous fix (master only)
8045
8046 2020-04-26 Thomas Bernard <[email protected]>
8047
8048 gitlab-ci: use latest zstd and webp versions.
8049
8050 2020-04-26 Even Rouault <[email protected]>
8051
8052 tiff.h: fixes to use ASCII only characters (master only)
8053
8054 2020-04-26 Thomas Bernard <[email protected]>
8055
8056 tiffsplit: use EXIT_SUCCESS / EXIT_FAILURE.
8057
8058 tiffset: print usage on stdout when -h is used.
8059 also use EXIT_FAILURE / EXIT_SUCCESS
8060 see #17
8061
8062 tiffmedian: shopw usage on stdout when -h is used.
8063 also use EXIT_SUCCESS/EXIT_FAILURE
8064 see #17
8065
8066 tiffinfo: print usage on stdout when -h is used.
8067 also use EXIT_FAILURE / EXIT_SUCCESS
8068 see #17
8069
8070 raw2tiff: print usage to stdout when -h is used.
8071 see #17
8072
8073 tiff2pdf: print usage on stdout when -h is used.
8074 see #17
8075
8076 tiffgt: output usage on stdout with -h.
8077 also use EXIT_SUCCESS / EXIT_FAILURE
8078
8079 tiffdump: use EXIT_FAILURE / EXIT_SUCCESS.
8080 see #17
8081
8082 tiffdither: print usage on stdout when -h is used.
8083 see #17
8084
8085 2020-04-26 Thomas Bernard <[email protected]>
8086
8087 tiffcrop: -h / -v prints usage/version to stdout.
8088 also uses the standard C EXIT_SUCCESS / EXIT_FAILURE
8089 macros
8090
8091 see #17
8092
8093 2020-04-26 Thomas Bernard <[email protected]>
8094
8095 tiffcp: output usage to stdout when using -h.
8096 also use EXIT_FAILURE / EXIT_SUCCESS
8097 see #17
8098
8099 tiffcmp: match exit status for posix cmp and diff tools.
8100
8101 tiff2rgba: output usage to stdout when using -h.
8102 also uses std C EXIT_FAILURE / EXIT_SUCCESS
8103 see #17
8104
8105 tiff2ps: sue EXIT_FAILURE / EXIT_SUCCESS.
8106 see #17
8107
8108 tiff2bw: output usage on stdout when using -h.
8109 also uses EXIT_SUCCESS / EXIT_FAILURE
8110 see #17
8111
8112 thumbnail: use EXIT_FAILURE / EXIT_SUCCESS.
8113 the -h option was already used so it cannot be used for help/usage
8114 see #17
8115
8116 rgb2ycbcr: use EXIT_FAILURE / EXIT_SUCCESS.
8117 the -h option was already used so it cannot be used for help/usage
8118 see #17
8119
8120 ppm2tiff: output usage to stdout when using -h option.
8121 also uses std C EXIT_SUCCESS / EXIT_FAILURE
8122 see #17
8123
8124 pal2rgb: output usage to stdout when -h is used.
8125 see #17
8126
8127 fax2tiff.c: print usage on stdout when using -h option.
8128 see #17
8129
8130 fax2ps: output usage to stdout when using -h option.
8131 also use EXIT_SUCCESS, EXIT_FAILURE from C standard
8132
8133 2020-04-25 Even Rouault <[email protected]>
8134
8135 Merge branch 'jpeg_multiscan_dos_logic' into 'master'
8136 tif_jpeg.c: revise logic to detect potential excessive memory usage when...
8137
8138 See merge request libtiff/libtiff!147
8139
8140 2020-04-24 Even Rouault <[email protected]>
8141
8142 Merge branch 'issue-176' into 'master'
8143 tiff2pdf: get rid of uninitialized memory content
8144
8145 Closes #176
8146
8147 See merge request libtiff/libtiff!143
8148
8149 2020-04-24 Even Rouault <[email protected]>
8150
8151 tif_jpeg.c: revise logic to detect potential excessive memory usage when decoding multiscan JPEG compressed images
8152
8153 2020-04-19 Thomas Bernard <[email protected]>
8154
8155 tiff2pdf: test the return code of TIFFReadRawStrip() and TIFFReadRawTile()
8156
8157 tiff2pdf.c: fix some whitespace problems in source.
8158
8159 tiff2pdf: get rid of uninitialized memory content.
8160 fixes #176
8161
8162 2020-04-19 Even Rouault <[email protected]>
8163
8164 Merge branch 'issue-18' into 'master'
8165 tiffset: pass size for TIFFTAG_INKNAMES
8166
8167 Closes #18
8168
8169 See merge request libtiff/libtiff!146
8170
8171 2020-04-18 Olivier Paquet <[email protected]>
8172
8173 Merge branch 'issue-80' into 'master'
8174 tiffinfo: fix dump of Tiled images
8175
8176 Closes #80
8177
8178 See merge request libtiff/libtiff!144
8179
8180 2020-04-15 Even Rouault <[email protected]>
8181
8182 Fix wrong file size checks for memory-mapped BigTIFF files that could lead to image rejection
8183
8184 2020-04-05 Thomas Bernard <[email protected]>
8185
8186 tiffset: pass size for TIFFTAG_INKNAMES.
8187 Uses TIFFFieldPassCount() to know which arguments need to be
8188 passed to TiffSetField()
8189
8190 fixes #18
8191 see http://bugzilla.maptools.org/show_bug.cgi?id=2202
8192
8193 2020-04-04 Thomas Bernard <[email protected]>
8194
8195 tiffinfo: showdata for tiled images.
8196
8197 tiffinfo: fix dump of Tiled images.
8198 fixes #80
8199
8200 2020-04-03 Even Rouault <[email protected]>
8201
8202 Merge branch 'issue-117' into 'master'
8203 tiffcrop: enforce memory allocation limit
8204
8205 Closes #117
8206
8207 See merge request libtiff/libtiff!140
8208
8209 2020-04-03 Thomas Bernard <[email protected]>
8210
8211 tiffcrop: enforce memory allocation limit.
8212 uses -k option to change limit (default to 256MiB)
8213 fixes #117 / http://bugzilla.maptools.org/show_bug.cgi?id=2757
8214
8215 2020-04-02 Even Rouault <[email protected]>
8216
8217 Merge branch 'issue-45' into 'master'
8218 tiffcp: disable strip chopping when trying to convert to JBIG compression
8219
8220 Closes #45
8221
8222 See merge request libtiff/libtiff!138
8223
8224 2020-04-02 Even Rouault <[email protected]>
8225
8226 Merge branch 'issue-124' into 'master'
8227 TIFFGetFields(3tiff): TIFFTAG_*BYTECOUNTS TIFFTAG_*OFFSETS are uint64
8228
8229 Closes #124
8230
8231 See merge request libtiff/libtiff!137
8232
8233 2020-04-02 Even Rouault <[email protected]>
8234
8235 Merge branch 'aix_itrunc' into 'master'
8236 Rename itrunc to fix name clash with a different itrunc in math.h on AIX. Fixes issue #189
8237
8238 Closes #189
8239
8240 See merge request libtiff/libtiff!139
8241
8242 2020-04-01 Rob Boehne <[email protected]>
8243
8244 Rename itrunc to fix name clash with a different itrunc in math.h on AIX. Fixes issue #189
8245
8246 2020-04-01 Thomas Bernard <[email protected]>
8247
8248 tiffcp: disable strip chopping when trying to convert to JBIG compression
8249 fixes #45
8250
8251 2020-03-29 Thomas Bernard <[email protected]>
8252
8253 TIFFGetFields(3tiff): TIFFTAG_*BYTECOUNTS TIFFTAG_*OFFSETS are uint64.
8254 fixes #124 / http://bugzilla.maptools.org/show_bug.cgi?id=2774
8255
8256 2020-03-29 Even Rouault <[email protected]>
8257
8258 Merge branch 'issue-48' into 'master'
8259 tiff2pdf: fix "raw" copy of Deflate streams
8260
8261 Closes #48
8262
8263 See merge request libtiff/libtiff!136
8264
8265 2020-03-27 Thomas Bernard <[email protected]>
8266
8267 tiff2pdf: fix "raw" copy of Deflate streams.
8268 The Predictor parameter was not copied from the source tiff to the PDF.
8269 fixes #48 / http://bugzilla.maptools.org/show_bug.cgi?id=2442
8270
8271 2020-03-26 Thomas Bernard <[email protected]>
8272
8273 tif_fax3: quit Fax3Decode2D() when a buffer overflow occurs.
8274 fixes #186
8275
8276 2020-03-24 Even Rouault <[email protected]>
8277
8278 Merge branch 'issue-143-144' into 'master'
8279 tiffdump: avoid unaligned memory access
8280
8281 Closes #144 et #143
8282
8283 See merge request libtiff/libtiff!133
8284
8285 2020-03-24 Even Rouault <[email protected]>
8286
8287 Merge branch 'issue-133' into 'master'
8288 tiff2pdf: avoid divide by 0
8289
8290 Closes #133
8291
8292 See merge request libtiff/libtiff!126
8293
8294 2020-03-24 Thomas Bernard <[email protected]>
8295
8296 tiff2pdf: normalizePoint() macro to normalize the white point.
8297
8298 2020-03-23 Thomas Bernard <[email protected]>
8299
8300 tiffdump: avoid unaligned memory access.
8301 fixes #143
8302 fixes #144
8303
8304 2020-03-23 Even Rouault <[email protected]>
8305
8306 Merge branch 'out-of-memory' into 'master'
8307 tiffcp/tiff2pdf/tiff2ps: enforce maximum malloc size
8308
8309 Closes #153, #84, #116 et #115
8310
8311 See merge request libtiff/libtiff!130
8312
8313 2020-03-23 Even Rouault <[email protected]>
8314
8315 Merge branch 'issue-157' into 'master'
8316 tiffset: check memory allocation
8317
8318 Closes #157
8319
8320 See merge request libtiff/libtiff!132
8321
8322 2020-03-23 Even Rouault <[email protected]>
8323
8324 Merge branch 'issue-185' into 'master'
8325 tif_fax3: more buffer overflow checks in Fax3Decode2D()
8326
8327 Closes #185
8328
8329 See merge request libtiff/libtiff!131
8330
8331 2020-03-23 Thomas Bernard <[email protected]>
8332
8333 tiffset: check memory allocation.
8334 fixes #157 / http://bugzilla.maptools.org/show_bug.cgi?id=2850
8335
8336 tif_fax3: more buffer overflow checks in Fax3Decode2D()
8337 fixes #185
8338
8339 2020-03-21 Thomas Bernard <[email protected]>
8340
8341 tiff2ps: enforce memory allocation limit.
8342 fixes #153 / http://bugzilla.maptools.org/show_bug.cgi?id=2845
8343
8344 tiff2pdf: enforce maximum data size.
8345 fixes #116 / http://bugzilla.maptools.org/show_bug.cgi?id=2756
8346 fixes #84 / http://bugzilla.maptools.org/show_bug.cgi?id=2683
8347
8348 update man page for tiffcp regarding the -m option.
8349
8350 tiffcp.c: _TIFFmalloc() => limitMalloc()
8351
8352 2020-03-21 Thomas Bernard <[email protected]>
8353
8354 tiffcp: enforce maximum malloc size.
8355 default is 256MB. use -m option to change
8356
8357 fixes #115 / http://bugzilla.maptools.org/show_bug.cgi?id=2755
8358
8359 2020-03-21 Even Rouault <[email protected]>
8360
8361 Merge branch 'issue-184' into 'master'
8362 CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian
8363
8364 Closes #184
8365
8366 See merge request libtiff/libtiff!127
8367
8368 2020-03-21 Even Rouault <[email protected]>
8369
8370 Merge branch 'issue-44' into 'master'
8371 tiff2pdf: "" causes the relevant argument not to be written
8372
8373 Closes #44
8374
8375 See merge request libtiff/libtiff!128
8376
8377 2020-03-21 Even Rouault <[email protected]>
8378
8379 Merge branch 'issue-56' into 'master'
8380 fix man for TIFFReadEncodedStrip(), TIFFStripSize, TIFFVStripSize, TIFFRawStripSize
8381
8382 Closes #56
8383
8384 See merge request libtiff/libtiff!129
8385
8386 2020-03-20 Thomas Bernard <[email protected]>
8387
8388 fix man for TIFFReadEncodedStrip(), TIFFStripSize, TIFFVStripSize, TIFFRawStripSize
8389 fixes #56
8390 http://bugzilla.maptools.org/show_bug.cgi?id=2507
8391
8392 tiff2pdf: "" causes the relevant argument not to be written.
8393 fixes #44
8394
8395 CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian.
8396 fixes #184
8397
8398 2020-03-17 Thomas Bernard <[email protected]>
8399
8400 tiff2pdf: avoid divide by 0.
8401 fixes #133 http://bugzilla.maptools.org/show_bug.cgi?id=2796
8402
8403 2020-03-17 Even Rouault <[email protected]>
8404
8405 Merge branch 'issue-22' into 'master'
8406 do not _tiffMapProc 0 size files
8407
8408 Closes #22
8409
8410 See merge request libtiff/libtiff!125
8411
8412 2020-03-13 Thomas Bernard <[email protected]>
8413
8414 tif_win32.c: do not _tiffMapProc() 0 sized files.
8415 see #22
8416
8417 tif_unix.c: do not _tiffMapProc 0 size files.
8418 fixes #22
8419 http://bugzilla.maptools.org/show_bug.cgi?id=2249
8420
8421 2020-03-12 Even Rouault <[email protected]>
8422
8423 tif_fax3.c: fix warning C4018: '<': signed/unsigned mismatch introduced in past commits
8424
8425 2020-03-11 Even Rouault <[email protected]>
8426
8427 tiff.h: mention TIFFTAG_RPCCOEFFICIENT, TIFFTAG_TIFF_RSID, TIFFTAG_GEO_METADATA
8428
8429 2020-03-11 Even Rouault <[email protected]>
8430
8431 Merge branch 'issue-60' into 'master'
8432 added support for more private tags
8433
8434 Closes #60
8435
8436 See merge request libtiff/libtiff!124
8437
8438 2020-03-11 Even Rouault <[email protected]>
8439
8440 Merge branch 'issue-160' into 'master'
8441 Fax3SetupState(): check consistency of rowbytes and rowpixels
8442
8443 Closes #160
8444
8445 See merge request libtiff/libtiff!123
8446
8447 2020-03-11 Thomas Bernard <[email protected]>
8448
8449 added support for more private tags.
8450 see https://gitlab.com/libtiff/libtiff/-/issues/60
8451 bugzilla.maptools.org/show_bug.cgi?id=2525
8452
8453 closes #60
8454
8455 original author : [email protected]
8456
8457 2020-03-11 Thomas Bernard <[email protected]>
8458
8459 Fax3SetupState(): check consistency of rowbytes and rowpixels.
8460 also add some parameter documentation to Fax3Decode1D()
8461
8462 fixes #160
8463 http://bugzilla.maptools.org/show_bug.cgi?id=2854
8464
8465 2020-03-10 Even Rouault <[email protected]>
8466
8467 Merge branch 'issue-11-const-pointers' into 'master'
8468 Make pointers returned via TIFFGetField const
8469
8470 Closes #11
8471
8472 See merge request libtiff/libtiff!118
8473
8474 2020-03-10 Even Rouault <[email protected]>
8475
8476 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
8477
8478 2020-03-09 Even Rouault <[email protected]>
8479
8480 Merge branch 'issue-52' into 'master'
8481 contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits
8482
8483 Closes #52
8484
8485 See merge request libtiff/libtiff!121
8486
8487 2020-03-09 Thomas Bernard <[email protected]>
8488
8489 contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits.
8490 fixes #52
8491 http://bugzilla.maptools.org/show_bug.cgi?id=2469
8492
8493 2020-03-08 Even Rouault <[email protected]>
8494
8495 Merge branch 'issue-58' into 'master'
8496 Make TIFFTAG_CFAPATTERN variable count
8497
8498 Closes #58
8499
8500 See merge request libtiff/libtiff!120
8501
8502 2020-03-08 Even Rouault <[email protected]>
8503
8504 Merge branch 'issue-158-no-predictor-in-webp' into 'master'
8505 TIFFTAG_PREDICTOR is not supported for WebP
8506
8507 Closes #158
8508
8509 See merge request libtiff/libtiff!119
8510
8511 2020-03-08 Sam Hasinoff <[email protected]>
8512
8513 Make TIFFTAG_CFAPATTERN variable count.
8514 The TIFFTAG_CFAPATTERN tag (33422) from TIFF/EP, recently introduced in libtiff
8515 3363eda09d082e3e1dfffa6281f53085cac51ad3 / http://bugzilla.maptools.org/show_bug.cgi?id=2457
8516 is described as having a fixed count of 4.
8517 But the TIFF/EP spec says this should support a variable count (= CFARepeatRows * CFARepeatCols):
8518
8519 TIFF/EP, ISO 12234-2:2001
8520 http://www.barrypearson.co.uk/top2009/downloads/TAG2000-22_DIS12234-2.pdf
8521 page 18 and 26
8522
8523 2020-03-08 Thomas Bernard <[email protected]>
8524
8525 TIFFTAG_PREDICTOR is not supported for WebP.
8526 fixes #158
8527 https://gitlab.com/libtiff/libtiff/-/issues/158
8528
8529 this bug was introduced by 9eacd59fecc4ef593ac17689bc530ab451c8ec14
8530 merge request !32
8531
8532 2020-03-07 Adam Goode <[email protected]>
8533
8534 Make the default whitepoint and ycbcrcoeffs arrays const.
8535 Now that we are returning const pointers in TIFFGetFieldDefaulted,
8536 we can now make these static default arrays const.
8537
8538 see #11
8539
8540 2020-03-07 Adam Goode <[email protected]>
8541
8542 Make pointers returned via TIFFGetField const.
8543 According to http://bugzilla.maptools.org/show_bug.cgi?id=2125#c6
8544 callers are not allowed to modify pointer or array values returned from
8545 TIFFGetField or the like. So, make this explicit in the documentation
8546 by specifying these things as const. Note that this is not an ABI
8547 change, since C does not encode const in libraries. Also, this is
8548 not really an API change, since the varargs call strips away all
8549 the types anyway. So it really is more of a documentation change.
8550
8551 fixes #11
8552
8553 2020-03-07 Even Rouault <[email protected]>
8554
8555 CMake: Skip custom_dir_EXIF_231 test on shared builds to avoid issues on Windows
8556
8557 2020-03-07 Even Rouault <[email protected]>
8558
8559 Merge branch 'EXIF231_GPS_upgrade' into 'master'
8560 EXIF 2.32 and GPS TIFF-tags and functionality upgraded.
8561
8562 See merge request libtiff/libtiff!91
8563
8564 2020-03-07 Su_Laus <[email protected]>
8565
8566 EXIF 2.32 and GPS tags and functionality upgraded.
8567 - Existing EXIF field definition of tags is upgraded to EXIF version 2.3.2
8568 - EXIF-GPS structure, tags and access functions are added as special CustomDirectory (like it was done for EXIF).
8569 - Test program custom_dir_EXIF_231.c added to test writing/reading of EXID IFD and GPS IFD tags
8570 and to highlight some quirks of IFD-handling and peculiarities of reading/writing the different data types.
8571 - Reading error for FileSource and SceneType tags corrected.
8572
8573 - EXIF_GPS_upgrade rebased onto c8c5309b765ef4ff097d2aaffbdb8f403db8967d (Merge branch 'Rational2DoublePrecision_correction' into 'master')
8574 and adapted:
8575 - tif_dirinfo.c: All rational tags set to TIFF_SETGET_FLOAT but only the GPSTAG_ tags set to TIFF_SETGET_DOUBLE.
8576 - custom_dir_EXIF_231.c: Editorials amended and gcc warnings fixed.
8577 - CMakeLists.txt: add_test(NAME "custom_dir_EXIF_231" COMMAND "custom_dir_EXIF_231") added.
8578
8579 2020-03-07 Even Rouault <[email protected]>
8580
8581 Merge branch 'issue-55' into 'master'
8582 ppm2tiff: support any bps value from 1 to 16
8583
8584 Closes #55
8585
8586 See merge request libtiff/libtiff!106
8587
8588 2020-03-07 Thomas Bernard <[email protected]>
8589
8590 ppm2tiff: Add test for 16bpc PPM.
8591
8592 ppm2tiff: remove unused argument warning.
8593
8594 2020-03-07 Ludolf Holzheid <[email protected]>
8595
8596 ppm2tiff: support any bps value from 1 to 16.
8597 fix #55
8598 http://bugzilla.maptools.org/show_bug.cgi?id=2505
8599
8600 Patch originally submitted by Ludolf Holzheid <[email protected]>
8601
8602 2020-03-06 Even Rouault <[email protected]>
8603
8604 Merge branch 'fax-test' into 'master'
8605 add test for fax4 decoding
8606
8607 See merge request libtiff/libtiff!114
8608
8609 2020-03-05 Thomas Bernard <[email protected]>
8610
8611 add test for fax4 decoding.
8612 This will check for regression on #46
8613 https://gitlab.com/libtiff/libtiff/issues/46
8614 http://bugzilla.maptools.org/show_bug.cgi?id=2434
8615
8616 2020-03-05 Even Rouault <[email protected]>
8617
8618 Merge branch 'freebsd-tests' into 'master'
8619 make tests pass under FreeBSD.
8620
8621 See merge request libtiff/libtiff!113
8622
8623 2020-03-05 Thomas Bernard <[email protected]>
8624
8625 make tests pass under FreeBSD.
8626 the -I option for the GNU diff and the FreeBSD diff
8627 behaves differently regarding escaping the ( ) and |
8628
8629 By using two -I option, we avoid using such charracters.
8630
8631 2020-03-05 Even Rouault <[email protected]>
8632
8633 Merge branch 'issue-31' into 'master'
8634 HTML
8635
8636 Closes #31
8637
8638 See merge request libtiff/libtiff!111
8639
8640 2020-03-05 Even Rouault <[email protected]>
8641
8642 Merge branch 'issue-179' into 'master'
8643 tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()
8644
8645 Closes #179
8646
8647 See merge request libtiff/libtiff!112
8648
8649 2020-03-05 Thomas Bernard <[email protected]>
8650
8651 v4.1.0.html: fix for validation.
8652 long <!----------------> comments were replaced
8653 because they confused some parsers
8654
8655 add DOCTYPE on v*.html.
8656
8657 fix HTML files so they are valid according to https://validator.w3.org.
8658
8659 2020-03-05 Thomas Bernard <[email protected]>
8660
8661 tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()
8662 fixes #179
8663
8664 this fixes the regression introduced in 02bb0175 / 72c4acef
8665 ( merge request !110 )
8666
8667 It may be a better fix to do the overflow check in SETVALUE() but the
8668 macro do { } while(0) construct makes it difficult to quit the loop
8669 properly.
8670
8671 2020-03-01 Thomas Bernard <[email protected]>
8672
8673 index.html: fix unclosed <tt> tag.
8674
8675 2020-03-01 Thomas Bernard <[email protected]>
8676
8677 html: do not force colors (which are default anyway)
8678 If needed, style should be set using CSS.
8679
8680 fixes #31
8681 https://gitlab.com/libtiff/libtiff/issues/31
8682 http://bugzilla.maptools.org/show_bug.cgi?id=2326
8683
8684 2020-03-01 Even Rouault <[email protected]>
8685
8686 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
8687
8688 2020-03-01 Even Rouault <[email protected]>
8689
8690 Merge branch 'issue-46' into 'master'
8691 fix decoding of fax4 images
8692
8693 Closes #46
8694
8695 See merge request libtiff/libtiff!110
8696
8697 2020-02-29 Thomas Bernard <[email protected]>
8698
8699 tif_fax3: better fix for CVE-2011-0192.
8700 There are some legitimate case which were forbidden by the previous fix
8701
8702 tif_fax3.h: allow 0 length run in DECODE2D.
8703 fixes #46
8704 https://gitlab.com/libtiff/libtiff/issues/46
8705 http://bugzilla.maptools.org/show_bug.cgi?id=2434
8706
8707 2020-02-29 Even Rouault <[email protected]>
8708
8709 Merge branch 'mingwlibm' into 'master'
8710 Don't use libm with libtiff due to conflict with libmsvcrt
8711
8712 See merge request libtiff/libtiff!73
8713
8714 2020-02-29 Even Rouault <[email protected]>
8715
8716 Merge branch 'Rational2DoublePrecision_correction' into 'master'
8717 tif_dirwrite.c: bugfix DoubleToSrational() for plain signed integers
8718
8719 See merge request libtiff/libtiff!109
8720
8721 2020-02-29 Su_Laus <[email protected]>
8722
8723 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).
8724
8725 2020-02-29 Even Rouault <[email protected]>
8726
8727 Merge branch 'issue-174' into 'master'
8728 tif_fax3.c: check buffer overflow in Fax4Decode()
8729
8730 Closes #174
8731
8732 See merge request libtiff/libtiff!108
8733
8734 2020-02-29 Thomas Bernard <[email protected]>
8735
8736 Fax4Decode(): log error message in case of buffer overrun.
8737
8738 tif_fax3.c: check buffer overflow in Fax4Decode()
8739 fixes #174
8740
8741 2020-02-28 Even Rouault <[email protected]>
8742
8743 typo fixes in code comments.
8744
8745 ToRationalEuclideanGCD: remove useless test that confuses Coverity Scan about a potential later modulo by zero
8746
8747 2020-02-27 Even Rouault <[email protected]>
8748
8749 tif_dirwrite.c: fix other warnings related to 6df997c786928757caea0dd68d26ea5f098f49df changes
8750
8751 rational_precision2double.c: fix many warnings, and do not build it on CMake on shared lib builds
8752
8753 tif_dirwrite.c: fix various warnings found when building GDAL with internal libtiff after 6df997c786928757caea0dd68d26ea5f098f49df changes
8754
8755 tif_dirwrite.c: qualify ToRationalEuclideanGCD() with static.
8756
8757 2020-02-27 Even Rouault <[email protected]>
8758
8759 Merge branch 'Rational2DoublePrecision' into 'master'
8760 Rational with Double Precision Upgrade
8761
8762 See merge request libtiff/libtiff!100
8763
8764 2020-02-27 Su_Laus <[email protected]>
8765
8766 Rational with Double Precision Upgrade.
8767 Unfortunately, custom rational tags (TIFF_RATIONAL with field_bit=FIELD_CUSTOM) are defined as TIFF_SETGET_DOUBLE
8768 but for the reading interface and LibTiff internally they are stored ALWAYS as floating point SINGLE precision.
8769 Double precision custom rational tags are not supported by LibTiff.
8770
8771 For the GPS tags in WGS84 a higher accuracy / precision is needed.
8772 Therefore, this upgrade is made, keeping the old interface for the already defined tags and allowing a double precision definition,
8773 as well as calculating rationals with higher accuracy / precision.
8774 This higher accuracy can be used for newly defined tags like that in EXIF/GPS.
8775
8776 Refer also to the very old Bugzilla issue 2542 (#69)
8777
8778 A test file rational_precision2double.c is added, which shows prevention of the old interface to the already defined custom rational tags
8779 with the standard library as well as with the upgraded library.
8780
8781 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
8782
8783 2020-02-26 Chris Degawa <[email protected]>
8784
8785 mingw-w64 cmake: Don't find libm.
8786 mingw-w64 will provide libm symbols by default without -lm and mingw-64's
8787 libm is just a stub.
8788
8789 This is just to make sure that on systems with msys2 and also cygwin, cmake
8790 doesn't find a libm that actually contains math functions.
8791
8792 2020-02-26 Even Rouault <[email protected]>
8793
8794 Merge branch 'division-by-zero' into 'master'
8795 tools/tiffcp.c: fix potential division by zero
8796
8797 See merge request libtiff/libtiff!83
8798
8799 2020-02-26 Even Rouault <[email protected]>
8800
8801 Merge branch 'fix-unused-warning' into 'master'
8802 warnings: mark conditionally used parameters
8803
8804 See merge request libtiff/libtiff!49
8805
8806 2020-02-26 Even Rouault <[email protected]>
8807
8808 Merge branch 'master' into 'master'
8809 fix issue #78 warnings regarding RichTIFFIPTC data type
8810
8811 Closes #78
8812
8813 See merge request libtiff/libtiff!99
8814
8815 2020-02-26 Even Rouault <[email protected]>
8816
8817 Merge branch 'win64-handle-casts-warn-fix' into 'master'
8818 Avoid warnings about casts between HANDLE and int in Win64 builds
8819
8820 Closes #2
8821
8822 See merge request libtiff/libtiff!93
8823
8824 2020-02-26 Even Rouault <[email protected]>
8825
8826 Merge branch 'bug2839' into 'master'
8827 raw2tiff: avoid divide by 0
8828
8829 Closes #151
8830
8831 See merge request libtiff/libtiff!103
8832
8833 2020-02-26 Even Rouault <[email protected]>
8834
8835 Merge branch 'bug2669' into 'master'
8836 tiff2pdf: palette bound check in t2p_sample_realize_palette()
8837
8838 Closes #82
8839
8840 See merge request libtiff/libtiff!104
8841
8842 2020-02-26 Even Rouault <[email protected]>
8843
8844 Merge branch 'int-shift' into 'master'
8845 tiffcrop: fix asan runtime error caused by integer promotion
8846
8847 See merge request libtiff/libtiff!105
8848
8849 2020-02-26 Even Rouault <[email protected]>
8850
8851 Merge branch 'bug-2538' into 'master'
8852 libtiff.html: fix function casing
8853
8854 Closes #68
8855
8856 See merge request libtiff/libtiff!107
8857
8858 2020-02-16 Thomas Bernard <[email protected]>
8859
8860 raw2tiff: avoid divide by 0.
8861 fixes #151 / http://bugzilla.maptools.org/show_bug.cgi?id=2839
8862
8863 first memcmp() lines before computing correlation
8864 and always avoid divide by 0 anyway
8865
8866 2020-02-09 Even Rouault <[email protected]>
8867
8868 Merge branch 'bug2855' into 'master'
8869 tiff2ps: fix heap buffer read overflow in PSDataColorContig()
8870
8871 Closes #161
8872
8873 See merge request libtiff/libtiff!102
8874
8875 2020-02-08 Thomas Bernard <[email protected]>
8876
8877 libtiff.html: fix function casing.
8878
8879 libtiff.html: fix function casing.
8880 fixes #68 / http://bugzilla.maptools.org/show_bug.cgi?id=2538
8881
8882 2020-02-08 Thomas Bernard <[email protected]>
8883
8884 tiffcrop: fix asan runtime error caused by integer promotion.
8885 tiffcrop.c:4027:20: runtime error: left shift of 190 by 24 places cannot be represented in type 'int'
8886
8887 C treats (byte << 24) as an int expression.
8888 casting explicitly to unsigned type uint32 avoids the problem.
8889
8890 the same issue has been fixed elsewhere with a24213691616e7cd35aa3e2805493de80c7e4fcf
8891
8892 I detected the bug with the test file of #86
8893
8894 2020-02-08 Thomas Bernard <[email protected]>
8895
8896 tiff2pdf: palette bound check in t2p_sample_realize_palette()
8897 fixes #82
8898
8899 2020-02-08 Thomas Bernard <[email protected]>
8900
8901 tiff2ps: fix heap buffer read overflow in PSDataColorContig()
8902 fixes #161 / http://bugzilla.maptools.org/show_bug.cgi?id=2855
8903
8904 in 05029fb7f1ecf771abaf90b5705b6cab9eb522a7 I missed that 1 extra byte is read
8905 in this loop.
8906
8907 2020-02-05 Even Rouault <[email protected]>
8908
8909 tif_dirread.c: suppress CLang static Analyzer 9.0 false positive.
8910
8911 2020-02-01 Even Rouault <[email protected]>
8912
8913 TIFFSetupStrips: enforce 2GB limitation of Strip/Tile Offsets/ByteCounts arrays
8914 TIFFWriteDirectoryTagData() has an assertion that checks that the
8915 arrays are not larger than 2GB. So error out earlier if in that situation.
8916
8917 2020-01-29 Bob Friesenhahn <[email protected]>
8918
8919 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.
8920
8921 2020-01-28 Bob Friesenhahn <[email protected]>
8922
8923 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.
8924
8925 2020-01-26 Bob Friesenhahn <[email protected]>
8926
8927 Fix nmake build mistakes in my last commit:
8928 tif_config.vc.h:
8929
8930 Always define HAVE_STRTOL/HAVE_STRTOUL.
8931 Define HAVE_STRTOLL/HAVE_STRTOULL if _MSC_VER >= 1900.
8932
8933 nmake.opt:
8934
8935 Provide defaults suitable for MSVC prior to 14.0.
8936
8937 libport.h:
8938
8939 The sense of the pre-processor logic was inverted from what it
8940 should be. The intention is to only provide the prototype if the
8941 function is missing.
8942
8943 2020-01-25 Bob Friesenhahn <[email protected]>
8944
8945 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.
8946
8947 2020-01-23 Even Rouault <[email protected]>
8948
8949 Adjust previous fix to avoid undue warning in some situations triggered by GDAL
8950
8951 2020-01-12 Even Rouault <[email protected]>
8952
8953 _TIFFPartialReadStripArray: bring back support for non-conformant SLONG8 data type
8954 Such as in https://github.com/OSGeo/gdal/issues/2165
8955
8956 2020-01-07 Even Rouault <[email protected]>
8957
8958 test: add test for single-strip OJPEG file without RowsPerStrip tag (like in CR2 files)
8959
8960 OJPEGReadHeaderInfo: if rowsperstrip not defined, then assume one-single-strip. Complementary fix to 0356ea76bac908c61160d735f078437ace953bd3
8961
8962 2019-12-16 Angel Sánchez <[email protected]>
8963
8964 fix issue #78 warnings regarding RichTIFFIPTC data type.
8965
8966 2019-12-14 Even Rouault <[email protected]>
8967
8968 contrib/oss-fuzz/build.sh: fix broken if construct.
8969
8970 2019-11-28 Even Rouault <[email protected]>
8971
8972 contrib/oss-fuzz/build.sh: other attempt at fixing build failure.
8973
8974 2019-11-20 Even Rouault <[email protected]>
8975
8976 contrib/oss-fuzz/build.sh: install liblzma-dev for x86_64 builds.
8977
8978 2019-11-17 Even Rouault <[email protected]>
8979
8980 contrib/oss-fuzz/build.sh: install liblzma-dev:i386 on i386 builds.
8981
8982 2019-11-15 Even Rouault <[email protected]>
8983
8984 Merge branch 'cmake-parse' into 'master'
8985 CMake: simplify parsing variables from configure
8986
8987 See merge request libtiff/libtiff!98
8988
8989 2019-11-15 Rolf Eike Beer <[email protected]>
8990
8991 CMake: simplify parsing variables from configure.
8992
8993 2019-11-14 Even Rouault <[email protected]>
8994
8995 contrib/oss-fuzz/build.sh: fix ossfuzz build by statically linking to lzma
8996
8997 2019-11-12 Even Rouault <[email protected]>
8998
8999 Merge branch 'fix_ojpeg_172' into 'master'
9000 OJPEG: fix broken sanity check added in 4.1.0 (#fixes 172)
9001
9002 See merge request libtiff/libtiff!97
9003
9004 2019-11-11 Even Rouault <[email protected]>
9005
9006 OJPEG: fix broken sanity check added in 4.1.0, and add two OJPEG test files
9007
9008 test/: add missing generated .sh files.
9009
9010 2019-11-04 Even Rouault <[email protected]>
9011
9012 Merge branch 'fix-missing-checks-TIFFGetField-tiffcrop' into 'master'
9013 adds missing checks on TIFFGetField in tiffcrop tool
9014
9015 Closes #170
9016
9017 See merge request libtiff/libtiff!96
9018
9019 2019-11-04 Bug Checkers <[email protected]>
9020
9021 adds missing checks on TIFFGetField in tiffcrop tool (fixes #170)
9022
9023 2019-11-04 Even Rouault <[email protected]>
9024
9025 Merge branch 'adds-missing-TIFFClose-rgb2ycbcr' into 'master'
9026 adds a missing TIFFClose in rgb2ycbcr tool
9027
9028 See merge request libtiff/libtiff!95
9029
9030 2019-11-04 Mansour Ahmadi <[email protected]>
9031
9032 adds a missing TIFFClose in rgb2ycbcr tool.
9033
9034 2019-11-03 Bob Friesenhahn <[email protected]>
9035
9036 libtiff 4.1.0 released.
9037
9038 Added a step for updating the legacy ChangeLog file.
9039
9040 Ignore emacs temporary files (ending with tilde character).
9041
9042 Added release summary page for the 4.1.0 release.
9043
9044 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.
9045
9046 Fax2tiff.sh needs to remove its output file in advance. Syntax changes so that bash is not required.
9047
9048 2019-10-26 Even Rouault <[email protected]>
9049
9050 tif_jpeg.c: extra cast to silence Coverity warning. GDAL CID 1406475.
9051
9052 2019-10-23 Even Rouault <[email protected]>
9053
9054 tif_jpeg.c: fix warning added by previous commit (on 32bit builds)
9055
9056 2019-10-23 Even Rouault <[email protected]>
9057
9058 Merge branch 'coverity-fixes' into 'master'
9059 Coverity fixes
9060
9061 See merge request libtiff/libtiff!94
9062
9063 2019-10-22 Timothy Lyanguzov <[email protected]>
9064
9065 Use 64-bit calculations correctly.
9066
9067 Fix size calculation to use 64-bit tmsize_t correctly.
9068
9069 Make bytesperclumpline calculations using tmsize_t type.
9070
9071 2019-10-03 Even Rouault <[email protected]>
9072
9073 tif_read: align code of TIFFReadRawStrip() and TIFFReadRawTile() that differed for non good reason. Non-functional change normally. (fixes GitLab #162)
9074
9075 2019-10-01 Even Rouault <[email protected]>
9076
9077 HTML: update for GitLab issues.
9078
9079 2019-09-29 Even Rouault <[email protected]>
9080
9081 html/v3.5.6-beta.html: redact URL of defunct web site.
9082
9083 Website: update links to mailing list.
9084
9085 2019-09-17 Even Rouault <[email protected]>
9086
9087 TIFFReadAndRealloc(): avoid too large memory allocation attempts. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17244
9088
9089 2019-09-03 Even Rouault <[email protected]>
9090
9091 ByteCountLooksBad and EstimateStripByteCounts: avoid unsigned integer overflows. Fixes https://oss-fuzz.com/testcase-detail/5686156066291712 and https://oss-fuzz.com/testcase-detail/6332499206078464
9092
9093 2019-09-02 Even Rouault <[email protected]>
9094
9095 tif_ojpeg.c: avoid relying on isTiled macro being wrapped in ()
9096
9097 tif_ojpeg.c: avoid use of uninitialized memory on edge/broken file. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16844
9098
9099 tiff_read_rgba_fuzzer.cc: add a -DSTANDALONE mode for easier reproduction of oss-fuzz reports
9100
9101 2019-09-01 Even Rouault <[email protected]>
9102
9103 tif_dirread.c: allocChoppedUpStripArrays(). avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16846
9104
9105 2019-08-27 Even Rouault <[email protected]>
9106
9107 tif_ojpeg.c: avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16793
9108
9109 2019-08-26 Even Rouault <[email protected]>
9110
9111 TIFFReadDirEntryData(): rewrite to avoid unsigned integer overflow (not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16792
9112
9113 TIFFFetchDirectory(): fix invalid cast from uint64 to tmsize_t. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16784
9114
9115 2019-08-25 Even Rouault <[email protected]>
9116
9117 JPEG: avoid use of uninitialized memory on corrupted files.
9118 Follow-up of cf3ce6fab894414a336546f62adc57f02590a22c
9119 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16602
9120 Credit to OSS Fuzz
9121
9122 2019-08-23 Even Rouault <[email protected]>
9123
9124 _TIFFPartialReadStripArray(): avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16685
9125
9126 OJPEGWriteHeaderInfo(): avoid unsigned integer overflow on strile dimensions close to UINT32_MAX. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16683
9127
9128 TIFFFillStrip(): avoid harmless unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16653
9129
9130 EstimateStripByteCounts(): avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16643&
9131
9132 tif_ojpeg: avoid unsigned integer overflow (probably not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16635
9133
9134 tif_thunder: avoid unsigned integer overflow (not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16632
9135
9136 2019-08-22 Even Rouault <[email protected]>
9137
9138 _TIFFMultiply32() / _TIFFMultiply64(): avoid relying on unsigned integer overflow (not a bug)
9139
9140 EstimateStripByteCounts(): avoid unsigned integer overflow.
9141
9142 2019-08-21 Even Rouault <[email protected]>
9143
9144 EstimateStripByteCounts(): avoid unsigned integer overflow.
9145
9146 2019-08-20 Even Rouault <[email protected]>
9147
9148 EstimateStripByteCounts(): avoid harmless unsigned integer overflow.
9149
9150 _TIFFPartialReadStripArray(): avoid triggering unsigned integer overflow with -fsanitize=unsigned-integer-overflow (not a bug, this is well defined by itself)
9151
9152 2019-08-18 Even Rouault <[email protected]>
9153
9154 tiff2ps: fix use of wrong data type that caused issues (/Height being written as 0) on 64-bit big endian platforms
9155
9156 2019-08-16 Even Rouault <[email protected]>
9157
9158 setByteArray(): fix previous commit.
9159
9160 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)
9161
9162 2019-08-15 Even Rouault <[email protected]>
9163
9164 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
9165
9166 2019-08-14 Even Rouault <[email protected]>
9167
9168 Merge branch 'fix_integer_overflow' into 'master'
9169 Fix integer overflow in _TIFFCheckMalloc() and other implementation-defined behaviour (CVE-2019-14973)
9170
9171 See merge request libtiff/libtiff!90
9172
9173 2019-08-13 Even Rouault <[email protected]>
9174
9175 Fix integer overflow in _TIFFCheckMalloc() and other implementation-defined behaviour (CVE-2019-14973)
9176 _TIFFCheckMalloc()/_TIFFCheckRealloc() used a unsafe way to detect overflow
9177 in the multiplication of nmemb and elem_size (which are of type tmsize_t, thus
9178 signed), which was especially easily triggered on 32-bit builds (with recent
9179 enough compilers that assume that signed multiplication cannot overflow, since
9180 this is undefined behaviour by the C standard). The original issue which lead to
9181 this fix was triggered from tif_fax3.c
9182
9183 There were also unsafe (implementation defied), and broken in practice on 64bit
9184 builds, ways of checking that a uint64 fits of a (signed) tmsize_t by doing
9185 (uint64)(tmsize_t)uint64_var != uint64_var comparisons. Those have no known
9186 at that time exploits, but are better to fix in a more bullet-proof way.
9187 Or similarly use of (int64)uint64_var <= 0.
9188
9189 2019-08-12 Even Rouault <[email protected]>
9190
9191 TIFFClientOpen(): fix memory leak if one of the required callbacks is not provided. Fixed Coverity GDAL CID 1404110
9192
9193 OJPEGReadBufferFill(): avoid very long processing time on corrupted files. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16400. master only
9194
9195 2019-08-10 Even Rouault <[email protected]>
9196
9197 oss-fuzz/tiff_read_rgba_fuzzer.cc: fix wrong env variable value in previous commit
9198
9199 oss-fuzz/tiff_read_rgba_fuzzer.cc: avoid issue with libjpeg-turbo and MSAN
9200
9201 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
9202
9203 Merge branch 'ossfuzz_i386'
9204
9205 contrib/oss-fuzz/build.sh: fix for i386 build of jbigkit, and use $LIB_FUZZING_ENGINE
9206
9207 2019-08-10 Even Rouault <[email protected]>
9208
9209 Merge branch 'patch-1' into 'master'
9210 fix two tiny typos
9211
9212 See merge request libtiff/libtiff!89
9213
9214 2019-08-10 Reto Kromer <[email protected]>
9215
9216 fix two tiny typos.
9217
9218 2019-08-09 Even Rouault <[email protected]>
9219
9220 Merge branch 'patch-1' into 'master'
9221 fix a typo in man page
9222
9223 See merge request libtiff/libtiff!88
9224
9225 2019-08-09 Reto Kromer <[email protected]>
9226
9227 fix typo.
9228
9229 2019-08-04 Even Rouault <[email protected]>
9230
9231 Merge branch 'TIFFTAGID_Zero_reading_IGNORE' into 'master'
9232 Suppressed Reading of Tiff tags with ID = 0 (like GPSVERSIONID) corrected.
9233
9234 See merge request libtiff/libtiff!77
9235
9236 2019-08-04 Su Laus <[email protected]>
9237
9238 Reading of Tiff tags with ID = 0 (like GPSVERSIONID) corrected.
9239 IGNORE placeholder in tif_dirread.c is now replaced by a field dir_ignore in the TIFFDirEntry structure
9240
9241 Currently, in tif_dirread.c a special IGNORE value for the tif tags is defined
9242 in order to flag status preventing already processed tags from further processing.
9243 This irrational behaviour prevents reading of custom tags with id code 0 - like tag GPSVERSIONID from EXIF 2.31 definition.
9244
9245 An additional field 'tdir_ignore' is now added to the TIFFDirEntry structure and code is changed
9246 to allow tags with id code 0 to be read correctly.
9247
9248 This change was already proposed as pending improvement in tif_dirread.c around line 32.
9249
9250 Reference is also made to:
9251 - Discussion in https://gitlab.com/libtiff/libtiff/merge_requests/39
9252 - http://bugzilla.maptools.org/show_bug.cgi?id=2540
9253
9254 Comments and indentation adapted.
9255
9256 Preparation to rebase onto master
9257
9258 2019-07-16 Even Rouault <[email protected]>
9259
9260 Merge branch 'cmake_amd64' into 'master'
9261 CMakeLists.txt: properly set value of HOST_FILLORDER to LSB2MSB for Windows CMake builds
9262
9263 See merge request libtiff/libtiff!87
9264
9265 2019-07-15 Even Rouault <[email protected]>
9266
9267 CMakeLists.txt: properly set value of HOST_FILLORDER to LSB2MSB for Windows CMake builds
9268 As can be seen in https://ci.appveyor.com/project/rleigh-codelibre/libtiff-didfs/builds/25846668/job/ory5w098j8wcij9x
9269 log, the HOST_FILLORDER is not properly set:
9270
9271 [00:02:58] -- CMAKE_HOST_SYSTEM_PROCESSOR set to AMD64
9272 [00:02:58] -- HOST_FILLORDER set to FILLORDER_MSB2LSB
9273
9274 The reason is that we match the "amd64.*" lowercase string whereas
9275 CMAKE_HOST_SYSTEM_PROCESSOR is set to AMD64 uppercase.
9276
9277 2019-07-09 Even Rouault <[email protected]>
9278
9279 TIFFWriteCheck(): call TIFFForceStrileArrayWriting() when needed (should have gone with eaeca6274ae71cdfaeb9f673b6fb0f3cfc0e6ce5) (master only)
9280
9281 2019-07-09 Even Rouault <[email protected]>
9282
9283 Merge branch 'fix_chromium_925269' into 'master'
9284 OJPEG: avoid use of uninitialized memory on corrupted files
9285
9286 See merge request libtiff/libtiff!86
9287
9288 2019-07-05 Even Rouault <[email protected]>
9289
9290 OJPEG: avoid use of uninitialized memory on corrupted files.
9291 Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=925269
9292 Patch from Lei Zhang with little adaptations.
9293
9294 2019-06-29 Even Rouault <[email protected]>
9295
9296 Merge branch 'fix-division-by-zero' into 'master'
9297 Return infinite distance when denominator is zero.
9298
9299 See merge request libtiff/libtiff!85
9300
9301 2019-06-29 Dirk Lemstra <[email protected]>
9302
9303 Return infinite distance when denominator is zero.
9304
9305 2019-06-29 Even Rouault <[email protected]>
9306
9307 Merge branch 'typetests' into 'master'
9308 Add test to check that libtiff types have the correct size
9309
9310 See merge request libtiff/libtiff!57
9311
9312 2019-05-31 Thomas Bernard <[email protected]>
9313
9314 make TIFF_SSIZE_T the same bitwidth as TIFF_SIZE_T.
9315 it was previously the same bitwidth as unsigned char *
9316 Pointers can be larger than size_t.
9317
9318 2019-05-31 Thomas Bernard <[email protected]>
9319
9320 Add test to check that libtiff types have the correct size.
9321 in configure/CMakeList.txt :
9322
9323 - TIFF_INT8_T/TIFF_UINT8_T is signed/unsigned char
9324 sizeof(char)==1 in C standard
9325 - TIFF_INT16_T/TIFF_UINT16_T is signed/unsigned short
9326 sizeof(short)>=2 in C standard
9327 - TIFF_INT32_T/TIFF_UINT32_T is defined so its sizeof() is 4
9328
9329 - TIFF_INT64_T/TIFF_UINT64_T is defined so its sizeof() is 8
9330
9331 - TIFF_SIZE_T is defined so it has same sizeof() than size_t
9332
9333 - TIFF_SSIZE_T is defined so it has same sizeof() than unsigned char *
9334
9335 2019-05-29 Even Rouault <[email protected]>
9336
9337 Merge branch 'defer_strile_writing' into 'master'
9338 Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting()
9339
9340 See merge request libtiff/libtiff!82
9341
9342 2019-05-29 Even Rouault <[email protected]>
9343
9344 Merge branch 'TIFFReadFromUserBuffer' into 'master'
9345 Add TIFFReadFromUserBuffer()
9346
9347 See merge request libtiff/libtiff!81
9348
9349 2019-05-26 Even Rouault <[email protected]>
9350
9351 Fix vulnerability in 'D' (DeferStrileLoad) mode (master only) (fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14908)
9352
9353 2019-05-25 Even Rouault <[email protected]>
9354
9355 Replace 'stripped' by 'striped' in error messages.
9356
9357 2019-05-25 Even Rouault <[email protected]>
9358
9359 Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting()
9360 Those advanced writing functions must be used in a particular sequence
9361 to make their intended effect. Their aim is to control when/where
9362 the [Strip/Tile][Offsets/ByteCounts] arrays are written into the file.
9363
9364 The purpose of this is to generate 'cloud-optimized geotiff' files where
9365 the first KB of the file only contain the IFD entries without the potentially
9366 large strile arrays. Those are written afterwards.
9367
9368 The typical sequence of calls is:
9369 TIFFOpen()
9370 [ TIFFCreateDirectory(tif) ]
9371 Set fields with calls to TIFFSetField(tif, ...)
9372 TIFFDeferStrileArrayWriting(tif)
9373 TIFFWriteCheck(tif, ...)
9374 TIFFWriteDirectory(tif)
9375 ... potentially create other directories and come back to the above directory
9376 TIFFForceStrileArrayWriting(tif): emit the arrays at the end of file
9377
9378 See test/defer_strile_writing.c for a practical example.
9379
9380 2019-05-24 Even Rouault <[email protected]>
9381
9382 Fix vulnerability introduced by defer strile loading (master only)
9383 Found on GDAL with https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14894
9384 Disabling the TIFF_DEFERSTRILELOAD bit in ChopupStripArray() was a
9385 bad idea since when using TIFFReadDirectory() to reload the directory again
9386 would lead to a different value of td_rowsperstrip, which could confuse
9387 readers if they relied on the value found initially.
9388
9389 Fix typo in error message (master only)
9390
9391 2019-05-22 Even Rouault <[email protected]>
9392
9393 Add TIFFReadFromUserBuffer()
9394 This function replaces the use of TIFFReadEncodedStrip()/TIFFReadEncodedTile()
9395 when the user can provide the buffer for the input data, for example when
9396 he wants to avoid libtiff to read the strile offset/count values from the
9397 [Strip|Tile][Offsets/ByteCounts] array.
9398
9399 libtiff.def: add missing new symbols.
9400
9401 test/defer_strile_loading.c: fix warning with Visual C++
9402
9403 _TIFFRewriteField(): fix for bigtiff case (master only)
9404 116cf67f4c59196605abdb244657c3070c4310af made StripByteCount/TileByteCount to
9405 always be rewritten as TIFF_LONG8.
9406
9407 2019-05-21 Even Rouault <[email protected]>
9408
9409 Merge branch 'ondemand_strile_offbytecount_loading' into 'master'
9410 Make defer strile offset/bytecount loading available at runtime
9411
9412 See merge request libtiff/libtiff!79
9413
9414 2019-05-21 Even Rouault <[email protected]>
9415
9416 Merge branch 'bigtiff_write_bytecount_on_long_when_possible' into 'master'
9417 Create TileByteCounts/StripByteCounts tag with SHORT (ClassicTIFF/BigTIFF) or LONG (BigTIFF) type when possible
9418
9419 See merge request libtiff/libtiff!78
9420
9421 2019-05-21 Even Rouault <[email protected]>
9422
9423 Merge branch 'html_link' into 'master'
9424 libtiff.html, bigtiffpr.html: absolute => relative link
9425
9426 See merge request libtiff/libtiff!80
9427
9428 2019-05-14 Thomas Bernard <[email protected]>
9429
9430 libtiff.html, bigtiffpr.html: absolute => relative link.
9431
9432 2019-05-10 Even Rouault <[email protected]>
9433
9434 Make defer strile offset/bytecount loading available at runtime.
9435 ... and add per-strile offset/bytecount loading capabilities.
9436
9437 Part of this commit makes the behaviour that was previously met when
9438 libtiff was compiled with -DDEFER_STRILE_LOAD available for default builds
9439 when specifying the new 'D' (Deferred) TIFFOpen() flag. In that mode, the [Tile/Strip][ByteCounts/Offsets]
9440 arrays are only loaded when first accessed. This can speed-up the opening
9441 of files stored on the network when just metadata retrieval is needed.
9442 This mode has been used for years by the GDAL library when compiled with
9443 its embedded libtiff copy.
9444
9445 To avoid potential out-of-tree code (typically codecs) that would use
9446 the td_stripbytecount and td_stripoffset array inconditionnaly assuming they
9447 have been loaded, those have been suffixed with _p (for protected). The
9448 use of the new functions mentioned below is then recommended.
9449
9450 Another addition of this commit is the capability of loading only the
9451 values of the offset/bytecount of the strile of interest instead of the
9452 whole array. This is enabled with the new 'O' (Ondemand) flag of TIFFOpen()
9453 (which implies 'D'). That behaviour has also been used by GDAL, which hacked
9454 into the td_stripoffset/td_stripbytecount arrays directly. The new code
9455 added in the _TIFFFetchStrileValue() and _TIFFPartialReadStripArray() internal
9456 functions is mostly a port of what was in GDAL GTiff driver previously.
9457
9458 Related to that, the public TIFFGetStrileOffset[WithErr]() and TIFFGetStrileByteCount[WithErr]()
9459 functions have been added to API. They are of particular interest when
9460 using sparse files (with offset == bytecount == 0) and you want to detect
9461 if a strile is present or not without decompressing the data, or updating
9462 an existing sparse file.
9463 They will also be used to enable a future enhancement where client code can entirely
9464 skip bytecount loading in some situations
9465
9466 A new test/defer_strile_loading.c test has been added to test the above
9467 capabilities.
9468
9469 2019-05-10 Even Rouault <[email protected]>
9470
9471 Creation: use SHORT type when possible for StripByteCounts/TileByteCounts
9472 This follows the same logic as previous commit.
9473
9474 2019-05-09 Even Rouault <[email protected]>
9475
9476 BigTIFF creation: write TileByteCounts/StripByteCounts tag with LONG when possible
9477 In most situations of BigTIFF file, the tile/strip sizes are of reasonable size,
9478 that is they fit on a 4-byte LONG. So in that case, use LONG instead of LONG8
9479 to save some space. For uncompressed file, it is easy to detect such situations
9480 by checking at the TIFFTileSize64()/TIFFStripSize64() return. For compressed file,
9481 we must take into account the fact that compression may sometimes result in
9482 larger compressed data. So we allow this optimization only for a few select
9483 compression times, and take a huge security margin (10x factor). We also only
9484 apply this optimization on multi-strip files, so as to allow easy on-the-fly
9485 growing of single-strip files whose strip size could grow above the 4GB threshold.
9486
9487 This change is compatible with the BigTIFF specification. According to
9488 https://www.awaresystems.be/imaging/tiff/bigtiff.html:
9489 "The StripOffsets, StripByteCounts, TileOffsets, and TileByteCounts tags are
9490 allowed to have the datatype TIFF_LONG8 in BigTIFF. Old datatypes TIFF_LONG,
9491 and TIFF_SHORT where allowed in the TIFF 6.0 specification, are still valid in BigTIFF, too. "
9492 On a practical point of view, this is also compatible on reading/writing of
9493 older libtiff 4.X versions.
9494
9495 The only glitch I found, which is rather minor, is when using such a BigTIFF
9496 file with TileByteCounts/StripByteCounts written with TIFF_LONG, and updating
9497 it with an older libtiff 4.X version with a change in the
9498 [Tile/Strip][ByteCounts/Offsets] array. In that case the _TIFFRewriteField()
9499 function will rewrite the directory and array with TIFF_LONG8, instead of updating
9500 the existing array (this is an issue fixed by this commit). The file will
9501 still be valid however, hence the minor severity of this.
9502
9503 2019-05-08 Even Rouault <[email protected]>
9504
9505 Merge branch 'bug2799' into 'master'
9506 fix fax2tiff
9507
9508 See merge request libtiff/libtiff!55
9509
9510 2019-05-08 Even Rouault <[email protected]>
9511
9512 Merge branch 'bug_2829' into 'master'
9513 WIN32: use tif_win32.c when building with CMake
9514
9515 See merge request libtiff/libtiff!75
9516
9517 2019-05-06 Even Rouault <[email protected]>
9518
9519 Merge branch 'FILESOURCE_SCENETYPE_reading' into 'master'
9520 Reading error for FileSource and SceneType tags corrected.
9521
9522 See merge request libtiff/libtiff!76
9523
9524 2019-05-06 Su Laus <[email protected]>
9525
9526 Reading error for FileSource and SceneType tags corrected.
9527 EXIF tags FILESOURCE and SCENETYPE are defined as TIFF_UNDEFINED and field_readcount==1!
9528 There is a bug in TIFFReadDirEntryByte() preventing to read correctly type TIFF_UNDEFINED fields with field_readcount==1
9529 Upgrade of TIFFReadDirEntryByte() with added TIFF_UNDEFINED switch-entry allows libtiff to read those tags correctly.
9530
9531 2019-04-25 Thomas Bernard <[email protected]>
9532
9533 WIN32: use tif_win32.c when building with CMake.
9534 see http://bugzilla.maptools.org/show_bug.cgi?id=2829
9535
9536 the top CMakeLists.txt defines
9537 win32_io and USE_WIN32_FILEIO
9538
9539 WIN32_IO is defined nowhere in CMake (only in automake things)
9540
9541 2019-04-25 Even Rouault <[email protected]>
9542
9543 Merge branch 'gitlab_pages' into 'master'
9544 Advertise https://libtiff.gitlab.io/libtiff/ as mirror
9545
9546 See merge request libtiff/libtiff!70
9547
9548 2019-04-25 Even Rouault <[email protected]>
9549
9550 Merge branch 'bug_2844' into 'master'
9551 tiff2ps.c: PSDataColorContig(): avoid heap buffer overrun
9552
9553 See merge request libtiff/libtiff!69
9554
9555 2019-04-25 Even Rouault <[email protected]>
9556
9557 Merge branch 'issue_2785' into 'master'
9558 tiff2pdf.c: don't call t2p_tile_collapse_left() for Ycbcr
9559
9560 See merge request libtiff/libtiff!64
9561
9562 2019-04-11 Even Rouault <[email protected]>
9563
9564 Merge branch 'fix_gdal_1439' into 'master'
9565 TIFFWriteEncodedStrip/TIFFWriteEncodedTile: fix rewriting of LZW-compressed data
9566
9567 See merge request libtiff/libtiff!74
9568
9569 2019-04-11 Even Rouault <[email protected]>
9570
9571 TIFFWriteEncodedStrip/TIFFWriteEncodedTile: fix rewriting of LZW-compressed data
9572 Fixes https://github.com/OSGeo/gdal/issues/1439
9573
9574 When rewriting a LZW tile/strip whose existing size is very close to a multiple of
9575 1024 bytes (and larger than 8192 bytes) with compressed data that is larger,
9576 the new data was not placed at the end of the file, causing corruption.
9577
9578 2019-04-08 Even Rouault <[email protected]>
9579
9580 Merge branch 'bug2848' into 'master'
9581 tif_luv.c: LogLuvSetupEncode() error must return 0
9582
9583 See merge request libtiff/libtiff!72
9584
9585 2019-04-03 Thomas Bernard <[email protected]>
9586
9587 build/gitlab-ci: fix typo.
9588
9589 show test-suite.log in gitlab-ci.
9590 useful when build fails
9591
9592 Add output check for tiff2ps.
9593 note : the reference files have been generated in master branch
9594
9595 2019-03-23 Even Rouault <[email protected]>
9596
9597 tif_read.c: potentially fix false positive from Coverity Scan. CID 1400288
9598
9599 tif_read.c: potentially fix false positive from Coverity Scan. CID 1400271
9600
9601 tif_zip.c: remove dead code. CID 1400360.
9602
9603 tif_webp.c: remove false positive warning about dereference before null check. CID 1400255
9604
9605 tif_pixarlog.c: remove dead code. CID 1400342.
9606
9607 tif_pixarlog.c: avoid false positive Coverity Scan warnings about overflow. CID 1400300 and 1400367
9608
9609 tif_lzw.c: silence CoverityScan false positive. CID 1400355.
9610
9611 tif_luv.c: silence CoverityScan false positive. CID 1400231, 1400251, 1400254, 1400272, 1400318, 1400356
9612
9613 TryChopUpUncompressedBigTiff(): avoid potential division by zero. master only. GDAL Coverity CID 1400263
9614
9615 2019-03-22 Thomas Bernard <[email protected]>
9616
9617 tif_luv.c: LogLuvSetupEncode() error must return 0.
9618 see http://bugzilla.maptools.org/show_bug.cgi?id=2848
9619
9620 if wrongly returning 1, the processing of incorrect file continues,
9621 which causes problems.
9622
9623 2019-03-22 Thomas Bernard <[email protected]>
9624
9625 add a test for fax2tiff tool.
9626
9627 2019-02-28 Thomas Bernard <[email protected]>
9628
9629 tiff2pdf.c: don't call t2p_tile_collapse_left() when buffer size is wrong
9630 see http://bugzilla.maptools.org/show_bug.cgi?id=2785
9631
9632 Advertise https://libtiff.gitlab.io/libtiff/ as mirror.
9633 I'm put it above the maptools.org mirror because
9634 Even Rouault believe at some point it will be completely removed
9635
9636 2019-02-28 Even Rouault <[email protected]>
9637
9638 Merge branch 'bug_2826' into 'master'
9639 tiff2pdf.c: check colormap pointers when loading CMYK with colormap
9640
9641 See merge request libtiff/libtiff!65
9642
9643 2019-02-28 Thomas Bernard <[email protected]>
9644
9645 tiff2pdf.c: check colormap pointers.
9646 Avoid access to non initialized pointers
9647 http://bugzilla.maptools.org/show_bug.cgi?id=2826
9648
9649 2019-02-27 Even Rouault <[email protected]>
9650
9651 Merge branch 'fix_warnings' into 'master'
9652 tiff2ps.c: fix warning caused by integer promotion
9653
9654 See merge request libtiff/libtiff!68
9655
9656 2019-02-23 Thomas Bernard <[email protected]>
9657
9658 PSDataColorContig(): avoid heap buffer overrun.
9659 fixes http://bugzilla.maptools.org/show_bug.cgi?id=2844
9660 each iteration of the loop read nc bytes
9661
9662 2019-02-22 Thomas Bernard <[email protected]>
9663
9664 tiff2ps.c: fix warning caused by integer promotion.
9665 uint8 value is promoted to int in (value << 24) so -fsanitize
9666 yield runtime errors :
9667 tiff2ps.c:2969:33: runtime error: left shift of 246 by 24 places cannot be represented in type 'int'
9668
9669 2019-02-22 Even Rouault <[email protected]>
9670
9671 Merge branch 'large_strile_improvements' into 'master'
9672 Large strile support improvements
9673
9674 See merge request libtiff/libtiff!63
9675
9676 2019-02-21 Even Rouault <[email protected]>
9677
9678 Merge branch 'gitlab-pages' into 'master'
9679 ci: Add pages job
9680
9681 See merge request libtiff/libtiff!45
9682
9683 2019-02-19 Even Rouault <[email protected]>
9684
9685 Merge branch 'issue_2833' into 'master'
9686 tiffcp.c: check that (Tile Width)*(Samples/Pixel) do no overflow
9687
9688 See merge request libtiff/libtiff!60
9689
9690 2019-02-19 Even Rouault <[email protected]>
9691
9692 Merge branch 'issue_2831' into 'master'
9693 tiffcrop.c: fix invertImage() for bps 2 and 4
9694
9695 See merge request libtiff/libtiff!61
9696
9697 2019-02-19 Even Rouault <[email protected]>
9698
9699 Merge branch 'issue_2842' into 'master'
9700 move _TIFFClampDoubleToFloat() to tif_aux.c
9701
9702 See merge request libtiff/libtiff!62
9703
9704 2019-02-19 Even Rouault <[email protected]>
9705
9706 tif_zip.c: allow reading and writing strips/tiles with more than 4 GB of compressed or uncompressed data
9707
9708 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
9709
9710 2019-02-19 Even Rouault <[email protected]>
9711
9712 Merge branch 'size_t_typo' into 'master'
9713 CMakeLists.txt: fix TIFF_SIZE_T
9714
9715 See merge request libtiff/libtiff!59
9716
9717 2019-02-12 Thomas Bernard <[email protected]>
9718
9719 move _TIFFClampDoubleToFloat() to tif_aux.c.
9720 the same function was declared in tif_dir.c and tif_dirwrite.c
9721
9722 see http://bugzilla.maptools.org/show_bug.cgi?id=2842
9723
9724 2019-02-11 Thomas Bernard <[email protected]>
9725
9726 tiffcrop.c: fix invertImage() for bps 2 and 4.
9727 too much bytes were processed, causing a heap buffer overrun
9728 http://bugzilla.maptools.org/show_bug.cgi?id=2831
9729 the loop counter must be
9730 for (col = 0; col < width; col += 8 / bps)
9731
9732 Also the values were not properly calculated. It should be
9733 255-x, 15-x, 3-x for bps 8, 4, 2.
9734
9735 But anyway it is easier to invert all bits as 255-x = ~x, etc.
9736 (subtracting from a binary number composed of all 1 is like inverting
9737 the bits)
9738
9739 2019-02-11 Thomas Bernard <[email protected]>
9740
9741 tiffcp.c: use INT_MAX.
9742
9743 check that (Tile Width)*(Samples/Pixel) do no overflow.
9744 fixes bug 2833
9745
9746 2019-02-03 Thomas Bernard <[email protected]>
9747
9748 CMakeLists.txt: fix TIFF_SIZE_T.
9749
9750 2019-02-02 Even Rouault <[email protected]>
9751
9752 Merge branch 'master' into 'master'
9753 Fix for simple memory leak that was assigned CVE-2019-6128.
9754
9755 See merge request libtiff/libtiff!50
9756
9757 2019-02-02 Even Rouault <[email protected]>
9758
9759 Merge branch 'bug2835' into 'master'
9760 tiff2ps: fix heap-buffer-overflow
9761
9762 See merge request libtiff/libtiff!53
9763
9764 2019-02-02 Even Rouault <[email protected]>
9765
9766 Fix warning (use of uninitialized value) added per d0a842c5dbad2609aed43c701a12ed12461d3405 (fixes https://gitlab.com/libtiff/libtiff/merge_requests/54#note_137742985)
9767
9768 2019-02-02 Yuri Aksenov <[email protected]>
9769
9770 fix fax2tiff.
9771 see http://bugzilla.maptools.org/show_bug.cgi?id=2799
9772 fixes d9bc8472e72549f29c0062c1cbd3d56f279f3be2
9773
9774 2019-02-02 Even Rouault <[email protected]>
9775
9776 Merge branch 'tiffcrop' into 'master'
9777 tiffcrop: shut up clang warnings
9778
9779 See merge request libtiff/libtiff!52
9780
9781 2019-02-01 Even Rouault <[email protected]>
9782
9783 Merge branch 'bug2833' into 'master'
9784 TIFFWriteDirectoryTagTransferfunction() : fix NULL dereferencing
9785
9786 See merge request libtiff/libtiff!54
9787
9788 2019-02-01 Even Rouault <[email protected]>
9789
9790 Merge branch 'gitignore' into 'master'
9791 add test/ files to .gitignore
9792
9793 See merge request libtiff/libtiff!56
9794
9795 2019-02-01 Even Rouault <[email protected]>
9796
9797 Merge branch 'master' into 'master'
9798 tif_dir: unset transferfunction field if necessary (CVE-2018-19210)
9799
9800 See merge request libtiff/libtiff!47
9801
9802 2019-01-29 Thomas Bernard <[email protected]>
9803
9804 add test/ files to .gitignore.
9805
9806 2019-01-29 Thomas Bernard <[email protected]>
9807
9808 TIFFWriteDirectoryTagTransferfunction() : fix NULL dereferencing.
9809 http://bugzilla.maptools.org/show_bug.cgi?id=2833
9810
9811 we must check the pointer is not NULL before memcmp() the memory
9812
9813 2019-01-29 Thomas Bernard <[email protected]>
9814
9815 tiff2ps: fix heap-buffer-overflow.
9816 http://bugzilla.maptools.org/show_bug.cgi?id=2834
9817
9818 usually the test (i < byte_count) is OK because the byte_count is divisible by samplesperpixel.
9819 But if that is not the case, (i + ncomps) < byte_count should be used, or
9820 maybe (i + samplesperpixel) <= byte_count
9821
9822 2019-01-28 Thomas Bernard <[email protected]>
9823
9824 tiffcrop: shut up clang warnings.
9825 make the out filename building a bit more simple
9826 and remove the use of strcat()
9827
9828 2019-01-23 Scott Gayou <[email protected]>
9829
9830 Fix for simple memory leak that was assigned CVE-2019-6128.
9831 pal2rgb failed to free memory on a few errors. This was reported
9832 here: http://bugzilla.maptools.org/show_bug.cgi?id=2836.
9833
9834 2019-01-05 Bob Friesenhahn <[email protected]>
9835
9836 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.
9837
9838 2018-12-13 Hugo Lefeuvre <[email protected]>
9839
9840 tif_dir: unset transferfunction field if necessary.
9841 The number of entries in the transfer table is determined as following:
9842
9843 (td->td_samplesperpixel - td->td_extrasamples) > 1 ? 3 : 1
9844
9845 This means that whenever td->td_samplesperpixel or td->td_extrasamples are
9846 modified we also need to make sure that the number of required entries in
9847 the transfer table didn't change.
9848
9849 If it changed and the number of entries is higher than before we should
9850 invalidate the transfer table field and free previously allocated values.
9851 In the other case there's nothing to do, additional tf entries won't harm
9852 and properly written code will just ignore them since spp - es < 1.
9853
9854 For instance this situation might happen when reading an OJPEG compressed
9855 image with missing SamplesPerPixel tag. In this case the SamplesPerPixel
9856 field might be updated after setting the transfer table.
9857
9858 see http://bugzilla.maptools.org/show_bug.cgi?id=2500
9859
9860 This commit addresses CVE-2018-19210.
9861
9862 2018-12-08 Bob Friesenhahn <[email protected]>
9863
9864 Do not attempt to re-sync zip stream after reported data error from inflate().
9865
9866 2018-12-07 Even Rouault <[email protected]>
9867
9868 Merge branch 'resource-leaks' into 'master'
9869 Fix two resource leaks
9870
9871 See merge request libtiff/libtiff!43
9872
9873 2018-12-07 Even Rouault <[email protected]>
9874
9875 Merge branch 'build-jbig' into 'master'
9876 add jbig support to the fuzzer
9877
9878 See merge request libtiff/libtiff!42
9879
9880 2018-12-01 Bob Friesenhahn <[email protected]>
9881
9882 tiffcrop.c: Avoid new clang warning about tools/tiffcrop.c "size argument in 'strncat' call appears to be size of the source".
9883
9884 2018-11-28 Even Rouault <[email protected]>
9885
9886 Merge branch 'webp_memleak' into 'master'
9887 fixed mem leak in webp compression
9888
9889 See merge request libtiff/libtiff!48
9890
9891 2018-11-28 Norman Barker <[email protected]>
9892
9893 fixed mem leak in webp compression.
9894
9895 2018-11-20 Even Rouault <[email protected]>
9896
9897 Merge branch 'lossless_webp' into 'master'
9898 fixed lossless webp compression config
9899
9900 See merge request libtiff/libtiff!46
9901
9902 2018-11-20 Norman Barker <[email protected]>
9903
9904 fixed lossless webp compression config.
9905
9906 2018-11-18 Bob Friesenhahn <[email protected]>
9907
9908 snprintf porting fix for Visual Studio 2003.
9909
9910 2018-11-18 Roger Leigh <[email protected]>
9911
9912 ci: Add pages job.
9913
9914 2018-11-10 Bob Friesenhahn <[email protected]>
9915
9916 Change references from defunct ftp site to https site.
9917
9918 2018-11-10 Bob Friesenhahn <[email protected]>
9919
9920 * configure.ac: libtiff 4.0.10 released.
9921
9922 Change COMPRESSION_ZSTD to 50000 and COMPRESSION_WEBP to 50001.
9923
9924 2018-11-04 Bob Friesenhahn <[email protected]>
9925
9926 Added preliminary release notes for release 4.0.10.
9927
9928 2018-11-03 Bob Friesenhahn <[email protected]>
9929
9930 tiff2pdf: Eliminate compiler warning about snprintf output truncation when formatting pdf_datetime.
9931
9932 2018-11-03 Olivier Paquet <[email protected]>
9933
9934 Merge branch 'no_tif_platform_console' into 'master'
9935 Remove builtin support for GUI warning and error message boxes
9936
9937 See merge request libtiff/libtiff!24
9938
9939 2018-11-03 Bob Friesenhahn <[email protected]>
9940
9941 tiffcrop.c: Eliminate compiler warning about snprintf output truncation when formatting filenum.
9942
9943 TWebPVGetField(): Add apparently missing break statement impacting TIFFTAG_WEBP_LOSSLESS.
9944
9945 Eliminate compiler warnings about duplicate definitions of streq/strneq macros.
9946
9947 Ignore generated files.
9948
9949 Remove and ignore files which are a product of autogen.sh.
9950
9951 2018-11-02 Bob Friesenhahn <[email protected]>
9952
9953 Fix TIFFErrorExt() formatting of size_t type for 32-bit compiles.
9954
9955 2018-10-30 Even Rouault <[email protected]>
9956
9957 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
9958
9959 tiffio.h: fix comment.
9960
9961 2018-10-26 Even Rouault <[email protected]>
9962
9963 Merge branch 'header2' into 'master'
9964 Fix 725279bd: Standalone tif_predict.h: tiff.h should be tiffiop.h
9965
9966 See merge request libtiff/libtiff!41
9967
9968 2018-10-26 Kurt Schwehr <[email protected]>
9969
9970 Fix 725279bd: Standalone tif_predict.h: tiff.h should be tiffiop.h.
9971
9972 2018-10-25 Even Rouault <[email protected]>
9973
9974 Merge branch 'headers' into 'master'
9975 Add includes to headers to allow them to stand alone.
9976
9977 See merge request libtiff/libtiff!40
9978
9979 2018-10-24 Kurt Schwehr <[email protected]>
9980
9981 Add includes to headers to allow them to stand alone.
9982 This allows compilers that can do header stand alone header parsing
9983 to process libtiff.
9984
9985 2018-10-18 Even Rouault <[email protected]>
9986
9987 LZMAPreEncode: emit verbose error if lzma_stream_encoder() fails (typically because not enough memory available)
9988
9989 2018-10-17 Even Rouault <[email protected]>
9990
9991 tif_webp.c: fix previous commit that broke scanline decoding.
9992
9993 tif_webp.c: fix potential read outside libwebp buffer on corrupted images
9994
9995 2018-10-14 Even Rouault <[email protected]>
9996
9997 Merge branch 'jbig_decode_overflow' into 'master'
9998 JBIG: fix potential out-of-bounds write in JBIGDecode()
9999
10000 See merge request libtiff/libtiff!38
10001
10002 2018-10-14 Even Rouault <[email protected]>
10003
10004 JBIG: fix potential out-of-bounds write in JBIGDecode()
10005 JBIGDecode doesn't check if the user provided buffer is large enough
10006 to store the JBIG decoded image, which can potentially cause out-of-bounds
10007 write in the buffer.
10008 This issue was reported and analyzed by Thomas Dullien.
10009
10010 Also fixes a (harmless) potential use of uninitialized memory when
10011 tif->tif_rawsize > tif->tif_rawcc
10012
10013 And in case libtiff is compiled with CHUNKY_STRIP_READ_SUPPORT, make sure
10014 that whole strip data is provided to JBIGDecode()
10015
10016 2018-10-05 Even Rouault <[email protected]>
10017
10018 tif_webp.c: fix scanline reading/writing.
10019
10020 WEBP codec: initialize nSamples in TWebPSetupDecode() and TWebPSetupEncode()
10021
10022 2018-10-05 Even Rouault <[email protected]>
10023
10024 Merge branch 'tif_webp' into 'master'
10025 webp support
10026
10027 See merge request libtiff/libtiff!32
10028
10029 2018-10-05 Norman Barker <[email protected]>
10030
10031 webp in tiff.
10032
10033 2018-09-17 Even Rouault <[email protected]>
10034
10035 Merge branch 'master' into 'master'
10036 fix three potential vulnerabilities.
10037
10038 See merge request libtiff/libtiff!33
10039
10040 2018-09-08 Young_X <[email protected]>
10041
10042 fix out-of-bound read on some tiled images.
10043
10044 avoid potential int32 overflows in multiply_ms()
10045
10046 only read/write TIFFTAG_GROUP3OPTIONS or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or COMPRESSION_CCITTFAX4
10047
10048 2018-08-15 Even Rouault <[email protected]>
10049
10050 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
10051
10052 2018-08-07 Even Rouault <[email protected]>
10053
10054 ZSTD: fix flush issue that can cause endless loop in ZSTDEncode()
10055 Fixes https://github.com/OSGeo/gdal/issues/833
10056
10057 2018-08-07 Even Rouault <[email protected]>
10058
10059 Merge branch 'fix_bug_2800' into 'master'
10060 Fix libtiff 4.0.8 regression when reading LZW-compressed strips with scanline API
10061
10062 See merge request libtiff/libtiff!31
10063
10064 2018-08-07 Even Rouault <[email protected]>
10065
10066 Fix libtiff 4.0.8 regression when reading LZW-compressed strips with scanline API
10067 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2800
10068
10069 2018-07-05 Even Rouault <[email protected]>
10070
10071 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)
10072
10073 2018-07-02 Even Rouault <[email protected]>
10074
10075 Fix TIFFTAG_ZSTD_LEVEL pseudo tag value to be > 65536, and the next one in the series
10076
10077 2018-05-25 Stefan Weil <[email protected]>
10078
10079 Remove builtin support for GUI warning and error message boxes.
10080 Now warnings always go to the console by default unless applications
10081 define their own warning and error handlers.
10082
10083 GUI applications (and Windows CE) are required to define such handlers.
10084
10085 2018-05-12 Even Rouault <[email protected]>
10086
10087 LZWDecodeCompat(): fix potential index-out-of-bounds write. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2780 / CVE-2018-8905
10088 The fix consists in using the similar code LZWDecode() to validate we
10089 don't write outside of the output buffer.
10090
10091 TIFFFetchNormalTag(): avoid (probably false positive) clang-tidy clang-analyzer-core.NullDereference warnings
10092
10093 TIFFWriteDirectorySec: avoid assertion. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2795. CVE-2018-10963
10094
10095 2018-05-04 Even Rouault <[email protected]>
10096
10097 tif_color.c: fix code comment.
10098
10099 2018-04-17 Even Rouault <[email protected]>
10100
10101 Merge branch 'fuzzer-fix' into 'master'
10102 remove a pointless multiplication and a variable that's not necessary
10103
10104 See merge request libtiff/libtiff!29
10105
10106 2018-04-17 Paul Kehrer <[email protected]>
10107
10108 remove a pointless multiplication and a variable that's not necessary.
10109
10110 2018-04-17 Even Rouault <[email protected]>
10111
10112 Merge branch 'ossfuzz' into 'master'
10113 move oss-fuzz build script and fuzzer into libtiff tree
10114
10115 See merge request libtiff/libtiff!28
10116
10117 2018-04-17 Paul Kehrer <[email protected]>
10118
10119 move oss-fuzz build script and fuzzer into libtiff tree.
10120
10121 2018-04-14 Even Rouault <[email protected]>
10122
10123 _TIFFGetMaxColorChannels: update for LOGLUV, ITULAB and ICCLAB that have 3 color channels
10124
10125 2018-04-12 Even Rouault <[email protected]>
10126
10127 Fix MSVC warning.
10128
10129 2018-04-12 Even Rouault <[email protected]>
10130
10131 Merge branch 'master' into 'master'
10132 Fix NULL pointer dereference in TIFFPrintDirectory (bugzilla 2778/CVE-2018-7456)
10133
10134 See merge request libtiff/libtiff!27
10135
10136 2018-04-11 Hugo Lefeuvre <[email protected]>
10137
10138 Fix NULL pointer dereference in TIFFPrintDirectory.
10139 The TIFFPrintDirectory function relies on the following assumptions,
10140 supposed to be guaranteed by the specification:
10141
10142 (a) A Transfer Function field is only present if the TIFF file has
10143 photometric type < 3.
10144
10145 (b) If SamplesPerPixel > Color Channels, then the ExtraSamples field
10146 has count SamplesPerPixel - (Color Channels) and contains
10147 information about supplementary channels.
10148
10149 While respect of (a) and (b) are essential for the well functioning of
10150 TIFFPrintDirectory, no checks are realized neither by the callee nor
10151 by TIFFPrintDirectory itself. Hence, following scenarios might happen
10152 and trigger the NULL pointer dereference:
10153
10154 (1) TIFF File of photometric type 4 or more has illegal Transfer
10155 Function field.
10156
10157 (2) TIFF File has photometric type 3 or less and defines a
10158 SamplesPerPixel field such that SamplesPerPixel > Color Channels
10159 without defining all extra samples in the ExtraSamples fields.
10160
10161 In this patch, we address both issues with respect of the following
10162 principles:
10163
10164 (A) In the case of (1), the defined transfer table should be printed
10165 safely even if it isn't 'legal'. This allows us to avoid expensive
10166 checks in TIFFPrintDirectory. Also, it is quite possible that
10167 an alternative photometric type would be developed (not part of the
10168 standard) and would allow definition of Transfer Table. We want
10169 libtiff to be able to handle this scenario out of the box.
10170
10171 (B) In the case of (2), the transfer table should be printed at its
10172 right size, that is if TIFF file has photometric type Palette
10173 then the transfer table should have one row and not three, even
10174 if two extra samples are declared.
10175
10176 In order to fulfill (A) we simply add a new 'i < 3' end condition to
10177 the broken TIFFPrintDirectory loop. This makes sure that in any case
10178 where (b) would be respected but not (a), everything stays fine.
10179
10180 (B) is fulfilled by the loop condition
10181 'i < td->td_samplesperpixel - td->td_extrasamples'. This is enough as
10182 long as (b) is respected.
10183
10184 Naturally, we also make sure (b) is respected. This is done in the
10185 TIFFReadDirectory function by making sure any non-color channel is
10186 counted in ExtraSamples.
10187
10188 This commit addresses CVE-2018-7456.
10189
10190 2018-03-27 Even Rouault <[email protected]>
10191
10192 Merge branch 'tiffset-long8' into 'master'
10193 tiffset: Add support for LONG8, SLONG8 and IFD8 field types
10194
10195 See merge request libtiff/libtiff!25
10196
10197 2018-03-26 Roger Leigh <[email protected]>
10198
10199 port: Clean up NetBSD sources and headers to build standalone.
10200
10201 2018-03-23 Roger Leigh <[email protected]>
10202
10203 port: Add strtol, strtoll and strtoull.
10204 Also update strtoul. All use the same implementation from NetBSD libc.
10205
10206 tiffset: Add support for LONG8, SLONG8 and IFD8 field types.
10207
10208 2018-03-17 Even Rouault <[email protected]>
10209
10210 ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
10211 Rework fix done in 3719385a3fac5cfb20b487619a5f08abbf967cf8 to work in more
10212 cases like https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6979.
10213 Credit to OSS Fuzz
10214
10215 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2724
10216
10217 2018-03-13 Even Rouault <[email protected]>
10218
10219 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)
10220
10221 2018-03-13 Even Rouault <[email protected]>
10222
10223 Merge branch 'avoid_memory_exhaustion_in_ChopUpSingleUncompressedStrip' into 'master'
10224 ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
10225
10226 See merge request libtiff/libtiff!26
10227
10228 2018-03-11 Even Rouault <[email protected]>
10229
10230 ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
10231 In ChopUpSingleUncompressedStrip(), if the computed number of strips is big
10232 enough and we are in read only mode, validate that the file size is consistent
10233 with that number of strips to avoid useless attempts at allocating a lot of
10234 memory for the td_stripbytecount and td_stripoffset arrays.
10235
10236 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2724
10237
10238 2018-03-10 Even Rouault <[email protected]>
10239
10240 Typo fix in comment.
10241
10242 2018-03-03 Even Rouault <[email protected]>
10243
10244 Avoid warning with gcc 8 (partially revert 647b0e8c11ee11896f319b92cf110775f538d75c)
10245
10246 2018-02-25 Even Rouault <[email protected]>
10247
10248 Merge branch 'typos' into 'master'
10249 Fix some typos
10250
10251 See merge request libtiff/libtiff!23
10252
10253 2018-02-24 Stefan Weil <[email protected]>
10254
10255 Fix some typos.
10256 Most of them were found by codespell.
10257
10258 2018-02-14 Even Rouault <[email protected]>
10259
10260 Typo fix in comment.
10261
10262 Merge branch 'zstd'
10263
10264 Add warning about COMPRESSION_ZSTD not being officially registered.
10265
10266 2018-02-14 Even Rouault <[email protected]>
10267
10268 Merge branch 'bug2772' into 'master'
10269 Fix for bug 2772
10270
10271 See merge request libtiff/libtiff!20
10272
10273 2018-02-12 Nathan Baker <[email protected]>
10274
10275 Fix for bug 2772.
10276 It is possible to craft a TIFF document where the IFD list is circular,
10277 leading to an infinite loop while traversing the chain. The libtiff
10278 directory reader has a failsafe that will break out of this loop after
10279 reading 65535 directory entries, but it will continue processing,
10280 consuming time and resources to process what is essentially a bogus TIFF
10281 document.
10282
10283 This change fixes the above behavior by breaking out of processing when
10284 a TIFF document has >= 65535 directories and terminating with an error.
10285
10286 2018-02-09 Even Rouault <[email protected]>
10287
10288 Merge branch 'libtiff-as-subdirectory-fixes' into 'master'
10289 Prefer target_include_directories
10290
10291 See merge request libtiff/libtiff!12
10292
10293 2018-02-06 Even Rouault <[email protected]>
10294
10295 Merge branch 'cmake-cleanups' into 'master'
10296 Cmake cleanups
10297
10298 See merge request libtiff/libtiff!11
10299
10300 2018-02-06 Even Rouault <[email protected]>
10301
10302 Merge branch 'check-right-cxx-variable' into 'master'
10303 Check right cxx variable
10304
10305 See merge request libtiff/libtiff!19
10306
10307 2018-02-06 Even Rouault <[email protected]>
10308
10309 Merge branch 'dont-leak-stream-open' into 'master'
10310 Fix a memory leak in TIFFStreamOpen
10311
10312 See merge request libtiff/libtiff!17
10313
10314 2018-02-06 Ben Boeckel <[email protected]>
10315
10316 cmake: check CXX_SUPPORT.
10317 This variable is set in response to the `cxx` cache variable; use it
10318 instead.
10319
10320 2018-02-04 Olivier Paquet <[email protected]>
10321
10322 Merge branch 'warnings' into 'master'
10323 Fix all compiler warnings for default build
10324
10325 See merge request libtiff/libtiff!16
10326
10327 2018-02-04 Nathan Baker <[email protected]>
10328
10329 Fix all compiler warnings for default build.
10330
10331 2018-01-30 Paul Kehrer <[email protected]>
10332
10333 tabs are hard.
10334
10335 2018-01-29 Paul Kehrer <[email protected]>
10336
10337 use hard tabs like the rest of the project.
10338
10339 Fix a memory leak in TIFFStreamOpen.
10340 TIFFStreamOpen allocates a new tiff{o,i}s_data, but if TIFFClientOpen
10341 fails then that struct is leaked. Delete it if the returned TIFF * is
10342 null.
10343
10344 2018-01-29 Kevin Funk <[email protected]>
10345
10346 Bump minimum required CMake version to v2.8.11.
10347 Because we use the BUILD_INTERFACE generator expression
10348
10349 2018-01-27 Even Rouault <[email protected]>
10350
10351 Merge branch 'patch-1' into 'master'
10352 Update CMakeLists.txt for build fix on Windows
10353
10354 See merge request libtiff/libtiff!14
10355
10356 2018-01-27 Even Rouault <[email protected]>
10357
10358 Merge branch 'patch-2' into 'master'
10359 Update tiffgt.c for build fix on Windows
10360
10361 See merge request libtiff/libtiff!13
10362
10363 2018-01-25 Olivier Paquet <[email protected]>
10364
10365 Merge branch 'bug2750' into 'master'
10366 Add workaround to pal2rgb buffer overflow.
10367
10368 See merge request libtiff/libtiff!15
10369
10370 2018-01-25 Nathan Baker <[email protected]>
10371
10372 Add workaround to pal2rgb buffer overflow.
10373
10374 2018-01-23 Andrea <[email protected]>
10375
10376 Update tiffgt.c for build fix on Windows.
10377
10378 Update CMakeLists.txt for build fix on Windows.
10379
10380 2018-01-15 Even Rouault <[email protected]>
10381
10382 Merge branch 'has-attribute-check' into 'master'
10383 tiffiop: use __has_attribute to detect the no_sanitize attribute
10384
10385 See merge request libtiff/libtiff!10
10386
10387 2018-01-15 Ben Boeckel <[email protected]>
10388
10389 cmake: avoid setting hard-coded variables in the cache.
10390
10391 cmake: avoid an unnecessary intermediate variable.
10392
10393 cmake: avoid an unnecessary intermediate variable.
10394
10395 cmake: avoid tautological logic.
10396
10397 cmake: use check_symbol_exists.
10398 This accounts for symbols being provided by macros.
10399
10400 cmake: remove unused configure checks.
10401
10402 2018-01-12 Kevin Funk <[email protected]>
10403
10404 Prefer target_include_directories.
10405 When libtiff is included in a super project via a simple
10406 `add_subdirectory(libtiff)`, this way the `tiff` library target has all
10407 the necessary information to build against it.
10408
10409 Note: The BUILD_INTERFACE generator expression feature requires at least
10410 CMake v2.8.11 if I'm correct.
10411
10412 2018-01-09 Ben Boeckel <[email protected]>
10413
10414 tiffiop: use __has_attribute to detect the no_sanitize attribute.
10415
10416 2017-12-31 Even Rouault <[email protected]>
10417
10418 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
10419
10420 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
10421
10422 libtiff/tif_print.c: TIFFPrintDirectory(): fix null pointer dereference on corrupted file. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2770
10423
10424 2017-12-21 Even Rouault <[email protected]>
10425
10426 Add libzstd to gitlab-ci.
10427
10428 2017-12-21 Even Rouault <[email protected]>
10429
10430 Add ZSTD compression codec.
10431 From https://github.com/facebook/zstd
10432 "Zstandard, or zstd as short version, is a fast lossless compression
10433 algorithm, targeting real-time compression scenarios at zlib-level
10434 and better compression ratios. It's backed by a very fast entropy stage,
10435 provided by Huff0 and FSE library."
10436
10437 We require libzstd >= 1.0.0 so as to be able to use streaming compression
10438 and decompression methods.
10439
10440 The default compression level we have selected is 9 (range goes from 1 to 22),
10441 which experimentally offers equivalent or better compression ratio than
10442 the default deflate/ZIP level of 6, and much faster compression.
10443
10444 For example on a 6600x4400 16bit image, tiffcp -c zip runs in 10.7 seconds,
10445 while tiffcp -c zstd runs in 5.3 seconds. Decompression time for zip is
10446 840 ms, and for zstd 650 ms. File size is 42735936 for zip, and
10447 42586822 for zstd. Similar findings on other images.
10448
10449 On a 25894x16701 16bit image,
10450
10451 Compression time Decompression time File size
10452
10453 ZSTD 35 s 3.2 s 399 700 498
10454 ZIP/Deflate 1m 20 s 4.9 s 419 622 336
10455
10456 2017-12-10 Even Rouault <[email protected]>
10457
10458 Merge branch 'fix_cve-2017-9935' into 'master'
10459 Fix CVE-2017-9935
10460
10461 See merge request libtiff/libtiff!7
10462
10463 2017-12-10 Brian May <[email protected]>
10464
10465 tiff2pdf: Fix apparent incorrect type for transfer table.
10466 The standard says the transfer table contains unsigned 16 bit values,
10467 I have no idea why we refer to them as floats.
10468
10469 2017-12-10 Brian May <[email protected]>
10470
10471 tiff2pdf: Fix CVE-2017-9935.
10472 Fix for http://bugzilla.maptools.org/show_bug.cgi?id=2704
10473
10474 This vulnerability - at least for the supplied test case - is because we
10475 assume that a tiff will only have one transfer function that is the same
10476 for all pages. This is not required by the TIFF standards.
10477
10478 We than read the transfer function for every page. Depending on the
10479 transfer function, we allocate either 2 or 4 bytes to the XREF buffer.
10480 We allocate this memory after we read in the transfer function for the
10481 page.
10482
10483 For the first exploit - POC1, this file has 3 pages. For the first page
10484 we allocate 2 extra extra XREF entries. Then for the next page 2 more
10485 entries. Then for the last page the transfer function changes and we
10486 allocate 4 more entries.
10487
10488 When we read the file into memory, we assume we have 4 bytes extra for
10489 each and every page (as per the last transfer function we read). Which
10490 is not correct, we only have 2 bytes extra for the first 2 pages. As a
10491 result, we end up writing past the end of the buffer.
10492
10493 There are also some related issues that this also fixes. For example,
10494 TIFFGetField can return uninitialized pointer values, and the logic to
10495 detect a N=3 vs N=1 transfer function seemed rather strange.
10496
10497 It is also strange that we declare the transfer functions to be of type
10498 float, when the standard says they are unsigned 16 bit values. This is
10499 fixed in another patch.
10500
10501 This patch will check to ensure that the N value for every transfer
10502 function is the same for every page. If this changes, we abort with an
10503 error. In theory, we should perhaps check that the transfer function
10504 itself is identical for every page, however we don't do that due to the
10505 confusion of the type of the data in the transfer function.
10506
10507 2017-12-10 Even Rouault <[email protected]>
10508
10509 Merge branch 'undef-warn-fixes' into 'master'
10510 Fix a couple of harmless but annoying -Wundef warnings
10511
10512 See merge request libtiff/libtiff!8
10513
10514 2017-12-07 Vadim Zeitlin <[email protected]>
10515
10516 Remove tests for undefined SIZEOF_VOIDP.
10517 As configure never uses AC_CHECK_SIZEOF(void*), this symbol is never
10518 defined and so it doesn't make sense to test it in the code, this just
10519 results in -Wundef warnings if they're enabled.
10520
10521 Avoid harmless -Wundef warnings for __clang_major__
10522 Check that we're using Clang before checking its version.
10523
10524 2017-12-02 Even Rouault <[email protected]>
10525
10526 Merge branch 'remove_autogenerated_files' into 'master'
10527 Remove autogenerated files
10528
10529 See merge request libtiff/libtiff!5
10530
10531 2017-12-02 Bob Friesenhahn <[email protected]>
10532
10533 Merge branch 'tif_config_h_includes' into 'master'
10534 'tif_config.h' or 'tiffiop.h' must be included before any system header.
10535
10536 See merge request libtiff/libtiff!6
10537
10538 2017-12-02 Bob Friesenhahn <[email protected]>
10539
10540 'tif_config.h' or 'tiffio.h' must be included before any system header.
10541
10542 2017-12-01 Even Rouault <[email protected]>
10543
10544 .gitignore: add patterns for build from root.
10545
10546 Remove remaining .cvsignore files.
10547
10548 Remove autoconf/automake generated files, and add them to .gitignore.
10549
10550 2017-12-01 Olivier Paquet <[email protected]>
10551
10552 Merge branch 'makedistcheck' into 'master'
10553 build/gitlab-ci and build/travis-ci: add a 'make dist' step in autoconf_build()…
10554
10555 See merge request libtiff/libtiff!4
10556
10557 2017-12-01 Even Rouault <[email protected]>
10558
10559 build/gitlab-ci and build/travis-ci: add a 'make dist' step in autoconf_build() target, to check we are release-ready
10560
10561 2017-12-01 Even Rouault <[email protected]>
10562
10563 Merge branch 'git_updates' into 'master'
10564 CVS to Git updates
10565
10566 See merge request libtiff/libtiff!2
10567
10568 2017-12-01 Even Rouault <[email protected]>
10569
10570 HOWTO-RELEASE: update to use signed tags.
10571
10572 README.md: use markdown syntax for hyperlinks.
10573
10574 2017-11-30 Even Rouault <[email protected]>
10575
10576 Add .gitignore.
10577
10578 Regenerate autoconf files.
10579
10580 Makefile.am: update to reflect removal of README.vms and README -> README.md
10581
10582 Remove all $Id and $Headers comments with CVS versions.
10583
10584 HOWTO-RELEASE: update for git.
10585
10586 Remove outdated .cvsignore.
10587
10588 Remove outdated commit script.
10589
10590 Remove README.vms.
10591
10592 Rename README as README.md, and update content.
10593
10594 html/index.html: reflect change from CVS to gitlab.
10595
10596 2017-11-30 Olivier Paquet <[email protected]>
10597
10598 Merge branch 'test-ci' into 'master'
10599 Update CI configuration
10600
10601 See merge request libtiff/libtiff!1
10602
10603 2017-11-23 Roger Leigh <[email protected]>
10604
10605 appveyor: Correct path for git clone and skip artifact archival.
10606
10607 2017-11-22 Roger Leigh <[email protected]>
10608
10609 travis-ci: Remove unused matrix exclusion.
10610
10611 Add gitlab-ci build support.
10612
10613 2017-11-18 Bob Friesenhahn <[email protected]>
10614
10615 * configure.ac: libtiff 4.0.9 released.
10616
10617 * html/v4.0.9.html: Add HTML file to document changes in libtiff
10618 v4.0.9.
10619
10620 2017-11-17 Even Rouault <even.rouault at spatialys.com>
10621
10622 * libtiff/tif_aux.c, tif_getimage.c, tif_read.c: typo fixes in
10623 comments.
10624
10625 2017-11-02 Bob Friesenhahn <[email protected]>
10626
10627 * test/Makefile.am: Add some tests for tiff2bw.
10628
10629 2017-11-01 Bob Friesenhahn <[email protected]>
10630
10631 * tools/tiff2bw.c (main): Free memory allocated in the tiff2bw
10632 program. This is in response to the report associated with
10633 CVE-2017-16232 but does not solve the extremely high memory usage
10634 with the associated POC file.
10635
10636 2017-10-29 Bob Friesenhahn <[email protected]>
10637
10638 * tools/tiff2pdf.c (t2p_sample_realize_palette): Fix possible
10639 arithmetic overflow in bounds checking code and eliminate
10640 comparison between signed and unsigned type.
10641
10642 * tools/fax2tiff.c (_FAX_Client_Data): Pass FAX_Client_Data as the
10643 client data. This client data is not used at all at the moment,
10644 but it makes the most sense. Issue that the value of
10645 client_data.fd was passed where a pointer is expected was reported
10646 via email by Gerald Schade on Sun, 29 Oct 2017.
10647
10648 2017-10-23 Even Rouault <even.rouault at spatialys.com>
10649
10650 * libtiff/tif_getimage.c: avoid floating point division by zero in
10651 initCIELabConversion()
10652 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3733
10653 Credit to OSS Fuzz
10654
10655 2017-10-17 Even Rouault <even.rouault at spatialys.com>
10656
10657 * libtiff/tif_jpeg.c: add compatibility with libjpeg-turbo 1.5.2 that
10658 honours max_memory_to_use > 0.
10659 Cf https://github.com/libjpeg-turbo/libjpeg-turbo/issues/162
10660
10661 2017-10-10 Even Rouault <even.rouault at spatialys.com>
10662
10663 * nmake.opt: support a DEBUG=1 option, so as to adjust OPTFLAGS and use
10664 /MDd runtime in debug mode.
10665
10666 2017-10-01 Even Rouault <even.rouault at spatialys.com>
10667
10668 * tools/tiffset.c: fix setting a single value for the ExtraSamples tag
10669 (and other tags with variable number of values).
10670 So 'tiffset -s ExtraSamples 1 X'. This only worked
10671 when setting 2 or more values, but not just one.
10672
10673 2017-09-29 Even Rouault <even.rouault at spatialys.com>
10674
10675 * libtiff/libtiff.def: add TIFFReadRGBAStripExt and TIFFReadRGBATileExt
10676 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2735
10677
10678 2017-09-09 Even Rouault <even.rouault at spatialys.com>
10679
10680 * libtiff/tif_dirread.c: add NULL check to avoid likely false positive
10681 null-pointer dereference warning by CLang Static Analyzer.
10682
10683 2017-09-07 Even Rouault <even.rouault at spatialys.com>
10684
10685 * libtiff/tiffiop.h, tif_aux.c: redirect SeekOK() macro to a _TIFFSeekoK()
10686 function that checks if the offset is not bigger than INT64_MAX, so as
10687 to avoid a -1 error return code of TIFFSeekFile() to match a required
10688 seek to UINT64_MAX/-1.
10689 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2726
10690 Adapted from proposal by Nicolas Ruff.
10691
10692 2017-08-29 Even Rouault <even.rouault at spatialys.com>
10693
10694 * libtiff/tif_jpeg.c: accept reading the last strip of a JPEG compressed
10695 file if the codestream height is larger than the truncated height of the
10696 strip. Emit a warning in this situation since this is non compliant.
10697
10698 2017-08-28 Even Rouault <even.rouault at spatialys.com>
10699
10700 * test/Makefile.am: add missing reference to images/quad-lzw-compat.tiff
10701 to fix "make distcheck". Patch by Roger Leigh
10702
10703 2017-08-23 Even Rouault <even.rouault at spatialys.com>
10704
10705 * libtiff/tif_dirwrite.c: replace assertion to tag value not fitting
10706 on uint32 when selecting the value of SubIFD tag by runtime check
10707 (in TIFFWriteDirectoryTagSubifd()).
10708 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2728
10709 Reported by team OWL337
10710
10711 2017-08-23 Even Rouault <even.rouault at spatialys.com>
10712
10713 * libtiff/tif_dirwrite.c: replace assertion related to not finding the
10714 SubIFD tag by runtime check (in TIFFWriteDirectorySec())
10715 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2727
10716 Reported by team OWL337
10717
10718 2017-07-24 Even Rouault <even.rouault at spatialys.com>
10719
10720 * libtiff/tif_luv.c: further reduce memory requirements for temporary
10721 buffer when RowsPerStrip >= image_length in LogLuvInitState() and
10722 LogL16InitState().
10723 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2700
10724 Credit to OSS Fuzz
10725
10726 2017-07-24 Even Rouault <even.rouault at spatialys.com>
10727
10728 * libtiff/tif_getimage.c: fix fromskew computation when to-be-skipped
10729 pixel number is not a multiple of the horizontal subsampling, and
10730 also in some other cases. Impact putcontig8bitYCbCr44tile,
10731 putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile,
10732 putcontig8bitYCbCr21tile and putcontig8bitYCbCr12tile
10733 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2637 (discovered
10734 by Agostino Sarubbo)
10735 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2691 (credit
10736 to OSS Fuzz)
10737
10738 2017-07-24 Even Rouault <even.rouault at spatialys.com>
10739
10740 * libtiff/tif_getimage.c: gtTileContig() and gtTileSeparate():
10741 properly break from loops on error when stoponerr is set, instead
10742 of going on iterating on row based loop.
10743
10744 2017-07-18 Even Rouault <even.rouault at spatialys.com>
10745
10746 * libtiff/tif_luv.c: LogLuvInitState(): avoid excessive memory
10747 allocation when RowsPerStrip tag is missing.
10748 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2683
10749 Credit to OSS-Fuzz
10750
10751 2017-07-15 Even Rouault <even.rouault at spatialys.com>
10752
10753 * libtiff/tif_read.c: add protection against excessive memory
10754 allocation attempts in TIFFReadDirEntryArray() on short files.
10755 Effective for mmap'ed case. And non-mmap'ed case, but restricted
10756 to 64bit builds.
10757 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2675
10758
10759 2017-07-15 Even Rouault <even.rouault at spatialys.com>
10760
10761 * libtiff/tif_read.c: in TIFFFetchStripThing(), only grow the
10762 arrays that hold StripOffsets/StripByteCounts, when they are smaller
10763 than the expected number of striles, up to 1 million striles, and
10764 error out beyond. Can be tweaked by setting the environment variable
10765 LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT.
10766 This partially goes against a change added on 2002-12-17 to accept
10767 those arrays of wrong sizes, but is needed to avoid denial of services.
10768 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2350
10769 Credit to OSS Fuzz
10770
10771 2017-07-15 Even Rouault <even.rouault at spatialys.com>
10772
10773 * libtiff/tif_read.c: TIFFFillStrip() / TIFFFillTile().
10774 Complementary fix for http://bugzilla.maptools.org/show_bug.cgi?id=2708
10775 in the isMapped() case, so as to avoid excessive memory allocation
10776 when we need a temporary buffer but the file is truncated.
10777
10778 2017-07-15 Even Rouault <even.rouault at spatialys.com>
10779
10780 * tools/tiff2pdf.c: prevent heap buffer overflow write in "Raw"
10781 mode on PlanarConfig=Contig input images.
10782 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2715
10783 Reported by team OWL337
10784
10785 2017-07-11 Even Rouault <even.rouault at spatialys.com>
10786
10787 * libtiff/tif_dir.c: avoid potential null pointer dereference in
10788 _TIFFVGetField() on corrupted TIFFTAG_NUMBEROFINKS tag instance.
10789 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2713
10790
10791 2017-07-11 Even Rouault <even.rouault at spatialys.com>
10792
10793 * libtiff/tif_lzw.c: fix potential out-of-buffer read on 1-byte LZW
10794 strips. Crashing issue only on memory mapped files, where the strip
10795 offset is the last byte of the file, and the file size is a multiple
10796 of one page size on the CPU architecture (typically 4096). Credit
10797 to myself :-)
10798
10799 2017-07-11 Even Rouault <even.rouault at spatialys.com>
10800
10801 * test/tiffcp-lzw-compat.sh, test/images/quad-lzw-compat.tiff: new files
10802 to test old-style LZW decompression
10803 * test/common.sh, Makefile.am, CMakeList.txt: updated with above
10804
10805 2017-07-11 Even Rouault <even.rouault at spatialys.com>
10806
10807 * refresh autoconf/make stuff with what is on Ubuntu 16.04 (minor changes)
10808
10809 2017-07-11 Even Rouault <even.rouault at spatialys.com>
10810
10811 * libtiff/tif_lzw.c: fix 4.0.8 regression in the decoding of old-style LZW
10812 compressed files.
10813
10814 2017-07-10 Even Rouault <even.rouault at spatialys.com>
10815
10816 * libtiff/tif_pixarlog.c: avoid excessive memory allocation on decoding
10817 when RowsPerStrip tag is not defined (and thus td_rowsperstrip == UINT_MAX)
10818 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2554
10819 Credit to OSS Fuzz
10820
10821 2017-07-04 Even Rouault <even.rouault at spatialys.com>
10822
10823 * libtiff/tif_read.c, tiffiop.h: add a _TIFFReadEncodedTileAndAllocBuffer()
10824 and _TIFFReadTileAndAllocBuffer() variants of TIFFReadEncodedTile() and
10825 TIFFReadTile() that allocates the decoded buffer only after a first
10826 successful TIFFFillTile(). This avoids excessive memory allocation
10827 on corrupted files.
10828 * libtiff/tif_getimage.c: use _TIFFReadTileAndAllocBuffer().
10829 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2470
10830 Credit to OSS Fuzz.
10831
10832 2017-07-04 Even Rouault <even.rouault at spatialys.com>
10833
10834 * libtiff/tif_error.c, tif_warning.c: correctly use va_list when both
10835 an old-style and new-style warning/error handlers are installed.
10836 Patch by Paavo Helde (sent on the mailing list)
10837
10838 2017-07-02 Even Rouault <even.rouault at spatialys.com>
10839
10840 * libtiff/tif_read.c: TIFFStartTile(): set tif_rawcc to
10841 tif_rawdataloaded when it is set. Similarly to TIFFStartStrip().
10842 This issue was revealed by the change of 2017-06-30 in TIFFFileTile(),
10843 limiting the number of bytes read. But it could probably have been hit
10844 too in CHUNKY_STRIP_READ_SUPPORT mode previously ?
10845 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2454
10846 Credit to OSS Fuzz
10847
10848 2017-06-30 Even Rouault <even.rouault at spatialys.com>
10849
10850 * man: update documentation regarding SubIFD tag and
10851 TIFFSetSubDirectory() data type.
10852 Patch by Eric Piel
10853 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2671
10854
10855 2017-06-30 Even Rouault <even.rouault at spatialys.com>
10856
10857 * libtiff/tif_dirwrite.c: in TIFFWriteDirectoryTagCheckedXXXX()
10858 functions associated with LONG8/SLONG8 data type, replace assertion that
10859 the file is BigTIFF, by a non-fatal error.
10860 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2712
10861 Reported by team OWL337
10862
10863 2017-06-30 Even Rouault <even.rouault at spatialys.com>
10864
10865 * libtiff/tif_read.c, tiffiop.h: add a _TIFFReadEncodedStripAndAllocBuffer()
10866 function, variant of TIFFReadEncodedStrip() that allocates the
10867 decoded buffer only after a first successful TIFFFillStrip(). This avoids
10868 excessive memory allocation on corrupted files.
10869 * libtiff/tif_getimage.c: use _TIFFReadEncodedStripAndAllocBuffer().
10870 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2708 and
10871 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2433 .
10872 Credit to OSS Fuzz
10873
10874 2017-06-30 Even Rouault <even.rouault at spatialys.com>
10875
10876 * libtiff/tif_read.c: TIFFFillTile(): add limitation to the number
10877 of bytes read in case td_stripbytecount[strip] is bigger than
10878 reasonable, so as to avoid excessive memory allocation (similarly to
10879 what was done for TIFFFileStrip() on 2017-05-10)
10880
10881 2017-06-29 Even Rouault <even.rouault at spatialys.com>
10882
10883 * libtiff/tiffiop.h, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c,
10884 libtiff/tif_read.c: make TIFFReadScanline() works in
10885 CHUNKY_STRIP_READ_SUPPORT mode with JPEG stream with multiple scans.
10886 Also make configurable through a LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER
10887 environment variable the maximum number of scans allowed. Defaults to
10888 100.
10889
10890 2017-06-27 Even Rouault <even.rouault at spatialys.com>
10891
10892 * libtiff/tif_dirread.c: in TIFFReadDirEntryFloat(), check that a
10893 double value can fit in a float before casting. Patch by Nicolas RUFF
10894
10895 2017-06-26 Even Rouault <even.rouault at spatialys.com>
10896
10897 * libtiff/tif_jbig.c: fix memory leak in error code path of JBIGDecode()
10898 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2706
10899 Reported by team OWL337
10900
10901 2017-06-24 Even Rouault <even.rouault at spatialys.com>
10902
10903 * libtiff/tif_jpeg.c: error out at decoding time if anticipated libjpeg
10904 memory allocation is above 100 MB. libjpeg in case of multiple scans,
10905 which is allowed even in baseline JPEG, if components are spread over several
10906 scans and not interleavedin a single one, needs to allocate memory (or
10907 backing store) for the whole strip/tile.
10908 See http://www.libjpeg-turbo.org/pmwiki/uploads/About/TwoIssueswiththeJPEGStandard.pdf
10909 This limitation may be overridden by setting the
10910 LIBTIFF_ALLOW_LARGE_LIBJPEG_MEM_ALLOC environment variable, or recompiling
10911 libtiff with a custom value of TIFF_LIBJPEG_LARGEST_MEM_ALLOC macro.
10912
10913 2017-06-24 Even Rouault <even.rouault at spatialys.com>
10914
10915 * libtiff/tif_jpeg.c: add anti-denial of service measure to avoid excessive
10916 CPU consumption on progressive JPEGs with a huge number of scans.
10917 See http://www.libjpeg-turbo.org/pmwiki/uploads/About/TwoIssueswiththeJPEGStandard.pdf
10918 Note: only affects libtiff since 2014-12-29 where support of non-baseline JPEG
10919 was added.
10920
10921 2017-06-18 Even Rouault <even.rouault at spatialys.com>
10922
10923 * libtiff/tiffiop.h: add TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW macro to
10924 disable CLang warnings raised by -fsanitize=undefined,unsigned-integer-overflow
10925 * libtiff/tif_predict.c: decorate legitimate functions where unsigned int
10926 overflow occur with TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
10927 * libtiff/tif_dirread.c: avoid unsigned int overflow in EstimateStripByteCounts()
10928 and BYTECOUNTLOOKSBAD when file is too short.
10929 * libtiff/tif_jpeg.c: avoid (harmless) unsigned int overflow on tiled images.
10930 * libtiff/tif_fax3.c: avoid unsigned int overflow in Fax3Encode2DRow(). Could
10931 potentially be a bug with huge rows.
10932 * libtiff/tif_getimage.c: avoid many (harmless) unsigned int overflows.
10933
10934 2017-06-12 Even Rouault <even.rouault at spatialys.com>
10935
10936 * libtiff/tif_dirread.c: TIFFFetchStripThing(): limit the number of items
10937 read in StripOffsets/StripByteCounts tags to the number of strips to avoid
10938 excessive memory allocation.
10939 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2215
10940 Credit to OSS Fuzz
10941
10942 2017-06-12 Even Rouault <even.rouault at spatialys.com>
10943
10944 * libtiff/tif_dirread.c: fix regression of libtiff 4.0.8 in
10945 ChopUpSingleUncompressedStrip() regarding update of newly single-strip
10946 uncompressed files whose bytecount is 0. Before the change of 2016-12-03,
10947 the condition bytecount==0 used to trigger an early exit/disabling of
10948 strip chop. Re-introduce that in update mode. Otherwise this cause
10949 later incorrect setting for the value of StripByCounts/StripOffsets.
10950 ( https://trac.osgeo.org/gdal/ticket/6924 )
10951
10952 2017-06-10 Even Rouault <even.rouault at spatialys.com>
10953
10954 * .appveyor.yml, .travis.yml, build/travis-ci: apply patches
10955 0001-ci-Travis-script-improvements.patch and
10956 0002-ci-Invoke-helper-script-via-shell.patch by Roger Leigh
10957 (sent to mailing list)
10958
10959 2017-06-08 Even Rouault <even.rouault at spatialys.com>
10960
10961 * .travis.yml, build/travis-ci: new files from
10962 0001-ci-Add-Travis-support-for-Linux-builds-with-Autoconf.patch by
10963 Roger Leigh (sent to mailing list on 2017-06-08)
10964 This patch adds support for the Travis-CI service.
10965
10966 * .appveyor.yml: new file from
10967 0002-ci-Add-AppVeyor-support.patch by Roger Leigh (sent to mailing
10968 list on 2017-06-08)
10969 This patch adds a .appveyor.yml file to the top-level. This allows
10970 one to opt in to having a branch built on Windows with Cygwin,
10971 MinGW and MSVC automatically when a branch is pushed to GitHub,
10972 GitLab, BitBucket or any other supported git hosting service.
10973
10974 * CMakeLists.txt, test/CMakeLists.txt, test/TiffTestCommon.cmake: apply
10975 patch 0001-cmake-Improve-Cygwin-and-MingGW-test-support.patch from Roger
10976 Leigh (sent to mailing list on 2017-06-08)
10977 This patch makes the CMake build system support running the tests
10978 with MinGW or Cygwin.
10979
10980 2017-06-08 Even Rouault <even.rouault at spatialys.com>
10981
10982 * libtiff/tif_swab.c: if DISABLE_CHECK_TIFFSWABMACROS is defined, do not do
10983 the #ifdef TIFFSwabXXX checks. Make it easier for GDAL to rename the symbols
10984 of its internal libtiff copy.
10985
10986 2017-06-01 Even Rouault <even.rouault at spatialys.com>
10987
10988 * libtiff/tif_dirinfo.c, tif_dirread.c: add _TIFFCheckFieldIsValidForCodec(),
10989 and use it in TIFFReadDirectory() so as to ignore fields whose tag is a
10990 codec-specified tag but this codec is not enabled. This avoids TIFFGetField()
10991 to behave differently depending on whether the codec is enabled or not, and
10992 thus can avoid stack based buffer overflows in a number of TIFF utilities
10993 such as tiffsplit, tiffcmp, thumbnail, etc.
10994 Patch derived from 0063-Handle-properly-CODEC-specific-tags.patch
10995 (http://bugzilla.maptools.org/show_bug.cgi?id=2580) by Raphaël Hertzog.
10996 Fixes:
10997 http://bugzilla.maptools.org/show_bug.cgi?id=2580
10998 http://bugzilla.maptools.org/show_bug.cgi?id=2693
10999 http://bugzilla.maptools.org/show_bug.cgi?id=2625 (CVE-2016-10095)
11000 http://bugzilla.maptools.org/show_bug.cgi?id=2564 (CVE-2015-7554)
11001 http://bugzilla.maptools.org/show_bug.cgi?id=2561 (CVE-2016-5318)
11002 http://bugzilla.maptools.org/show_bug.cgi?id=2499 (CVE-2014-8128)
11003 http://bugzilla.maptools.org/show_bug.cgi?id=2441
11004 http://bugzilla.maptools.org/show_bug.cgi?id=2433
11005
11006 2017-05-29 Even Rouault <even.rouault at spatialys.com>
11007
11008 * libtiff/tif_getimage.c: initYCbCrConversion(): stricter validation for
11009 refBlackWhite coefficients values. To avoid invalid float->int32 conversion
11010 (when refBlackWhite[0] == 2147483648.f)
11011 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1907
11012 Credit to OSS Fuzz
11013
11014 2017-05-29 Even Rouault <even.rouault at spatialys.com>
11015
11016 * libtiff/tif_color.c: TIFFYCbCrToRGBInit(): stricter clamping to avoid
11017 int32 overflow in TIFFYCbCrtoRGB().
11018 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1844
11019 Credit to OSS Fuzz
11020
11021 2017-05-21 Bob Friesenhahn <[email protected]>
11022
11023 * configure.ac: libtiff 4.0.8 released.
11024
11025 * html/v4.0.8.html: Add description of changes targeting the 4.0.8
11026 release.
11027
11028 2017-05-20 Even Rouault <even.rouault at spatialys.com>
11029
11030 * libtiff/tif_getimage.c: initYCbCrConversion(): stricter validation for
11031 refBlackWhite coefficients values. To avoid invalid float->int32 conversion.
11032 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1718
11033 Credit to OSS Fuzz
11034
11035 2017-05-18 Even Rouault <even.rouault at spatialys.com>
11036
11037 * libtiff/tif_getimage.c: initYCbCrConversion(): check luma[1] is not zero
11038 to avoid division by zero.
11039 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1665
11040 Credit to OSS Fuzz
11041
11042 2017-05-17 Even Rouault <even.rouault at spatialys.com>
11043
11044 * libtiff/tif_read.c: _TIFFVSetField(): fix outside range cast of double to
11045 float.
11046 Credit to Google Autofuzz project
11047
11048 2017-05-17 Even Rouault <even.rouault at spatialys.com>
11049
11050 * libtiff/tif_getimage.c: initYCbCrConversion(): add basic validation of
11051 luma and refBlackWhite coefficients (just check they are not NaN for now),
11052 to avoid potential float to int overflows.
11053 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1663
11054 Credit to OSS Fuzz
11055
11056 2017-05-17 Even Rouault <even.rouault at spatialys.com>
11057
11058 * libtiff/tif_pixarlog.c: PixarLogDecode(): resync tif_rawcp with
11059 next_in and tif_rawcc with avail_in at beginning and end of function,
11060 similarly to what is done in LZWDecode(). Likely needed so that it
11061 works properly with latest changes in tif_read.c in CHUNKY_STRIP_READ_SUPPORT
11062 mode. But untested...
11063
11064 2017-05-17 Even Rouault <even.rouault at spatialys.com>
11065
11066 * libtiff/tif_lzw.c: update dec_bitsleft at beginning of LZWDecode(),
11067 and update tif_rawcc at end of LZWDecode(). This is needed to properly
11068 work with the latest changes in tif_read.c in CHUNKY_STRIP_READ_SUPPORT
11069 mode.
11070
11071 2017-05-14 Even Rouault <even.rouault at spatialys.com>
11072
11073 * libtiff/tif_luv.c: LogL16InitState(): avoid excessive memory
11074 allocation when RowsPerStrip tag is missing.
11075 Credit to OSS-Fuzz (locally run, on GDAL)
11076
11077 2017-05-14 Even Rouault <even.rouault at spatialys.com>
11078
11079 * libtiff/tif_packbits.c: fix out-of-buffer read in PackBitsDecode()
11080 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1563
11081 Credit to OSS-Fuzz
11082
11083 2017-05-13 Even Rouault <even.rouault at spatialys.com>
11084
11085 * libtiff/tif_pixarlog.c, tif_luv.c: avoid potential int32
11086 overflows in multiply_ms() and add_ms().
11087 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1558
11088 Credit to OSS-Fuzz
11089
11090 2017-05-13 Even Rouault <even.rouault at spatialys.com>
11091
11092 * libtiff/tif_color.c: avoid potential int32 overflow in
11093 TIFFYCbCrToRGBInit()
11094 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1533
11095 Credit to OSS-Fuzz
11096
11097 2017-05-13 Even Rouault <even.rouault at spatialys.com>
11098
11099 * libtiff/tif_read.c: update tif_rawcc in CHUNKY_STRIP_READ_SUPPORT
11100 mode with tif_rawdataloaded when calling TIFFStartStrip() or
11101 TIFFFillStripPartial(). This avoids reading beyond tif_rawdata
11102 when bytecount > tif_rawdatasize.
11103 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1545.
11104 Credit to OSS-Fuzz
11105
11106 2017-05-12 Even Rouault <even.rouault at spatialys.com>
11107
11108 * libtiff/tif_read.c: TIFFFillStripPartial():
11109 avoid excessive memory allocation in case of shorten files.
11110 Only effective on 64 bit builds.
11111 Credit to OSS-Fuzz (locally run, on GDAL)
11112
11113 2017-05-12 Even Rouault <even.rouault at spatialys.com>
11114
11115 * libtiff/tif_read.c: TIFFFillStripPartial() / TIFFSeek(),
11116 avoid potential integer overflows with read_ahead in
11117 CHUNKY_STRIP_READ_SUPPORT mode. Should
11118 especially occur on 32 bit platforms.
11119
11120 2017-05-10 Even Rouault <even.rouault at spatialys.com>
11121
11122 * libtiff/tif_read.c: TIFFFillStrip() and TIFFFillTile():
11123 avoid excessive memory allocation in case of shorten files.
11124 Only effective on 64 bit builds and non-mapped cases.
11125 Credit to OSS-Fuzz (locally run, on GDAL)
11126
11127 2017-05-10 Even Rouault <even.rouault at spatialys.com>
11128
11129 * libtiff/tif_zip.c, tif_pixarlog.c, tif_predict.c: fix memory
11130 leak when the underlying codec (ZIP, PixarLog) succeeds its
11131 setupdecode() method, but PredictorSetup fails.
11132 Credit to OSS-Fuzz (locally run, on GDAL)
11133
11134 2017-05-10 Even Rouault <even.rouault at spatialys.com>
11135
11136 * libtiff/tif_read.c: TIFFFillStrip(): add limitation to the number
11137 of bytes read in case td_stripbytecount[strip] is bigger than
11138 reasonable, so as to avoid excessive memory allocation.
11139
11140 2017-04-28 Even Rouault <even.rouault at spatialys.com>
11141
11142 * tools/tiff2bw.c: close TIFF handle in error code path.
11143 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2677
11144
11145 2017-04-27 Even Rouault <even.rouault at spatialys.com>
11146
11147 * litiff/tif_fax3.c: avoid crash in Fax3Close() on empty file.
11148 Patch by Alan Coopersmith + complement by myself.
11149 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2673
11150 * tools/fax2tiff.c: emit appropriate message if the input file is
11151 empty. Patch by Alan Coopersmith.
11152 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2672
11153
11154 2017-04-27 Even Rouault <even.rouault at spatialys.com>
11155
11156 * libtiff/tif_ojpeg.c: fix potential memory leak in
11157 OJPEGReadHeaderInfoSecTablesQTable, OJPEGReadHeaderInfoSecTablesDcTable
11158 and OJPEGReadHeaderInfoSecTablesAcTable
11159 Patch by Nicolás Peña.
11160 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2670
11161
11162 2017-04-27 Even Rouault <even.rouault at spatialys.com>
11163
11164 * libtiff/tif_dirread.c: fix memory leak in non DEFER_STRILE_LOAD
11165 mode (ie default) when there is both a StripOffsets and
11166 TileOffsets tag, or a StripByteCounts and TileByteCounts
11167 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2689
11168 * tools/tiff2ps.c: call TIFFClose() in error code paths.
11169
11170 2017-02-25 Even Rouault <even.rouault at spatialys.com>
11171
11172 * libtiff/tif_fax3.c, tif_predict.c, tif_getimage.c: fix GCC 7
11173 -Wimplicit-fallthrough warnings.
11174
11175 2017-02-18 Even Rouault <even.rouault at spatialys.com>
11176
11177 * libtiff/tif_pixarlog.c: fix memory leak in error code path of
11178 PixarLogSetupDecode(). Patch by Nicolás Peña.
11179 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2665
11180
11181 2017-02-18 Even Rouault <even.rouault at spatialys.com>
11182
11183 * libtiff/tif_lzw.c: in LZWPostEncode(), increase, if necessary, the
11184 code bit-width after flushing the remaining code and before emitting
11185 the EOI code.
11186 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=1982
11187
11188 2017-01-31 Even Rouault <even.rouault at spatialys.com>
11189
11190 * libtiff/tif_jpeg.c: only run JPEGFixupTagsSubsampling() if the
11191 YCbCrSubsampling tag is not explicitly present. This helps a bit to reduce
11192 the I/O amount when the tag is present (especially on cloud hosted files).
11193
11194 2017-01-14 Even Rouault <even.rouault at spatialys.com>
11195
11196 * tools/raw2tiff.c: avoid integer division by zero.
11197 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2631
11198
11199 2017-01-12 Even Rouault <even.rouault at spatialys.com>
11200
11201 * libtiff/tif_ojpeg.c: fix leak in OJPEGReadHeaderInfoSecTablesQTable,
11202 OJPEGReadHeaderInfoSecTablesDcTable and OJPEGReadHeaderInfoSecTablesAcTable
11203 when read fails.
11204 Patch by Nicolás Peña.
11205 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2659
11206
11207 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11208
11209 * libtiff/tif_luv.c, tif_lzw.c, tif_packbits.c: return 0 in Encode
11210 functions instead of -1 when TIFFFlushData1() fails.
11211 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2130
11212
11213 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11214
11215 * tools/tiffcp.c: error out cleanly in cpContig2SeparateByRow and
11216 cpSeparate2ContigByRow if BitsPerSample != 8 to avoid heap based overflow.
11217 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2656 and
11218 http://bugzilla.maptools.org/show_bug.cgi?id=2657
11219
11220 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11221
11222 * libtiff/tiffio.h, tif_unix.c, tif_win32.c, tif_vms.c: add _TIFFcalloc()
11223
11224 * libtiff/tif_read.c: TIFFReadBufferSetup(): use _TIFFcalloc() to zero
11225 initialize tif_rawdata.
11226 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2651
11227
11228 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11229
11230 * libtiff/tif_getimage.c: add explicit uint32 cast in putagreytile to
11231 avoid UndefinedBehaviorSanitizer warning.
11232 Patch by Nicolás Peña.
11233 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2658
11234
11235 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11236
11237 * libtiff/tif_read.c: avoid potential undefined behaviour on signed integer
11238 addition in TIFFReadRawStrip1() in isMapped() case.
11239 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2650
11240
11241 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11242
11243 * libtiff/tif_jpeg.c: validate BitsPerSample in JPEGSetupEncode() to avoid
11244 undefined behaviour caused by invalid shift exponent.
11245 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2648
11246
11247 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11248
11249 * libtiff/tif_dir.c, tif_dirread.c, tif_dirwrite.c: implement various clampings
11250 of double to other data types to avoid undefined behaviour if the output range
11251 isn't big enough to hold the input value.
11252 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2643
11253 http://bugzilla.maptools.org/show_bug.cgi?id=2642
11254 http://bugzilla.maptools.org/show_bug.cgi?id=2646
11255 http://bugzilla.maptools.org/show_bug.cgi?id=2647
11256
11257 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11258
11259 * libtiff/tif_dirread.c: avoid division by floating point 0 in
11260 TIFFReadDirEntryCheckedRational() and TIFFReadDirEntryCheckedSrational(),
11261 and return 0 in that case (instead of infinity as before presumably)
11262 Apparently some sanitizers do not like those divisions by zero.
11263 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2644
11264
11265 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11266
11267 * libtiff/tif_dirwrite.c: in TIFFWriteDirectoryTagCheckedRational, replace
11268 assertion by runtime check to error out if passed value is strictly
11269 negative.
11270 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2535
11271
11272 * tools/tiffcrop.c: remove extraneous TIFFClose() in error code path, that
11273 caused double free.
11274 Related to http://bugzilla.maptools.org/show_bug.cgi?id=2535
11275
11276 2017-01-11 Even Rouault <even.rouault at spatialys.com>
11277
11278 * libtiff/tif_jpeg.c: avoid integer division by zero in
11279 JPEGSetupEncode() when horizontal or vertical sampling is set to 0.
11280 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2653
11281
11282 2017-01-03 Even Rouault <even.rouault at spatialys.com>
11283
11284 * libtiff/tif_jpeg.c: increase libjpeg max memory usable to
11285 10 MB instead of libjpeg 1MB default. This helps when creating files
11286 with "big" tile, without using libjpeg temporary files.
11287 Related to https://trac.osgeo.org/gdal/ticket/6757
11288
11289 2016-12-20 Even Rouault <even.rouault at spatialys.com>
11290
11291 * tools/tiff2pdf.c: avoid potential heap-based overflow in
11292 t2p_readwrite_pdf_image_tile().
11293 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2640
11294
11295 2016-12-20 Even Rouault <even.rouault at spatialys.com>
11296
11297 * tools/tiff2pdf.c: avoid potential invalid memory read in
11298 t2p_writeproc.
11299 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2639
11300
11301 2016-12-20 Even Rouault <even.rouault at spatialys.com>
11302
11303 * tools/tiff2pdf.c: fix wrong usage of memcpy() that can trigger
11304 unspecified behaviour.
11305 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2638
11306
11307 2016-12-18 Even Rouault <even.rouault at spatialys.com>
11308
11309 * libtiff/tif_getimage.c: fix potential memory leaks in error code
11310 path of TIFFRGBAImageBegin().
11311 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2627
11312
11313 2016-12-18 Even Rouault <even.rouault at spatialys.com>
11314
11315 * tools/tiff2pdf.c: prevent heap-based buffer overflow in -j mode
11316 on a paletted image. Note: this fix errors out before the overflow
11317 happens. There could probably be a better fix.
11318 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2635
11319
11320 2016-12-17 Even Rouault <even.rouault at spatialys.com>
11321
11322 * libtiff/tiffio.h, libtiff/tif_getimage.c: add TIFFReadRGBAStripExt()
11323 and TIFFReadRGBATileExt() variants of the functions without ext, with
11324 an extra argument to control the stop_on_error behaviour.
11325
11326 2016-12-17 Even Rouault <even.rouault at spatialys.com>
11327
11328 * tools/tiff2ps.c: fix 2 heap-based buffer overflows (in PSDataBW
11329 and PSDataColorContig). Reported by Agostino Sarubbo.
11330 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2633 and
11331 http://bugzilla.maptools.org/show_bug.cgi?id=2634.
11332
11333 2016-12-13 Even Rouault <even.rouault at spatialys.com>
11334
11335 * libtiff/tif_fax3.h: revert change done on 2016-01-09 that made
11336 Param member of TIFFFaxTabEnt structure a uint16 to reduce size of
11337 the binary. It happens that the Hylafax software uses the tables that
11338 follow this typedef (TIFFFaxMainTable, TIFFFaxWhiteTable,
11339 TIFFFaxBlackTable), although they are not in a public libtiff header.
11340 Raised by Lee Howard.
11341 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2636
11342
11343 2016-12-04 Even Rouault <even.rouault at spatialys.com>
11344
11345 * html/man/Makefile.am: remove thumbnail.1.html and rgb2ycbcr.1.html
11346 from installed pages since the corresponding utilities are no longer
11347 installed. Reported by Havard Eidnes
11348 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2606
11349
11350 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11351
11352 * libtiff/tif_write.c: fix misleading indentation as warned by GCC.
11353
11354 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11355
11356 * tools/tiffcp.c: replace assert( (bps % 8) == 0 ) by a non assert check.
11357 Reported by Agostino Sarubbo.
11358 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2605
11359
11360 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11361
11362 * tools/tiffcp.c: fix uint32 underflow/overflow that can cause heap-based
11363 buffer overflow.
11364 Reported by Agostino Sarubbo.
11365 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2610
11366
11367 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11368
11369 * tools/tiffcp.c: avoid potential division by zero is BitsPerSamples tag is
11370 missing.
11371 Reported by Agostino Sarubbo.
11372 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2607
11373
11374 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11375
11376 * man/Makefile.am: remove thumbnail.1 and rgb2ycbcr.1 from installed man
11377 pages since the corresponding utilities are no longer installed.
11378 Reported by Havard Eidnes
11379 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2606
11380
11381 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11382
11383 * tools/tif_dir.c: when TIFFGetField(, TIFFTAG_NUMBEROFINKS, ) is called,
11384 limit the return number of inks to SamplesPerPixel, so that code that parses
11385 ink names doesn't go past the end of the buffer.
11386 Reported by Agostino Sarubbo.
11387 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2599
11388
11389 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11390
11391 * tools/tiffcp.c: avoid potential division by zero is BitsPerSamples tag is
11392 missing.
11393 Reported by Agostino Sarubbo.
11394 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2597
11395
11396 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11397
11398 * tools/tiffinfo.c: fix null pointer dereference in -r mode when the image has
11399 no StripByteCount tag.
11400 Reported by Agostino Sarubbo.
11401 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2594
11402
11403 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11404
11405 * tools/tiffcrop.c: fix integer division by zero when BitsPerSample is missing.
11406 Reported by Agostino Sarubbo.
11407 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2619
11408
11409 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11410
11411 * tools/tiffcrop.c: add 3 extra bytes at end of strip buffer in
11412 readSeparateStripsIntoBuffer() to avoid read outside of heap allocated buffer.
11413 Reported by Agostino Sarubbo.
11414 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2621
11415
11416 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11417
11418 * tools/tiffcrop.c: fix readContigStripsIntoBuffer() in -i (ignore) mode so
11419 that the output buffer is correctly incremented to avoid write outside bounds.
11420 Reported by Agostino Sarubbo.
11421 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2620
11422
11423 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11424
11425 * libtiff/tif_ojpeg.c: make OJPEGDecode() early exit in case of failure in
11426 OJPEGPreDecode(). This will avoid a divide by zero, and potential other issues.
11427 Reported by Agostino Sarubbo.
11428 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2611
11429
11430 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11431
11432 * libtiff/tif_dirread.c: modify ChopUpSingleUncompressedStrip() to
11433 instantiate compute nstrips as TIFFhowmany_32(td->td_imagelength, rowsperstrip),
11434 instead of a logic based on the total size of data. Which is faulty is
11435 the total size of data is not sufficient to fill the whole image, and thus
11436 results in reading outside of the StripByCounts/StripOffsets arrays when
11437 using TIFFReadScanline().
11438 Reported by Agostino Sarubbo.
11439 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2608.
11440
11441 * libtiff/tif_strip.c: revert the change in TIFFNumberOfStrips() done
11442 for http://bugzilla.maptools.org/show_bug.cgi?id=2587 / CVE-2016-9273 since
11443 the above change is a better fix that makes it unnecessary.
11444
11445 2016-12-03 Even Rouault <even.rouault at spatialys.com>
11446
11447 * libtiff/tif_pixarlog.c, libtiff/tif_luv.c: fix heap-based buffer
11448 overflow on generation of PixarLog / LUV compressed files, with
11449 ColorMap, TransferFunction attached and nasty plays with bitspersample.
11450 The fix for LUV has not been tested, but suffers from the same kind
11451 of issue of PixarLog.
11452 Reported by Agostino Sarubbo.
11453 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2604
11454
11455 2016-12-02 Even Rouault <even.rouault at spatialys.com>
11456
11457 * tools/tiffcp.c: avoid uint32 underflow in cpDecodedStrips that
11458 can cause various issues, such as buffer overflows in the library.
11459 Reported by Agostino Sarubbo.
11460 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2598
11461
11462 2016-12-02 Even Rouault <even.rouault at spatialys.com>
11463
11464 * libtiff/tif_read.c, libtiff/tiffiop.h: fix uint32 overflow in
11465 TIFFReadEncodedStrip() that caused an integer division by zero.
11466 Reported by Agostino Sarubbo.
11467 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2596
11468
11469 2016-11-20 Even Rouault <even.rouault at spatialys.com>
11470
11471 * libtiff/tif_getimage.c, libtiff/tif_open.c: add parenthesis to
11472 fix cppcheck clarifyCalculation warnings
11473 * libtiff/tif_predict.c, libtiff/tif_print.c: fix printf unsigned
11474 vs signed formatting (cppcheck invalidPrintfArgType_uint warnings)
11475
11476 2016-11-20 Bob Friesenhahn <[email protected]>
11477
11478 * tools/fax2tiff.c (main): Applied patch by Jörg Ahrens to fix
11479 passing client data for Win32 builds using tif_win32.c
11480 (USE_WIN32_FILEIO defined) for file I/O. Patch was provided via
11481 email on November 20, 2016.
11482
11483 2016-11-19 Bob Friesenhahn <[email protected]>
11484
11485 * libtiff 4.0.7 released.
11486
11487 * configure.ac: Update for 4.0.7 release.
11488
11489 * tools/tiffdump.c (ReadDirectory): Remove uint32 cast to
11490 _TIFFmalloc() argument which resulted in Coverity report. Added
11491 more multiplication overflow checks.
11492
11493 2016-11-18 Even Rouault <even.rouault at spatialys.com>
11494
11495 * tools/tiffcrop.c: Fix memory leak in (recent) error code path.
11496 Fixes Coverity 1394415.
11497
11498 2016-11-17 Bob Friesenhahn <[email protected]>
11499
11500 * libtiff/tif_getimage.c: Fix some benign warnings which appear in
11501 64-bit compilation under Microsoft Visual Studio of the form
11502 "Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit
11503 value. Results might not be an expected value.". Problem was
11504 reported on November 16, 2016 on the tiff mailing list.
11505
11506 2016-11-16 Even Rouault <even.rouault at spatialys.com>
11507
11508 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), do not dereference
11509 NULL pointer when values of tags with TIFF_SETGET_C16_ASCII / TIFF_SETGET_C32_ASCII
11510 access are 0-byte arrays.
11511 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2593 (regression introduced
11512 by previous fix done on 2016-11-11 for CVE-2016-9297).
11513 Reported by Henri Salo. Assigned as CVE-2016-9448
11514
11515 2016-11-12 Bob Friesenhahn <[email protected]>
11516
11517 * tools/tiffinfo.c (TIFFReadContigTileData): Fix signed/unsigned
11518 comparison warning.
11519 (TIFFReadSeparateTileData): Fix signed/unsigned comparison
11520 warning.
11521
11522 * tools/tiffcrop.c (readContigTilesIntoBuffer): Fix
11523 signed/unsigned comparison warning.
11524
11525 * html/v4.0.7.html: Add a file to document the pending 4.0.7
11526 release.
11527
11528 2016-11-11 Even Rouault <even.rouault at spatialys.com>
11529
11530 * tools/tiff2pdf.c: avoid undefined behaviour related to overlapping
11531 of source and destination buffer in memcpy() call in
11532 t2p_sample_rgbaa_to_rgb()
11533 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2577
11534
11535 2016-11-11 Even Rouault <even.rouault at spatialys.com>
11536
11537 * tools/tiff2pdf.c: fix potential integer overflows on 32 bit builds
11538 in t2p_read_tiff_size()
11539 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2576
11540
11541 2016-11-11 Even Rouault <even.rouault at spatialys.com>
11542
11543 * libtiff/tif_aux.c: fix crash in TIFFVGetFieldDefaulted()
11544 when requesting Predictor tag and that the zip/lzw codec is not
11545 configured.
11546 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2591
11547
11548 2016-11-11 Even Rouault <even.rouault at spatialys.com>
11549
11550 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make sure that
11551 values of tags with TIFF_SETGET_C16_ASCII / TIFF_SETGET_C32_ASCII
11552 access are null terminated, to avoid potential read outside buffer
11553 in _TIFFPrintField().
11554 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2590 (CVE-2016-9297)
11555
11556 2016-11-11 Even Rouault <even.rouault at spatialys.com>
11557
11558 * libtiff/tif_dirread.c: reject images with OJPEG compression that
11559 have no TileOffsets/StripOffsets tag, when OJPEG compression is
11560 disabled. Prevent null pointer dereference in TIFFReadRawStrip1()
11561 and other functions that expect td_stripbytecount to be non NULL.
11562 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2585
11563
11564 2016-11-11 Even Rouault <even.rouault at spatialys.com>
11565
11566 * tools/tiffcrop.c: fix multiple uint32 overflows in
11567 writeBufferToSeparateStrips(), writeBufferToContigTiles() and
11568 writeBufferToSeparateTiles() that could cause heap buffer overflows.
11569 Reported by Henri Salo from Nixu Corporation.
11570 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2592 (CVE-2016-9532)
11571
11572 2016-11-10 Even Rouault <even.rouault at spatialys.com>
11573
11574 * libtiff/tif_strip.c: make TIFFNumberOfStrips() return the td->td_nstrips
11575 value when it is non-zero, instead of recomputing it. This is needed in
11576 TIFF_STRIPCHOP mode where td_nstrips is modified. Fixes a read outsize of
11577 array in tiffsplit (or other utilities using TIFFNumberOfStrips()).
11578 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2587 (CVE-2016-9273)
11579
11580 2016-11-04 Even Rouault <even.rouault at spatialys.com>
11581
11582 * libtiff/tif_predic.c: fix memory leaks in error code paths added in
11583 previous commit (fix for MSVR 35105)
11584
11585 2016-10-31 Even Rouault <even.rouault at spatialys.com>
11586
11587 * libtiff/tif_predict.h, libtiff/tif_predict.c:
11588 Replace assertions by runtime checks to avoid assertions in debug mode,
11589 or buffer overflows in release mode. Can happen when dealing with
11590 unusual tile size like YCbCr with subsampling. Reported as MSVR 35105
11591 by Axel Souchet & Vishal Chauhan from the MSRC Vulnerabilities & Mitigations
11592 team.
11593
11594 2016-10-26 Even Rouault <even.rouault at spatialys.com>
11595
11596 * tools/fax2tiff.c: fix segfault when specifying -r without
11597 argument. Patch by Yuriy M. Kaminskiy.
11598 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2572
11599
11600 2016-10-25 Even Rouault <even.rouault at spatialys.com>
11601
11602 * libtiff/tif_dir.c: discard values of SMinSampleValue and
11603 SMaxSampleValue when they have been read and the value of
11604 SamplesPerPixel is changed afterwards (like when reading a
11605 OJPEG compressed image with a missing SamplesPerPixel tag,
11606 and whose photometric is RGB or YCbCr, forcing SamplesPerPixel
11607 being 3). Otherwise when rewriting the directory (for example
11608 with tiffset, we will expect 3 values whereas the array had been
11609 allocated with just one), thus causing a out of bound read access.
11610 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2500
11611 (CVE-2014-8127, duplicate: CVE-2016-3658)
11612
11613 * libtiff/tif_dirwrite.c: avoid null pointer dereference on td_stripoffset
11614 when writing directory, if FIELD_STRIPOFFSETS was artificially set
11615 for a hack case in OJPEG case.
11616 Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2500
11617 (CVE-2014-8127, duplicate: CVE-2016-3658)
11618
11619 2016-10-25 Even Rouault <even.rouault at spatialys.com>
11620
11621 * tools/tiffinfo.c: fix out-of-bound read on some tiled images.
11622 (http://bugzilla.maptools.org/show_bug.cgi?id=2517)
11623
11624 * libtiff/tif_compress.c: make TIFFNoDecode() return 0 to indicate an
11625 error and make upper level read routines treat it accordingly.
11626 (linked to the test case of http://bugzilla.maptools.org/show_bug.cgi?id=2517)
11627
11628 2016-10-14 Even Rouault <even.rouault at spatialys.com>
11629
11630 * tools/tiffcrop.c: fix out-of-bound read of up to 3 bytes in
11631 readContigTilesIntoBuffer(). Reported as MSVR 35092 by Axel Souchet
11632 & Vishal Chauhan from the MSRC Vulnerabilities & Mitigations team.
11633
11634 2016-10-09 Even Rouault <even.rouault at spatialys.com>
11635
11636 * tools/tiff2pdf.c: fix write buffer overflow of 2 bytes on JPEG
11637 compressed images. Reported by Tyler Bohan of Cisco Talos as
11638 TALOS-CAN-0187 / CVE-2016-5652.
11639 Also prevents writing 2 extra uninitialized bytes to the file stream.
11640
11641 2016-10-08 Even Rouault <even.rouault at spatialys.com>
11642
11643 * tools/tiffcp.c: fix out-of-bounds write on tiled images with odd
11644 tile width vs image width. Reported as MSVR 35103
11645 by Axel Souchet and Vishal Chauhan from the MSRC Vulnerabilities &
11646 Mitigations team.
11647
11648 2016-10-08 Even Rouault <even.rouault at spatialys.com>
11649
11650 * tools/tiff2pdf.c: fix read -largely- outsize of buffer in
11651 t2p_readwrite_pdf_image_tile(), causing crash, when reading a
11652 JPEG compressed image with TIFFTAG_JPEGTABLES length being one.
11653 Reported as MSVR 35101 by Axel Souchet and Vishal Chauhan from
11654 the MSRC Vulnerabilities & Mitigations team. CVE-2016-9453
11655
11656 2016-10-08 Even Rouault <even.rouault at spatialys.com>
11657
11658 * tools/tiffcp.c: fix read of undefined variable in case of missing
11659 required tags. Found on test case of MSVR 35100.
11660 * tools/tiffcrop.c: fix read of undefined buffer in
11661 readContigStripsIntoBuffer() due to uint16 overflow. Probably not a
11662 security issue but I can be wrong. Reported as MSVR 35100 by Axel
11663 Souchet from the MSRC Vulnerabilities & Mitigations team.
11664
11665 2016-09-25 Bob Friesenhahn <[email protected]>
11666
11667 * html: Change as many remotesensing.org broken links to a working
11668 URL as possible.
11669
11670 2016-09-24 Bob Friesenhahn <[email protected]>
11671
11672 * libtiff/tif_getimage.c (TIFFRGBAImageOK): Reject attempts to
11673 read floating point images.
11674
11675 * libtiff/tif_predict.c (PredictorSetup): Enforce bits-per-sample
11676 requirements of floating point predictor (3). Fixes CVE-2016-3622
11677 "Divide By Zero in the tiff2rgba tool."
11678
11679 2016-09-23 Even Rouault <even.rouault at spatialys.com>
11680
11681 * tools/tiffcrop.c: fix various out-of-bounds write vulnerabilities
11682 in heap or stack allocated buffers. Reported as MSVR 35093,
11683 MSVR 35096 and MSVR 35097. Discovered by Axel Souchet and Vishal
11684 Chauhan from the MSRC Vulnerabilities & Mitigations team.
11685 * tools/tiff2pdf.c: fix out-of-bounds write vulnerabilities in
11686 heap allocate buffer in t2p_process_jpeg_strip(). Reported as MSVR
11687 35098. Discovered by Axel Souchet and Vishal Chauhan from the MSRC
11688 Vulnerabilities & Mitigations team.
11689 * libtiff/tif_pixarlog.c: fix out-of-bounds write vulnerabilities
11690 in heap allocated buffers. Reported as MSVR 35094. Discovered by
11691 Axel Souchet and Vishal Chauhan from the MSRC Vulnerabilities &
11692 Mitigations team.
11693 * libtiff/tif_write.c: fix issue in error code path of TIFFFlushData1()
11694 that didn't reset the tif_rawcc and tif_rawcp members. I'm not
11695 completely sure if that could happen in practice outside of the odd
11696 behaviour of t2p_seekproc() of tiff2pdf). The report points that a
11697 better fix could be to check the return value of TIFFFlushData1() in
11698 places where it isn't done currently, but it seems this patch is enough.
11699 Reported as MSVR 35095. Discovered by Axel Souchet & Vishal Chauhan &
11700 Suha Can from the MSRC Vulnerabilities & Mitigations team.
11701
11702 2016-09-20 Bob Friesenhahn <[email protected]>
11703
11704 * html/man/index.html: Comment out links to documentation for
11705 abandoned utilities.
11706
11707 2016-09-17 Even Rouault <even.rouault at spatialys.com>
11708
11709 * libtiff/tif_lzma.c: typo fix in comment
11710
11711 2016-09-04 Even Rouault <even.rouault at spatialys.com>
11712
11713 * libtiff/*.c: fix warnings raised by clang 3.9 -Wcomma
11714
11715 2016-09-03 Even Rouault <even.rouault at spatialys.com>
11716
11717 * libtiff/tif_dirwrite.c, libtiff/tif_color.c: fix warnings raised
11718 by GCC 5 / clang -Wfloat-conversion
11719
11720 2016-08-16 Even Rouault <even.rouault at spatialys.com>
11721
11722 * tools/tiffcrop.c: fix C99'ism.
11723
11724 2016-08-15 Even Rouault <even.rouault at spatialys.com>
11725
11726 * tools/tiff2bw.c: fix weight computation that could result of color
11727 value overflow (no security implication). Fix bugzilla #2550.
11728 Patch by Frank Freudenberg.
11729
11730 2016-08-15 Even Rouault <even.rouault at spatialys.com>
11731
11732 * tools/rgb2ycbcr.c: validate values of -v and -h parameters to
11733 avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569)
11734
11735 2016-08-15 Even Rouault <even.rouault at spatialys.com>
11736
11737 * tools/tiffcrop.c: Fix out-of-bounds write in loadImage().
11738 From patch libtiff-CVE-2016-3991.patch from
11739 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543)
11740
11741 2016-08-15 Even Rouault <even.rouault at spatialys.com>
11742
11743 * libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode
11744 if more input samples are provided than expected by PixarLogSetupEncode.
11745 Idea based on libtiff-CVE-2016-3990.patch from
11746 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and
11747 simpler check. (bugzilla #2544)
11748
11749 2016-08-15 Even Rouault <even.rouault at spatialys.com>
11750
11751 * tools/tiff2rgba.c: Fix integer overflow in size of allocated
11752 buffer, when -b mode is enabled, that could result in out-of-bounds
11753 write. Based initially on patch tiff-CVE-2016-3945.patch from
11754 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for
11755 invalid tests that rejected valid files. (bugzilla #2545)
11756
11757 2016-07-11 Even Rouault <even.rouault at spatialys.com>
11758
11759 * tools/tiffcrop.c: Avoid access outside of stack allocated array
11760 on a tiled separate TIFF with more than 8 samples per pixel.
11761 Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360
11762 (CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559)
11763
11764 2016-07-10 Even Rouault <even.rouault at spatialys.com>
11765
11766 * libtiff/tif_read.c: Fix out-of-bounds read on
11767 memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1()
11768 when stripoffset is beyond tmsize_t max value (reported by
11769 Mathias Svensson)
11770
11771 2016-07-10 Even Rouault <even.rouault at spatialys.com>
11772
11773 * tools/tiffdump.c: fix a few misaligned 64-bit reads warned
11774 by -fsanitize
11775
11776 2016-07-03 Even Rouault <even.rouault at spatialys.com>
11777
11778 * libtiff/tif_read.c: make TIFFReadEncodedStrip() and
11779 TIFFReadEncodedTile() directly use user provided buffer when
11780 no compression (and other conditions) to save a memcpy().
11781
11782 * libtiff/tif_write.c: make TIFFWriteEncodedStrip() and
11783 TIFFWriteEncodedTile() directly use user provided buffer when
11784 no compression to save a memcpy().
11785
11786 2016-07-01 Even Rouault <even.rouault at spatialys.com>
11787
11788 * libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and
11789 PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid
11790 potential invalid memory write on corrupted/unexpected images when
11791 using the TIFFRGBAImageBegin() interface (reported by
11792 Clay Wood)
11793
11794 2016-06-28 Even Rouault <even.rouault at spatialys.com>
11795
11796 * libtiff/tif_pixarlog.c: fix potential buffer write overrun in
11797 PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson)
11798 (CVE-2016-5875)
11799
11800 2016-06-15 Bob Friesenhahn <[email protected]>
11801
11802 * libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64
11803 to libtiff.def
11804
11805 2016-06-05 Bob Friesenhahn <[email protected]>
11806
11807 * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,
11808 ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from
11809 the distribution. The libtiff tools rgb2ycbcr and thumbnail are
11810 only built in the build tree for testing. Old files are put in
11811 new 'archive' subdirectory of the source repository, but not in
11812 distribution archives. These changes are made in order to lessen
11813 the maintenance burden.
11814
11815 2016-05-10 Bob Friesenhahn <[email protected]>
11816
11817 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the
11818 HAVE_SNPRINTF definition.'
11819
11820 2016-05-09 Bob Friesenhahn <[email protected]>
11821
11822 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward
11823 Lam to define HAVE_SNPRINTF for Visual Studio 2015.
11824
11825 2016-04-27 Even Rouault <even.rouault at spatialys.com>
11826
11827 * libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD,
11828 fix regression, introduced on 2014-12-23, when reading a one-strip
11829 file without a StripByteCounts tag. GDAL #6490
11830
11831 2016-04-07 Bob Friesenhahn <[email protected]>
11832
11833 * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
11834 purposes of security issue reporting.
11835
11836 2016-01-23 Even Rouault <even.rouault at spatialys.com>
11837
11838 * libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr)
11839 coming from GDAL internal libtiff
11840
11841 2016-01-09 Even Rouault <even.rouault at spatialys.com>
11842
11843 * libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure
11844 a uint16 to reduce size of the binary.
11845
11846 2016-01-03 Even Rouault <even.rouault at spatialys.com>
11847
11848 * libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised
11849 by GCC 6 -Wmisleading-indentation
11850
11851 2015-12-27 Even Rouault <even.rouault at spatialys.com>
11852
11853 * libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL
11854 string to %s formatter, which is undefined behaviour in sprintf().
11855
11856 2015-12-27 Even Rouault <even.rouault at spatialys.com>
11857
11858 * libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode()
11859 triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif
11860 (bugzilla #2508)
11861
11862 2015-12-27 Even Rouault <even.rouault at spatialys.com>
11863
11864 * libtiff/tif_luv.c: fix potential out-of-bound writes in decode
11865 functions in non debug builds by replacing assert()s by regular if
11866 checks (bugzilla #2522).
11867 Fix potential out-of-bound reads in case of short input data.
11868
11869 2015-12-26 Even Rouault <even.rouault at spatialys.com>
11870
11871 * libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage
11872 interface in case of unsupported values of SamplesPerPixel/ExtraSamples
11873 for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in
11874 TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and
11875 CVE-2015-8683 reported by zzf of Alibaba.
11876
11877 2015-12-21 Even Rouault <even.rouault at spatialys.com>
11878
11879 * libtiff/tif_dirread.c: workaround false positive warning of Clang Static
11880 Analyzer about null pointer dereference in TIFFCheckDirOffset().
11881
11882 2015-12-19 Even Rouault <even.rouault at spatialys.com>
11883
11884 * libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found
11885 by Clang Static Analyzer
11886
11887 2015-12-18 Even Rouault <even.rouault at spatialys.com>
11888
11889 * libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in
11890 TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory
11891 offsets on a even offset (affects BigTIFF). This was a regression of the
11892 changeset of 2015-10-19.
11893
11894 2015-12-12 Even Rouault <even.rouault at spatialys.com>
11895
11896 * libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile()
11897 should return -1 in case of failure of tif_encodestrip() as documented
11898 * libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of
11899 failure so that the above mentioned functions detect the error.
11900
11901 2015-12-06 Even Rouault <even.rouault at spatialys.com>
11902
11903 * libtiff/uvcode.h: const'ify uv_code array
11904
11905 2015-12-06 Even Rouault <even.rouault at spatialys.com>
11906
11907 * libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields,
11908 tiffFieldArray and exifFieldArray arrays
11909
11910 2015-12-06 Even Rouault <even.rouault at spatialys.com>
11911
11912 * libtiff/tif_print.c: constify photoNames and orientNames arrays
11913
11914 2015-12-06 Even Rouault <even.rouault at spatialys.com>
11915
11916 * libtiff/tif_close.c, libtiff/tif_extension.c : rename link
11917 variable to avoid -Wshadow warnings
11918
11919 2015-11-22 Even Rouault <even.rouault at spatialys.com>
11920
11921 * libtiff/*.c: fix typos in comments (patch by Kurt Schwehr)
11922
11923 2015-11-22 Even Rouault <even.rouault at spatialys.com>
11924
11925 * libtiff/*.c: fix MSVC warnings related to cast shortening and
11926 assignment within conditional expression
11927
11928 2015-11-18 Even Rouault <even.rouault at spatialys.com>
11929
11930 * libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
11931
11932 2015-11-18 Even Rouault <even.rouault at spatialys.com>
11933
11934 * libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
11935 to please MSVC 2013
11936
11937 2015-11-17 Even Rouault <even.rouault at spatialys.com>
11938
11939 * libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
11940 if BitsPerPixel > 24, so as to avoid huge memory allocation and file
11941 read attempts
11942
11943 2015-11-02 Even Rouault <even.rouault at spatialys.com>
11944
11945 * libtiff/tif_dirread.c: remove duplicated assignment (reported by
11946 Clang static analyzer)
11947
11948 2015-10-28 Even Rouault <even.rouault at spatialys.com>
11949
11950 * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
11951 libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
11952 declaration/prototype'
11953
11954 2015-10-19 Even Rouault <even.rouault at spatialys.com>
11955
11956 * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
11957 'warning: negative integer implicitly converted to unsigned type' warning
11958 (part of -Wconversion)
11959
11960 2015-10-17 Even Rouault <even.rouault at spatialys.com>
11961
11962 * libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
11963 libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
11964
11965 2015-09-12 Bob Friesenhahn <[email protected]>
11966
11967 * libtiff 4.0.6 released.
11968
11969 * html/v4.0.6.html: Added release notes for 4.0.6.
11970
11971 2015-09-06 Bob Friesenhahn <[email protected]>
11972
11973 * tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
11974 X. Patch by Roger Leigh.
11975
11976 * Makefile.am: Added a 'coverity' rule to assist with Coverity
11977 submissions.
11978
11979 * tools/tiff2pdf.c: Fix compiler warning about unused function
11980 when JPEG is not available.
11981
11982 * tools/fax2ps.c (main): Detect failure to write to temporary
11983 file.
11984
11985 2015-09-05 Bob Friesenhahn <[email protected]>
11986
11987 * libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
11988 Change implementation so that it does not sometimes overflow the
11989 range of a 32-bit int and to avoid a signed vs unsigned compare
11990 compiler warning.
11991 (TIFF_INT64_MAX): Avoid use of platform-specific large constants.
11992 (TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
11993
11994 2015-09-01 Bob Friesenhahn <[email protected]>
11995
11996 * Makefile.am (distcheck-hook), configure.ac: Applied patches by
11997 Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
11998 with BSD make and to make use of cmake in 'distcheck' target
11999 conditional on if cmake is available.
12000
12001 * CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
12002 Roger Leigh (via tiff mailing list on 2015-09-01).
12003
12004 CMake build is now included in 'distcheck' target.
12005
12006 Builds with CMake 2.8.9 and newer.
12007
12008 Tar is now requested to use POSIX PAX format.
12009
12010 2015-08-31 Bob Friesenhahn <[email protected]>
12011
12012 * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
12013 Roger Leigh (via tiff mailing list on 2015-08-31.
12014
12015 CMake reads all version information directly from configure.ac to
12016 avoid duplication of values. This basically greps over the file
12017 for the LIBTIFF_* variables, then translates them to the form
12018 needed for cmake. This includes the release version and libtool
12019 shared library version information.
12020
12021 Make shared/static library building configurable. Currently it
12022 always builds shared libraries, with static libs having a _static
12023 suffix (copying zlib, but it means it's got a non-standard name).
12024 CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
12025 other, which is now used instead. There's now a single "tiff"
12026 target to build either shared or static as required, and all the
12027 tests and tools are linked with this. Note: the Windows tests fail
12028 when linked with a static libtiff (says: libtiff.dll not found).
12029 Not really a regression since this was not tested up to this
12030 point, and it's likely the unit tests haven't (ever?) been run on
12031 Windows with a static libtiff, so there's some additional
12032 portability issue here to address. Works fine on UNIX systems,
12033 and fine on Windows with the default to build a DLL.
12034
12035 Add a missing file which wasn't being distributed, causing unit
12036 tests to fail. Note that "find . -name '*.cmake'" lists all the
12037 CMake files which need distributing in addition to all the
12038 CMakeLists.txt files (which now are distributed).
12039
12040 2015-08-31 Even Rouault <even.rouault at spatialys.com>
12041
12042 * libtiff/tif_predict.c: pedantic change to add explicit masking
12043 with 0xff before casting to uchar in floating-point horizontal
12044 differencing and accumulation routines.
12045
12046 2015-08-31 Even Rouault <even.rouault at spatialys.com>
12047
12048 * libtiff/tif_predict.c: fix generation of output with 16 bit
12049 or 32 bit integer, when byte swapping is needed, in
12050 horizontal predictor (#2521). Also fixes decoding when there is
12051 a single pixel to code (unlikely case...) and byte swapping is
12052 involved.
12053
12054 2015-08-30 Even Rouault <even.rouault at spatialys.com>
12055
12056 * libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
12057 undefined behaviour with shifts (gcc -fsanitize=shift)
12058
12059 2015-08-30 Even Rouault <even.rouault at spatialys.com>
12060
12061 * libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
12062 add explicit masking with 0xff before casting
12063 to unsigned char (make icc -check=conversions happy)
12064
12065 * libtiff/tif_predict.c: operate on unsigned datatypes when
12066 computing/applying differences to avoid undefined behaviour of
12067 signed types (C standard compliance)
12068
12069 2015-08-30 Bob Friesenhahn <[email protected]>
12070
12071 * configure.ac: libtiff 4.0.5 released.
12072
12073 2015-08-29 Bob Friesenhahn <[email protected]>
12074
12075 * CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
12076 list on 2015-08-29) to add ld-version-script option to cmake build
12077 to match autoconf. Note: defaults to 'on' to be ABI-compatible by
12078 default with common Linux distribution builds. Note that the
12079 autoconf configure script defaults to 'off'.
12080
12081 * html/build.html: Applied patch by Roger Leigh (via tiff mailing
12082 list on 2015-08-29) to describe how to use CMake to build libtiff.
12083
12084 2015-08-28 Bob Friesenhahn <[email protected]>
12085
12086 * html/v4.0.5.html: Added HTML file describing the changes which
12087 will appear in the 4.0.5 release.
12088
12089 2015-08-23 Bob Friesenhahn <[email protected]>
12090
12091 * libtiff/tiffiop.h: For MinGW compiles, make sure that build
12092 supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
12093 Otherwise large files can not be supported for POSIX-style I/O.
12094
12095 * tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
12096 builds about cast to thandle_t.
12097
12098 * test/rewrite_tag.c (main): Does not require any arguments.
12099
12100 2015-08-20 Bob Friesenhahn <[email protected]>
12101
12102 * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
12103 fix build issues when using Cmake due to Windows large file
12104 changes.
12105
12106 2015-08-18 Bob Friesenhahn <[email protected]>
12107
12108 * libtiff/tiffiop.h: First cut at supporting large files under
12109 Microsoft Windows using tif_unix.c and the libtiff tools. This
12110 only works if the Windows CDK is new enough to support the APIs
12111 used (Visual C++ 2005 or later). Support for large files is not
12112 actually tested yet.
12113
12114 2015-08-15 Bob Friesenhahn <[email protected]>
12115
12116 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
12117 client_data is initialized to a known value, and to report an
12118 error on two memory allocation failures.
12119
12120 2015-08-13 Bob Friesenhahn <[email protected]>
12121
12122 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
12123 symbol versioning. Patch was mailed to libtiff list on Thu, 13
12124 Aug 2015.
12125
12126 2015-07-04 Bob Friesenhahn <[email protected]>
12127
12128 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3
12129 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
12130 +0100.
12131
12132 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh
12133 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
12134
12135 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by
12136 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
12137
12138 2015-06-24 Bob Friesenhahn <[email protected]>
12139
12140 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
12141 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
12142 corrections to ensure that the autotools build still works were
12143 added by me. I have not yet tested the build using 'cmake' or
12144 MSVC with 'nmake'.
12145
12146 2015-06-21 Bob Friesenhahn <[email protected]>
12147
12148 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
12149 library so only execute if JPEG is available.
12150
12151 * libtiff 4.0.4 released.
12152
12153 * configure.ac: Add a HAVE_FOO Automake conditional for each
12154 add-on library.
12155
12156 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
12157 requires JPEG support to compile. Use Automake conditional to
12158 only include it when JPEG support is available.
12159
12160 * html/build.html: Try to improve the nmake-based VC++ build
12161 description.
12162
12163 * libtiff/tiffconf.vc.h: Build fixes based on testing.
12164
12165 * libtiff/tif_config.vc.h: Build fixes based on testing.
12166
12167 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
12168 export for it.
12169
12170 2015-06-20 Bob Friesenhahn <[email protected]>
12171
12172 * libtiff/tif_config.vc.h: Make adjustments to match the new
12173 definitions that configure produces, including for WIN64. Still
12174 needs to be tested.
12175
12176 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
12177 specifier. 64-bit MinGW supports 'long long' but support for
12178 'lld' is not assured by the run-time DLLs and so GCC warns.
12179 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
12180 and printf format specifier to deal with printing values of
12181 'size_t' type. In particular, this was necessary for WIN64.
12182 Added a configure test for if the system headers provide 'optarg'
12183 (normal case) and block out the many explicit 'extern' statements
12184 in the utilities. This was found to be necessary under Windows
12185 when getopt is in a DLL and the symbols are already imported with
12186 dllimport via standard header files.
12187
12188 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
12189 and boolean in MinGW build due to including jpeglib.h.
12190
12191 * test/rewrite_tag.c (main): Fix problem with location of variable
12192 declaration.
12193
12194 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
12195 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
12196 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
12197 TIFFRasterScanline, TIFFSetErrorHandlerExt,
12198 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
12199 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
12200 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
12201 Roger Leigh and justified by use in libtiff tests, documentation,
12202 and changelog notes. Also sorted symbol list and removed
12203 duplicate entries.
12204
12205 2015-06-16 Bob Friesenhahn <[email protected]>
12206
12207 * libtiff/tif_getimage.c: Fix four Coverity issues related to
12208 unintended sign extension.
12209
12210 2015-06-16 Even Rouault <even.rouault at spatialys.com>
12211
12212 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
12213
12214 2015-06-14 Lee Howard <[email protected]>
12215
12216 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on
12217 Bugzilla Bug #2510 fixes several harmless but still annoying
12218 warnings
12219
12220 * configure: contribution from Ludolf Holzheid on Bugzilla
12221 Bug #2498. Adds an option to select the file I/O style on
12222 Windows hosts.
12223
12224 * libtiff/tif_getimage.c: contribution from Gary Cramblitt
12225 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs.
12226
12227 * configure, configure.ac: contribution from Marcos H. Woehrmann
12228 on Bugzilla Bug #2405. Correct shell equality operator.
12229
12230 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
12231 on Bugzilla Bug #2401. Appropriately call glFlush().
12232
12233 * tools/tiff2pdf.c: change ColorTransform from "0" to "1"
12234 following Bugzilla Bug #2150.
12235
12236 2015-06-13 Lee Howard <[email protected]>
12237
12238 * libtiff/tif_lzw.c: contribution from Andy Cave - decode
12239 files that contain consecutive CODE_CLEAR codes.
12240
12241 * tools/tiff2pdf.c: contribution from Antti S. Lankila on
12242 Bugzilla Bug #2078. Suppress initial output of the header.
12243
12244 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
12245 Take care in using the return value from snprintf().
12246
12247 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
12248 correctly copy the compression tag from the source TIFF.
12249
12250 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
12251 correct sizing and scaling problems with output document.
12252
12253 2015-06-10 Bob Friesenhahn <[email protected]>
12254
12255 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
12256 clean implementations in order to avoid pre-processor hell. Only
12257 one of the implementations is used in a given build.
12258
12259 2015-06-08 Even Rouault <even.rouault at spatialys.com>
12260
12261 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
12262 case
12263
12264 2015-06-07 Bob Friesenhahn <[email protected]>
12265
12266 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
12267 "Division or modulo by zero".
12268 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
12269 or modulo by zero".
12270 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
12271 zero".
12272 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
12273 zero".
12274
12275 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
12276 715974 "Division or modulo by zero".
12277
12278 2015-05-31 Bob Friesenhahn <[email protected]>
12279
12280 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
12281 1134470 "Logically dead code" by making the roll-over check
12282 explicit.
12283
12284 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
12285 "Division or modulo by zero".
12286 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
12287 zero".
12288 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
12289 zero".
12290 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
12291 zero".
12292
12293 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
12294 Coverity 298626 "Logically dead code".
12295 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
12296 code".
12297 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
12298 code".
12299 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
12300 code"
12301
12302 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
12303 operator precedenc in evaluation. Might quench Coverity 1134470
12304 "Logically dead code".
12305
12306 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
12307 don't affect result". This change uses ifdefs to include
12308 applicable code based on properties of libjpeg. Still needs to be
12309 re-tested with 12-bit "6b" and "MK1".
12310
12311 2015-05-30 Bob Friesenhahn <[email protected]>
12312
12313 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
12314 "Resource leak".
12315
12316 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
12317 Coverity 601720 "Resource leak".
12318
12319 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
12320 "Dereference before null check".
12321
12322 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
12323 "Missing break in switch".
12324
12325 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
12326 size calculation for overflow.
12327
12328 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
12329 1024226 "Untrusted value as argument".
12330
12331 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
12332 value as argument".
12333 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes
12334 read".
12335 (readextension): Fix Coverity 1024893 "Ignoring number of bytes
12336 read".
12337 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
12338 read".
12339 (readraster): Fix Coverity 1024891 "Ignoring number of bytes
12340 read".
12341 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
12342 read".
12343
12344 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
12345 "Structurally dead code".
12346
12347 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
12348 value from library".
12349 (guessSize): Fix Coverity 1024888 "Unchecked return value from
12350 library".
12351 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
12352 (guessSize): Fix Coverity 1024889 "Unchecked return value from
12353 library".
12354
12355 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
12356 "Resource leak".
12357 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
12358 code".
12359 (t2p_write_pdf): Fix Coverity 1227690 "Unused value".
12360
12361 2015-05-29 Bob Friesenhahn <[email protected]>
12362
12363 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
12364 "Infinite loop".
12365 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
12366 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
12367
12368 2015-05-28 Bob Friesenhahn <[email protected]>
12369
12370 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
12371 Coverity 298615 "Resource leak".
12372 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
12373 extension".
12374
12375 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
12376 as argument".
12377 (main): Fix Coverity 1024678 "Unchecked return value from
12378 library".
12379 (main): Fix Coverity 1024679 "Unchecked return value from
12380 library".
12381 (main): Fix Coverity 1214160 "Ignoring number of bytes read".
12382
12383 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
12384 Coverity 298615 "Resource leak".
12385
12386 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
12387 "Resource leak".
12388
12389 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
12390 leak".
12391 (cpStrips): Fix Coverity 1024305 "Resource leak".
12392
12393 2015-05-27 Bob Friesenhahn <[email protected]>
12394
12395 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe
12396 for 64-bit systems. Add some header validations. Should fix many
12397 Coverity issues.
12398 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)".
12399 (main): Quiet Coverity 1024223 "Untrusted value as argument".
12400
12401 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
12402 level does not match indentation".
12403 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
12404 This was a benign mis-diagnosis but added code to enforce against
12405 buffer overflow.
12406
12407 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
12408 vs. bitwise operator".
12409 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
12410 modulo by zero".
12411 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
12412 code".
12413 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not
12414 match indentation".
12415 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
12416 match indentation".
12417 (loadImage): Fix Coverity 1299741 "Dereference before null check".
12418 (loadImage): Fix Coverity 1299740 "Out-of-bounds write".
12419
12420 2015-03-02 Even Rouault <[email protected]>
12421
12422 * tools/tiffdither.c: check memory allocations to avoid writing to
12423 NULL pointer. Also check multiplication overflow. Fixes #2501,
12424 CVE-2014-8128. Derived from patch by Petr Gajdos.
12425
12426 2015-01-26 Even Rouault <[email protected]>
12427
12428 * add html/v4.0.4beta.html under version control
12429 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
12430
12431 2015-01-26 Even Rouault <[email protected]>
12432
12433 * libtiff 4.0.4beta released
12434
12435 2015-01-26 Even Rouault <[email protected]>
12436
12437 * automake: updated to 1.15
12438 * libtool: updated to 2.4.5
12439
12440 2015-01-22 Even Rouault <[email protected]>
12441
12442 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
12443
12444 2015-01-05 Frank Warmerdam <[email protected]>
12445
12446 * html/bugs.html: remove note about needing to email the tiff mailing
12447 list administrator about being approved for membership, this appears
12448 not to be true.
12449
12450 2015-01-05 Olivier Paquet <[email protected]>
12451
12452 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
12453
12454 2015-01-03 Even Rouault <[email protected]>
12455
12456 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
12457 when reading more than 65535 directories, and effectively error out when
12458 reaching that limit.
12459
12460 2014-12-29 Even Rouault <[email protected]>
12461
12462 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
12463 markers to avoid emitting a warning (even if, according to the TechNote,
12464 there are admittedly unusual/not recommended or even forbidden variants, but
12465 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
12466 SOF9 and SOF10).
12467 Define in_color_space and input_components to the right values in
12468 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
12469 libjpeg API documentation, so as to be compatible with mozjpeg library.
12470 Note: the default settings of mozjpeg will produce progressive scans, which
12471 is forbidden by the TechNote.
12472
12473 2014-12-29 Even Rouault <[email protected]>
12474
12475 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
12476 to avoid buffer leak (fix previous fix, found by Coverity scan)
12477
12478 2014-12-29 Even Rouault <[email protected]>
12479
12480 * libtiff/tif_next.c: add new tests to check that we don't read outside of
12481 the compressed input stream buffer.
12482
12483 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
12484 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
12485 putcontig8bitYCbCr21tile cases.
12486
12487 2014-12-27 Even Rouault <[email protected]>
12488
12489 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
12490 extended tags installed by user code through the extender mechanism before
12491 calling the extender callback (GDAL #5054)
12492
12493 2014-12-26 Bob Friesenhahn <[email protected]>
12494
12495 * tools/tiffcrop.c: Fix warnings about variables set but not used.
12496
12497 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set
12498 but not used.
12499
12500 * tools/tiffgt.c: Fix warnings about unused parameters.
12501
12502 * libtiff/tif_stream.cxx: Fix warnings about unused parameters.
12503
12504 2014-12-25 Even Rouault <[email protected]>
12505
12506 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
12507 various typos found by Debian lintian tool (GDAL #5756)
12508
12509 2014-12-24 Even Rouault <[email protected]>
12510
12511 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
12512 http://bugzilla.maptools.org/show_bug.cgi?id=2235
12513
12514 2014-12-24 Even Rouault <[email protected]>
12515
12516 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
12517 http://bugzilla.maptools.org/show_bug.cgi?id=2445
12518
12519 2014-12-24 Even Rouault <[email protected]>
12520
12521 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
12522 Derived from patch by Petr Gajdos,
12523 http://bugzilla.maptools.org/show_bug.cgi?id=2443
12524
12525 2014-12-23 Even Rouault <[email protected]>
12526
12527 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
12528 of _TIFFFillStriles(). This solves crashing bug on corrupted
12529 images generated by afl.
12530
12531 2014-12-23 Even Rouault <[email protected]>
12532
12533 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
12534 <= 0 by casting it to int64 first. This solves crashing bug on corrupted
12535 images generated by afl.
12536
12537 2014-12-21 Bob Friesenhahn <[email protected]>
12538
12539 * tools/tiffdump.c: Guard against arithmetic overflow when
12540 calculating allocation buffer sizes.
12541
12542 2014-12-21 Even Rouault <[email protected]>
12543
12544 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if
12545 SamplesPerPixel = 3. Enforce that
12546 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
12547
12548 2014-12-21 Even Rouault <[email protected]>
12549
12550 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
12551 copying. The right fix would be to properly copy it, but not worth the burden
12552 for those esoteric utilities.
12553 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
12554
12555 2014-12-21 Even Rouault <[email protected]>
12556
12557 * tools/thumbnail.c: fix out-of-buffer write
12558 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
12559
12560 2014-12-21 Even Rouault <[email protected]>
12561
12562 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
12563 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
12564 COMPRESSION_CCITTFAX4
12565 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
12566
12567 2014-12-21 Even Rouault <[email protected]>
12568
12569 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
12570 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
12571
12572 2014-12-21 Even Rouault <[email protected]>
12573
12574 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading
12575 TIFFTAG_SAMPLESPERPIXEL
12576
12577 2014-12-21 Even Rouault <[email protected]>
12578
12579 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
12580 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
12581 Description: fix for Debian bug #741451
12582 tiffcp crashes when converting JPEG-encoded TIFF to a different
12583 encoding (like none or lzw). For example this will probably fail:
12584 tiffcp -c none jpeg_encoded_file.tif output.tif
12585 The reason is that when the input file contains JPEG data,
12586 the tiffcp code forces conversion to RGB space. However,
12587 the output normally inherits YCbCr subsampling parameters
12588 from the input, which leads to a smaller working buffer
12589 than necessary. The buffer is subsequently overrun inside
12590 cpStripToTile() (called from writeBufferToContigTiles).
12591 Note that the resulting TIFF file would be scrambled even
12592 if tiffcp wouldn't crash, since the output file would contain
12593 RGB data interpreted as subsampled YCbCr values.
12594 This patch fixes the problem by forcing RGB space on the output
12595 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
12596 Author: Tomasz Buchert <[email protected]>
12597
12598 2014-12-21 Even Rouault <[email protected]>
12599
12600 Fix various crash bugs on fuzzed images.
12601 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
12602 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
12603 the directory
12604 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
12605 TransferFunction if BitsPerSample has not yet been read, otherwise reading
12606 it later will cause user code to crash if BitsPerSample > 1
12607 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
12608 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
12609 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
12610 instead of imagewidth to avoid crash
12611 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
12612 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
12613 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
12614 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
12615 * tools/tiffdump.c: fix crash due to overflow of entry count.
12616
12617 2014-12-15 Even Rouault <[email protected]>
12618
12619 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
12620 all tiles/strips to include quantization tables even when the jpegtablesmode
12621 had the JPEGTABLESMODE_QUANT bit set.
12622 Also add explicit removal of Huffman tables when jpegtablesmode has the
12623 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
12624 first tile/strip (only useful in update scenarios. create-only was
12625 fine)
12626
12627 2014-12-09 Bob Friesenhahn <[email protected]>
12628
12629 * tools/tiff2pdf.c: Assure that memory size calculations for
12630 _TIFFmalloc() do not overflow the range of tmsize_t.
12631
12632 2014-12-07 Even Rouault <[email protected]>
12633
12634 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
12635 Valgrind and Address Sanitizer on test suite
12636
12637 2014-12-07 Bob Friesenhahn <[email protected]>
12638
12639 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
12640 tag can return one channel, with the other two channels set to
12641 NULL. The tiff2pdf code was expecting that other two channels
12642 were duplicate pointers in the case where there is only one
12643 channel. Detect this condition in order to avoid a crash, and
12644 presumably perform correctly with just one channel.
12645
12646 2014-12-06 Bob Friesenhahn <[email protected]>
12647
12648 * tools/tiffdump.c: Fix double-free bug.
12649
12650 2014-11-27 Even Rouault <[email protected]>
12651
12652 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
12653 Visual Studio 2015 aka VC 14 aka MSVC 1900
12654
12655 2014-11-20 Even Rouault <[email protected]>
12656
12657 * libtiff/tif_lzw.c: prevent potential null dereference of
12658 sp->dec_codetab in LZWPreDecode (bug #2459)
12659
12660 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
12661 to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
12662
12663 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
12664
12665 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
12666 Coverity happier (not a bug, #2459)
12667
12668 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
12669 (not a bug, #2459)
12670
12671 * tools/tiff2pdf.c: close PDF file (bug #2479)
12672
12673 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
12674
12675 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
12676 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
12677
12678 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option
12679 (bug #2459) and add missing va_end in dump_info (#2459)
12680
12681 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
12682
12683 2014-11-20 Even Rouault <[email protected]>
12684 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
12685 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
12686
12687 2014-11-20 Even Rouault <[email protected]>
12688 * automake: updated to 1.14.1
12689 * libtool: updated to 2.4.3
12690 * HOWTO-RELEASE: small update about autotools building order
12691
12692 2014-10-20 Olivier Paquet <[email protected]>
12693 * tools/tiff2pdf.c: Preserve input file directory order when pages
12694 are tagged with the same page number.
12695
12696 2014-08-31 Bob Friesenhahn <[email protected]>
12697
12698 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
12699 count for tag should be a warning rather than an error since
12700 errors terminate processing.
12701
12702 2014-06-07 Bob Friesenhahn <[email protected]>
12703
12704 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
12705 was wrongly described. Fix suggested by Miguel Medalha.
12706
12707 2014-05-06 Bob Friesenhahn <[email protected]>
12708
12709 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
12710 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood.
12711 Reviewed and forwarded by Lee Howard.
12712
12713 2013-11-30 Frank Warmerdam <[email protected]>
12714
12715 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
12716
12717 2013-10-21 Frank Warmerdam <[email protected]>
12718
12719 * libtiff/tif_dir.c: generate error in case of directory count
12720 overflow.
12721
12722 2013-10-01 Frank Warmerdam <[email protected]>
12723
12724 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
12725 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
12726
12727 2013-09-12 Bob Friesenhahn <[email protected]>
12728
12729 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
12730 be defective, then set it to zero before returning error in order
12731 to terminate processing of truncated TIFF. Issue found and fix
12732 suggested by Richard Nolde.
12733
12734 2013-08-14 Frank Warmerdam <[email protected]>
12735
12736 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
12737
12738 2013-08-13 Frank Warmerdam <[email protected]>
12739
12740 * tools/gif2tiff.c: Be more careful about corrupt or
12741 hostile input files (#2450, CVE-2013-4231)
12742
12743 * tools/tiff2pdf.c: terminate after failure of allocating
12744 ycbcr buffer (bug #2449, CVE-2013-4232)
12745
12746 2013-07-09 Frank Warmerdam <[email protected]>
12747
12748 * tools/tiffinfo.c: Default various values fetched with
12749 TIFFGetField() to avoid being uninitialized.
12750
12751 2013-05-02 Tom Lane <[email protected]>
12752
12753 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in
12754 t2p_process_jpeg_strip to be at least marginally competent. The
12755 approach is still fundamentally flawed, but at least now it won't
12756 stomp all over memory when given bogus input. Fixes CVE-2013-1960.
12757
12758 2013-05-02 Tom Lane <[email protected]>
12759
12760 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
12761 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
12762 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
12763 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
12764 large enough, and eliminate substantially all uses of sprintf(buf,
12765 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to
12766 protect against overflow of fixed-size buffers. This responds in
12767 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
12768 t2p_write_pdf_page(), but in general it seems like a good idea to
12769 deprecate use of sprintf().
12770
12771 2013-03-29 Bob Friesenhahn <[email protected]>
12772
12773 * configure.ac: Applied patch by Brad Smith to improve pkg-config
12774 static linking by adding -lm to Libs.private when needed.
12775
12776 2013-03-05 Tom Lane <[email protected]>
12777
12778 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
12779 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
12780 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
12781 tools/tiffdither.c: Sync tool usage printouts and man pages with
12782 reality (quite a few options had escaped being documented in one
12783 or both places). Per an old report from Miroslav Vadkerti.
12784
12785 2013-01-25 Bob Friesenhahn <[email protected]>
12786
12787 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
12788 rotation angle was set by the auto rotate check, it was retained
12789 for all pages that followed instead ofa being retested for each
12790 page. Patch by Richard Nolde.
12791
12792 2013-01-18 Frank Warmerdam <[email protected]>
12793
12794 * libtiff/tif_write.c: tmsize_t related casting warning fixed for
12795 64bit linux.
12796
12797 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
12798 http://bugzilla.maptools.org/show_bug.cgi?id=2427
12799
12800 2012-12-20 Tom Lane <[email protected]>
12801
12802 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that
12803 it will pass with more versions of libjpeg. (There are at least
12804 three in active use now, and JPEG_LIB_VERSION doesn't tell us
12805 enough to uniquely identify expected results.)
12806
12807 2012-12-12 Tom Lane <[email protected]>
12808
12809 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
12810 field_passcount fields: it had the TIFF_VARIABLE and
12811 TIFF_VARIABLE2 cases backwards.
12812
12813 2012-12-10 Tom Lane <[email protected]>
12814
12815 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
12816 check the linebytes calculation too, get the max() calculation
12817 straight, avoid redundant error messages, check for malloc
12818 failure.
12819
12820 2012-12-10 Tom Lane <[email protected]>
12821
12822 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
12823 (to enlarge tbuf for possible partial stride at end) so that
12824 overflow in the integer addition is detected. Per gripe from
12825 Huzaifa Sidhpurwala.
12826
12827 2012-12-03 Bob Friesenhahn <[email protected]>
12828
12829 * tools/tiffset.c: tiffset now supports a -u option to unset a
12830 tag. Patch by Zach Baker. See
12831 http://bugzilla.maptools.org/show_bug.cgi?id=2419
12832
12833 2012-11-18 Bob Friesenhahn <[email protected]>
12834
12835 * automake: Update Automake to 1.12.5 release.
12836
12837 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
12838 require malloc() to return NULL pointer if requested allocation
12839 size is zero. Assure that _TIFFmalloc does.
12840
12841 2012-11-01 Frank Warmerdam <[email protected]>
12842
12843 * tools/ppm2tiff.c: avoid zero size buffer vulnerability.
12844 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
12845 Red Hat Security Response team for the fix.
12846
12847 2012-10-18 Frank Warmerdam <[email protected]>
12848
12849 * tif_zip.c: Avoid crash on NULL error messages.
12850
12851 2012-09-22 Bob Friesenhahn <[email protected]>
12852
12853 * libtiff 4.0.3 released.
12854
12855 2012-09-20 Bob Friesenhahn <[email protected]>
12856
12857 * Makefile.am: Update to Automake 1.12.4
12858
12859 2012-08-19 Bob Friesenhahn <[email protected]>
12860
12861 * Makefile.in: Update to Automake 1.12.3
12862
12863 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
12864 some TIFF/FX support in libtiff. Add the tag definitions to
12865 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c,
12866 and also fixes an error in a comment. Adds the photometric values
12867 to tif_print.c, and fixes a bug. These changes are by Steve
12868 Underwood.
12869
12870 2012-08-13 Frank Warmerdam <[email protected]>
12871
12872 * libtiff/tif_write.c: Fix bug rewriting image tiles in a
12873 compressed file: http://trac.osgeo.org/gdal/ticket/4771
12874
12875 2012-08-02 Frank Warmerdam <[email protected]>
12876
12877 * libtiff/tif_dirread.c: report error in case of mismatch value
12878 counts for tags (ie. DotRange).
12879
12880 2012-07-26 Tom Lane <[email protected]>
12881
12882 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
12883 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
12884 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
12885 as external accessors for the opaque type TIFFField.
12886
12887 * tools/tiffset.c: Make tiffset use the above functions instead of
12888 relying on library private headers.
12889
12890 2012-07-19 Tom Lane <[email protected]>
12891
12892 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
12893 after a malloc failure. No crash risk AFAICS, but the program
12894 might not report exit code 1 as desired. h/t [email protected]
12895
12896 2012-07-18 Tom Lane <[email protected]>
12897
12898 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This
12899 prevents core dumps or perhaps even arbitrary code execution when
12900 processing a corrupt input file (CVE-2012-3401).
12901
12902 2012-07-06 Bob Friesenhahn <[email protected]>
12903
12904 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
12905 IJG JPEG 7+ uses a different upsampling algorithm which produces
12906 different numeric results.
12907
12908 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
12909 work with IJG JPEG 7+.
12910
12911 2012-07-04 Bob Friesenhahn <[email protected]>
12912
12913 * test/raw_decode.c: Add changes so that test can run with build
12914 directory outside of source directory.
12915
12916 2012-07-02 Frank Warmerdam <[email protected]>
12917
12918 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
12919 imagery (http://trac.osgeo.org/gdal/ticket/4732)
12920
12921 2012-06-20 Frank Warmerdam <[email protected]>
12922
12923 * libtiff/tif_fax3.c: fix memory initialization of runs, only
12924 partly done.
12925
12926 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
12927 full "stride" past the end.
12928
12929 2012-06-19 Frank Warmerdam <[email protected]>
12930
12931 * libtiff/tif_packbits.c: fix read past end of data buffer.
12932
12933 2012-06-15 Frank Warmerdam <[email protected]>
12934
12935 * libtiff 4.0.2 released.
12936
12937 * tools/tif2pdf.c, tools/tifdump.c: avoid uninitialized variable
12938 warnings with clang.
12939
12940 2012-06-15 Tom Lane <[email protected]>
12941
12942 * tools/tiff2pdf.c: Defend against integer overflows while
12943 calculating required buffer sizes (CVE-2012-2113).
12944
12945 2012-06-12 Frank Warmerdam <[email protected]>
12946
12947 * libtiff/tif_print.c: Be careful about printing corrupt inknames.
12948
12949 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
12950
12951 2012-06-07 Frank Warmerdam <[email protected]>
12952
12953 * libtiff/tif_print.c: avoid pretty printing other fields when
12954 we don't have the proper amount and type of data or if the field
12955 is actually autodefined.
12956
12957 2012-06-05 Frank Warmerdam <[email protected]>
12958
12959 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
12960 ycbcrsubsampling values result in a runtime error, not just an
12961 assertion.
12962
12963 * tests/custom_dir.c: Add testing of EXIF and custom directory
12964 reading and writing.
12965
12966 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
12967 and TIFFCreateEXIFDirectory() functions.
12968
12969 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
12970 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE
12971 differently. This is to avoid using special TIFFGetField/TIFFSetField
12972 rules for these fields in non-image directories (like EXIF).
12973
12974 2012-06-04 Frank Warmerdam <[email protected]>
12975
12976 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
12977 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner
12978 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
12979
12980 2012-06-01 Frank Warmerdam <[email protected]>
12981
12982 * tools/tiffinfo.c: Do not try to read image data in EXIF directories.
12983
12984 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
12985 http://bugzilla.maptools.org/show_bug.cgi?id=2379
12986
12987 * libtiff/tif_unix.c: use strerror() to return a more specific error message
12988 on failed open.
12989 http://bugzilla.maptools.org/show_bug.cgi?id=2341
12990
12991 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
12992 http://bugzilla.maptools.org/show_bug.cgi?id=2386
12993
12994 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
12995 for testing jpeg in tiff image decoding including the "raw" decode interface.
12996
12997 2012-05-31 Frank Warmerdam <[email protected]>
12998
12999 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
13000 JPEGDecodeRaw() - mostly likely to occur when there is confusion about
13001 sampling values.
13002
13003 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
13004
13005 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
13006 http://bugzilla.maptools.org/show_bug.cgi?id=2398
13007
13008 2012-05-29 Frank Warmerdam <[email protected]>
13009
13010 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
13011 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting
13012 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations
13013 to get/set functions for different tags!
13014
13015 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
13016 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
13017
13018 2012-05-24 Frank Warmerdam <[email protected]>
13019
13020 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
13021 accumulate" and overwrite the end by one word in at least some cases.
13022
13023 2012-05-23 Frank Warmerdam <[email protected]>
13024
13025 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
13026
13027 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
13028
13029 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
13030 the same image.
13031
13032 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without
13033 stripbytecounts or stripoffsets or where loading these fails.
13034
13035 * libtiff/tif_print.c: be careful about whether min/max values are singular
13036 or one per sample.
13037
13038 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
13039 May affect things like ISOSpeedRatings.
13040
13041 * libtiff/tif_dir.c: avoid one byte past end of ink names reading
13042 in some cases.
13043
13044 2012-05-19 Bob Friesenhahn <[email protected]>
13045
13046 * man/TIFFGetField.3tiff: Correct the 'count' field type in the
13047 example for how to retrieve the value of unsupported tags.
13048
13049 2012-03-30 Frank Warmerdam <[email protected]>
13050
13051 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
13052 care of Tom Lane @ Red Hat.
13053
13054 2012-02-18 Bob Friesenhahn <[email protected]>
13055
13056 * libtiff 4.0.1 released.
13057
13058 * Update automake used to 1.11.3.
13059
13060 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf
13061 attribute specification to lessen the risk of accidental macro
13062 substitution. Patch from Vincent Torri.
13063
13064 2012-01-31 Frank Warmerdam <[email protected]>
13065
13066 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
13067 assumption tag fetching is always successful.
13068
13069 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
13070
13071 2012-01-22 Bob Friesenhahn <[email protected]>
13072
13073 * configure.ac: Add support for using library symbol versioning on
13074 ELF systems with the GNU linker. Support is enabled via
13075 --enable-ld-version-script. Disabled by default for now until
13076 there is a decision for how to deploy a libtiff with versioned
13077 symbols after libtiff 4.0.0 was already released.
13078
13079 2011-12-22 Bob Friesenhahn <[email protected]>
13080
13081 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
13082
13083 tif_win32.c. Patch by Edward Lam.
13084
13085 * configure.ac: Add libtiff private dependency on -llzma for
13086 pkg-config. Patch by Mark Brand.
13087 Updated Automake to 1.11.2.
13088
13089 2011-12-21 Bob Friesenhahn <[email protected]>
13090
13091 * libtiff 4.0.0 released.
13092
13093 2011-12-08 Frank Warmerdam <[email protected]>
13094
13095 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
13096 of _TIFFFillStriles() results (#gdal 4372)
13097
13098 2011-12-07 Frank Warmerdam <[email protected]>
13099
13100 * libtiff/tif_dirread.c: fixes to deal with invalid files where
13101 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
13102
13103 * libtiff/tif_dirread.c: fix error reporting when there is no
13104 tag information struct and name (gdal #4373)
13105
13106 2011-10-22 Bob Friesenhahn <[email protected]>
13107
13108 * Update GNU libtool to 2.4.2.
13109
13110 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
13111 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe
13112 Deroulers.
13113
13114 2011-06-21 Frank Warmerdam <[email protected]>
13115
13116 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
13117
13118 2011-05-31 Jim Meyering <[email protected]>
13119
13120 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
13121 upon failure to allocate "resizeddata".
13122 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
13123 allocation failure, not before.
13124 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
13125 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
13126 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
13127 NULL-deref and possible overflow
13128 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
13129 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
13130 and set of otherwise unused local, data_is_empty.
13131 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
13132 Diagnose out-of-memory failure and return 0 rather than
13133 dereferencing NULL.
13134
13135 2011-05-24 Frank Warmerdam <[email protected]>
13136
13137 * libtiff/tif_dirread.c: produce special error message for zero tag
13138 directories instead of error out on the malloc(0) failure.
13139
13140 2011-05-16 Frank Warmerdam <[email protected]>
13141
13142 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
13143 related declarations as they are in active use by libraries
13144 such as libgeotiff, and work just fine. (#2315)
13145
13146 2011-04-20 Frank Warmerdam <[email protected]>
13147
13148 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
13149 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
13150 http://bugzilla.maptools.org/show_bug.cgi?id=2315
13151
13152 * libtiff/libtiff.def: add some missing (64bit) APIs.
13153 http://bugzilla.maptools.org/show_bug.cgi?id=2316
13154
13155 2011-04-09 Bob Friesenhahn <[email protected]>
13156
13157 * libtiff 4.0.0beta7 released.
13158
13159 2011-04-09 Bob Friesenhahn <[email protected]>
13160
13161 * configure.ac: Should use AC_CANONICAL_HOST since host specifies
13162 the run-time target whereas target is used to specify the final
13163 output target if the package is a build tool (like a compiler),
13164 which libtiff is not. Resolves libtiff bug 2307 "Use
13165 AC_CANONICAL_HOST macro".
13166
13167 2011-04-02 Bob Friesenhahn <[email protected]>
13168
13169 * configure.ac: Support configuring TIFF_INT64_FORMAT and
13170 TIFF_UINT64_FORMAT appropriately for MinGW32.
13171
13172 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
13173 printf conventions for 64-bit types because it uses the WIN32 CRT.
13174
13175 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
13176 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
13177 printf conventions for 64-bit types because it uses the WIN32 CRT.
13178
13179 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
13180 understood by WIN32 CRT.
13181
13182 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
13183
13184 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
13185 it is much more portable. Tmpfile is included in ISO/IEC
13186 9899:1990 and the WIN32 CRT.
13187
13188 2011-03-26 Frank Warmerdam <[email protected]>
13189
13190 * tools/tiffset.c: add -d and -sd switches to allow operation on
13191 a particular directory, not just the first (jef).
13192
13193 2011-03-21 Frank Warmerdam <[email protected]>
13194
13195 * libtiff/tif_thunder.c: Correct potential buffer overflow with
13196 thunder encoded files with wrong bitspersample set. The libtiff
13197 development team would like to thank Marin Barbella and TippingPoint's
13198 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
13199 CVE-2011-1167).
13200 http://bugzilla.maptools.org/show_bug.cgi?id=2300
13201
13202 2011-03-10 Frank Warmerdam <[email protected]>
13203
13204 * libtiff/tif_fax3.h: Fix to last change allowing zero length
13205 runs at the start of a scanline - needed for legal cases.
13206
13207 2011-03-02 Frank Warmerdam <[email protected]>
13208
13209 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
13210 a move left. Without this, a malicious input file can generate an
13211 indefinitely large series of runs without a0 ever reaching the right
13212 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192.
13213 This is a modified version of a patch proposed by Drew Yao of Apple
13214 Product Security. It adds an unexpected() report, and disallows the
13215 equality case, since emitting a run without increasing a0 still allows
13216 buffer overrun.
13217
13218 2011-02-23 Frank Warmerdam <[email protected]>
13219
13220 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
13221
13222 * tools/tiff2rgba.c: close source file on error to make leak
13223 detection easier.
13224
13225 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
13226
13227 http://bugzilla.maptools.org/show_bug.cgi?id=2295
13228
13229 2011-02-22 Frank Warmerdam <[email protected]>
13230
13231 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
13232 _SUPPORT)
13233
13234 2011-02-18 Frank Warmerdam <[email protected]>
13235
13236 * configure.ac, configure: Added support for --enable-chunky-strip-read
13237 configure option to enable the experimental feature from a couple
13238 months ago for reading big strips in chunks.
13239
13240 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
13241 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
13242 Implement optional support for deferring the load of strip/tile
13243 offset and size tags for optimized scanning of directories. Enabled
13244 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
13245 #define in tif_config.h).
13246
13247 2011-02-11 Frank Warmerdam <[email protected]>
13248
13249 * libtiff/tif_print.c: remove unused variable.
13250
13251 2011-02-09 Frank Warmerdam <[email protected]>
13252
13253 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem
13254 with non-console (popup message) builds on win32.
13255
13256 http://bugzilla.maptools.org/show_bug.cgi?id=2293
13257
13258 2011-01-24 Olivier Paquet <[email protected]>
13259
13260 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
13261 tif_print.c, tiff.h, tiffiop.h} : Added support for
13262 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
13263 values for each sample. Presents the min/max of all samples by default for
13264 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
13265 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
13266 http://www.asmail.be/msg0055458208.html
13267
13268 2011-01-06 Frank Warmerdam <[email protected]>
13269
13270 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
13271 maintained.
13272
13273 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
13274 for CHUNKY_STRIP_READ_SUPPORT.
13275
13276 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
13277 during JPEGPreDecode and JPEGDecode calls.
13278 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
13279 as compression formats like JPEG keep 16 lines interleaved in a sense
13280 and might need to touch quite a bit of data.
13281
13282 http://trac.osgeo.org/gdal/ticket/3894
13283
13284 2011-01-03 Lee Howard <[email protected]>
13285
13286 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
13287 caused by commit on 2010-12-14. Submitted by e-mail from
13288 Even Rouault <[email protected]>
13289
13290 2010-12-31 Olivier Paquet <[email protected]>
13291
13292 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
13293 http://bugzilla.maptools.org/show_bug.cgi?id=2266
13294
13295 2010-12-23 Andrey Kiselev <[email protected]>
13296
13297 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
13298 compression level parameter (preset) for Deflate and LZMA encoders,
13299 e.g "-c lzma:p1" or "-c zip:p9".
13300
13301 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level
13302 (preset) in LZMAVSetField().
13303
13304 2010-12-18 Bob Friesenhahn <[email protected]>
13305
13306 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
13307 Makefile.
13308
13309 2010-12-14 Andrey Kiselev <[email protected]>
13310
13311 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
13312 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
13313 TIFF compression scheme LZMA reserving a new value 34925 for
13314 Compression tag. As per
13315 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
13316
13317 2010-12-14 Lee Howard <[email protected]>
13318
13319 * libtiff/tif_dirread.c: tolerate some cases where
13320 FIELD_COLORMAP is missing
13321 http://bugzilla.maptools.org/show_bug.cgi?id=2189
13322
13323 2010-12-14 Lee Howard <[email protected]>
13324
13325 * libtiff/tif_read.c: change read_ahead to tmsize_t
13326 http://bugzilla.maptools.org/show_bug.cgi?id=2222
13327
13328 2010-12-14 Lee Howard <[email protected]>
13329
13330 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on
13331 Windows except on Cygwin
13332 http://bugzilla.maptools.org/show_bug.cgi?id=2224
13333
13334 2010-12-14 Lee Howard <[email protected]>
13335
13336 * tools/gif2tiff.c: fix buffer overrun
13337 http://bugzilla.maptools.org/show_bug.cgi?id=2270
13338
13339 2010-12-14 Lee Howard <[email protected]>
13340
13341 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
13342 to improve compatibility with various viewers
13343 submitted by e-mail from Dwight Kelly <[email protected]>
13344
13345 2010-12-13 Lee Howard <[email protected]>
13346
13347 * tools/fax2ps.c: be consistent with page-numbering
13348 http://bugzilla.maptools.org/show_bug.cgi?id=2225
13349
13350 2010-12-13 Lee Howard <[email protected]>
13351
13352 * libtiff/tif_color.c: prevent crash in handling bad TIFFs
13353 resolves CVE-2010-2595
13354 http://bugzilla.maptools.org/show_bug.cgi?id=2208
13355
13356 2010-12-13 Lee Howard <[email protected]>
13357
13358 * tools/tiffcrop.c: new release by Richard Nolde
13359 http://bugzilla.maptools.org/show_bug.cgi?id=2004
13360
13361 2010-12-12 Lee Howard <[email protected]>
13362
13363 * tools/tiff2pdf.c: fix colors for images with RGBA
13364 interleaved data
13365 http://bugzilla.maptools.org/show_bug.cgi?id=2250
13366
13367 2010-12-12 Lee Howard <[email protected]>
13368
13369 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
13370 http://bugzilla.maptools.org/show_bug.cgi?id=2164
13371
13372 2010-12-11 Lee Howard <[email protected]>
13373
13374 * tools/tiff2pdf.c: remove invalid duplication for Lab
13375 http://bugzilla.maptools.org/show_bug.cgi?id=2162
13376
13377 2010-12-11 Lee Howard <[email protected]>
13378
13379 * libtiff/tif_jpeg.c: fix use of clumplines calculation
13380 http://bugzilla.maptools.org/show_bug.cgi?id=2149
13381
13382 2010-12-11 Lee Howard <[email protected]>
13383
13384 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
13385 http://bugzilla.maptools.org/show_bug.cgi?id=2118
13386
13387 2010-12-11 Lee Howard <[email protected]>
13388
13389 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
13390 libtiff/tif_zip.c: fix build errors for VC6
13391 http://bugzilla.maptools.org/show_bug.cgi?id=2105
13392
13393 2010-12-11 Lee Howard <[email protected]>
13394
13395 * libtiff/tif_stream.cxx: warnings cleanup
13396 http://bugzilla.maptools.org/show_bug.cgi?id=2091
13397 * libtiff/tif_dirread.c: warnings cleanup
13398 http://bugzilla.maptools.org/show_bug.cgi?id=2092
13399
13400 2010-12-11 Lee Howard <[email protected]>
13401
13402 * tools/tiff2pdf.c: add fill-page option
13403 http://bugzilla.maptools.org/show_bug.cgi?id=2051
13404
13405 2010-12-11 Lee Howard <[email protected]>
13406
13407 * libtiff/tif_dirread.c: modify warnings
13408 http://bugzilla.maptools.org/show_bug.cgi?id=2016
13409
13410 2010-12-11 Lee Howard <[email protected]>
13411
13412 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data
13413 http://bugzilla.maptools.org/show_bug.cgi?id=1999
13414
13415 2010-12-11 Lee Howard <[email protected]>
13416
13417 * tools/tiffinfoce.c: strip byte counts are uint64* now
13418
13419 2010-12-11 Lee Howard <[email protected]>
13420
13421 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
13422 or missing byte-count tag
13423 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
13424 per http://bugzilla.maptools.org/show_bug.cgi?id=1996
13425
13426 2010-12-08 Lee Howard <[email protected]>
13427
13428 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
13429 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
13430
13431 2010-12-06 Lee Howard <[email protected]>
13432
13433 * libtiff/tif_open.c: Fix mode check before opening a file.
13434 http://bugzilla.maptools.org/show_bug.cgi?id=1906
13435
13436 2010-11-27 Bob Friesenhahn <[email protected]>
13437
13438 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
13439 Patch by Vincent Torri.
13440
13441 2010-10-21 Frank Warmerdam <[email protected]>
13442
13443 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
13444
13445 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
13446
13447 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
13448
13449 2010-09-25 Lee Howard <[email protected]>
13450
13451 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde
13452 with additional command line options for Document Title,
13453 Document Creator, and Page Orientation
13454
13455 2010-07-13 Bob Friesenhahn <[email protected]>
13456
13457 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a
13458 potentially unterminated buffer due to using an exceptionally long
13459 file name.
13460
13461 2010-07-08 Andrey Kiselev <[email protected]>
13462
13463 * tools/tiff2pdf.c: Fixed ID buffer filling in
13464 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
13465
13466 2010-07-07 Andrey Kiselev <[email protected]>
13467
13468 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
13469 to expected value as the warning message suggests. As per bug
13470 http://bugzilla.maptools.org/show_bug.cgi?id=1963
13471
13472 2010-07-06 Andrey Kiselev <[email protected]>
13473
13474 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
13475 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
13476 which should be set by value.
13477
13478 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
13479 and _TIFFFieldWithName() if the tag is not found in the tag table.
13480 This should be normal situation and returned NULL value should be
13481 properly handled by the caller.
13482
13483 2010-07-02 Andrey Kiselev <[email protected]>
13484
13485 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
13486 integer type conversions. As per bug
13487 http://bugzilla.maptools.org/show_bug.cgi?id=2207
13488
13489 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
13490 WhitePoint tag as per bug
13491 http://bugzilla.maptools.org/show_bug.cgi?id=2042
13492
13493 * libtiff/tif_getimage.c: Check the number of samples per pixel when
13494 working with YCbCr image in PickContigCase(). As per bug
13495 http://bugzilla.maptools.org/show_bug.cgi?id=2216
13496
13497 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
13498 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
13499 we don't need any post-processing. That helps to reset the hook if we
13500 previously set this field to some other value and the hook was
13501 initialized accordingly. As per bug
13502 http://bugzilla.maptools.org/show_bug.cgi?id=2035
13503
13504 2010-07-01 Andrey Kiselev <[email protected]>
13505
13506 * tools/tiffgt.c: Properly check the raster buffer allocations for
13507 integer overflows. As per bug
13508 http://bugzilla.maptools.org/show_bug.cgi?id=2108
13509
13510 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
13511 upstream.
13512
13513 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
13514 multiply_32() and multiply_64() functions into tif_aux.c file and
13515 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
13516
13517 2010-06-30 Andrey Kiselev <[email protected]>
13518
13519 * tools/tiff2pdf.c: Better generation of ID field in
13520 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
13521
13522 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when
13523 converting JPEG encoded tiles.
13524
13525 * tools/tiff2pdf.c: Better handling of string fields, use static
13526 string buffers instead of dynamically allocated, use strncpy() instead
13527 of strcpy(), control the string lengths.
13528
13529 2010-06-25 Andrey Kiselev <[email protected]>
13530
13531 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid
13532 referencing to uninitialized memory in some cases (e.g. when tile size
13533 set bigger than the image size).
13534
13535 2010-06-15 Bob Friesenhahn <[email protected]>
13536
13537 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
13538 subsampled data since tiffcrop currently doesn't support it. Fix
13539 JPEG support.
13540
13541 2010-06-13 Frank Warmerdam <[email protected]>
13542
13543 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
13544
13545 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
13546 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
13547 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
13548 size is larger. Also, there are a bunch of places that try to
13549 memset() a malloc'd buffer before checking for malloc failure, which
13550 would result in core dump if there actually were a failure. (#2211)
13551
13552 2010-06-11 Bob Friesenhahn <[email protected]>
13553
13554 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
13555 avoid compiler warnings if parameter types are not sign
13556 consistent.
13557
13558 * libtiff 4.0.0alpha6 released.
13559
13560 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
13561 European page size dimensions. Added an option to allow the user
13562 to specify a custom page size on the command line. Fix the case
13563 where a page size specified with a fractional part was being
13564 coerced to an integer by retyping the variables that define the
13565 paper size.
13566
13567 * html/index.html: Update for the 3.9.3 release.
13568
13569 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
13570 YCbCr subsampled data since tiffcp currently doesn't support it.
13571 http://bugzilla.maptools.org/show_bug.cgi?id=2097
13572
13573 * Update libtool to version 2.2.10.
13574
13575 2010-06-10 Bob Friesenhahn <[email protected]>
13576
13577 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
13578 multiplier is zero.
13579
13580 2010-06-09 Bob Friesenhahn <[email protected]>
13581
13582 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
13583 CVE-2010-1411 was not complete.
13584
13585 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
13586 multiply two integers. Returns zero if there is an integer
13587 overflow.
13588
13589 * tools/tiffcp.c (main): tiffcp should not leak memory if an error
13590 is reported when reading the input file.
13591
13592 2010-06-08 Bob Friesenhahn <[email protected]>
13593
13594 * Update libtool to version 2.2.8.
13595
13596 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
13597 buffer due to integer overflow in TIFFroundup() and several other
13598 potential overflows. In conjunction with the fix to TIFFhowmany(),
13599 fixes CVE-2010-1411.
13600
13601 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
13602 result in an integer overflow. This causes TIFFroundup() to also
13603 return zero if there would be an integer overflow.
13604
13605 * contrib: Add an emacs formatting mode footer to all source files
13606 so that emacs can be effectively used.
13607
13608 2010-06-03 Oliver Chen Feng <[email protected]>
13609
13610 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
13611 file PAGENUMBER value in sequence for users who care the page
13612 sequence, this will also prevent tiff2pdf from creating pdf file from
13613 the merged tiff file with wrong page sequence.
13614
13615 2010-05-08 Olivier Paquet <[email protected]>
13616
13617 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
13618 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
13619 * libtiff/tif_dirinfo.c: Use correct set_field_type for
13620 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
13621 http://bugzilla.maptools.org/show_bug.cgi?id=2192
13622
13623 2010-05-07 Frank Warmerdam <[email protected]>
13624
13625 * libtiff/tif_jpeg.c: Ensure that quality is always set in
13626 JPEGPreEncode(), not just when we want to output local tables.
13627 Otherwise the quality used during compression may not be right and
13628 might not match the tables in the tables tag. This bug only occurs
13629 when seeking between directories in the midst of writing blocks.
13630 http://trac.osgeo.org/gdal/ticket/3539
13631
13632 2010-05-06 Andrey Kiselev <[email protected]>
13633
13634 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
13635 Regenerated from the source.
13636
13637 2010-05-05 Olivier Paquet <[email protected]>
13638
13639 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
13640 had stopped working. Also made it always print 6 floats instead of
13641 2*SamplesPerPixel.
13642 http://bugzilla.maptools.org/show_bug.cgi?id=2191
13643 http://bugzilla.maptools.org/show_bug.cgi?id=2186
13644 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
13645 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
13646
13647 2010-05-05 Frank Warmerdam <[email protected]>
13648
13649 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
13650 if the jpeg table was written. This is a fix for the last fix on 04-21.
13651
13652 2010-04-21 Frank Warmerdam <[email protected]>
13653
13654 * libtiff/tif_jpeg.c: avoid preparing jpeg tables every time
13655 JPEGSetupEncode() is called if the tables already seem to be
13656 established. This prevents spurious updates and rewriting of
13657 directories with jpegtables when doing updates to existing images.
13658 http://trac.osgeo.org/gdal/ticket/3539
13659
13660 2010-04-20 Olivier Paquet <[email protected]>
13661
13662 * libtiff/tif_dirinfo.c: Use correct set_field_type for
13663 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
13664 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
13665 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
13666 http://bugzilla.maptools.org/show_bug.cgi?id=2139
13667
13668 2010-04-10 Bob Friesenhahn <[email protected]>
13669
13670 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
13671 when the tag count value is zero. Error handling is still a
13672 regression since in 3.9.2, empty tags are skipped (with a warning)
13673 rather than returning a hard error and refusing to read the file.
13674
13675 * tools/ppm2tiff.c (main): While case for parsing comment line
13676 requires extra parenthesis to work as expected. Reported by
13677 Thomas Sinclair.
13678
13679 2010-04-02 Frank Warmerdam <[email protected]>
13680
13681 * libtiff/tif_read.c (primarily): Add support for
13682 CHUNKY_STRIP_READ_SUPPORT where large strips are
13683 read in chunks for applications using TIFFReadScanline().
13684 This is intended to make it more practical work with very
13685 large compressed one-strip files. Feature is off by default.
13686 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
13687 http://trac.osgeo.org/gdal/ticket/3514
13688
13689 2010-03-31 Frank Warmerdam <[email protected]>
13690
13691 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
13692 directories so previously placed directories will be migrated to
13693 the end of file if needed.
13694
13695 2010-03-30 Frank Warmerdam <[email protected]>
13696
13697 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
13698 to support operating on strips/tiles of more than 256MB.
13699 http://trac.osgeo.org/gdal/ticket/3512
13700
13701 2010-03-10 Bob Friesenhahn <[email protected]>
13702
13703 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
13704 that it is clearly a memory allocation error message, and also
13705 includes the size of the allocation request.
13706
13707 2010-02-22 Lee Howard <[email protected]>
13708
13709 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
13710 the JPEG TIFF as is is not required in order to prevent it from
13711 being unused and filled with invalid data. (Leave it to be
13712 generated by later activity.)
13713 http://bugzilla.maptools.org/show_bug.cgi?id=2135
13714 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
13715 data rather than skipping them. This fixes the ability to view in
13716 Acrobat Reader, Evince, and Ghostscript.
13717 http://bugzilla.maptools.org/show_bug.cgi?id=2135
13718 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
13719 strips.
13720 http://bugzilla.maptools.org/show_bug.cgi?id=2029
13721
13722 2009-12-03 Frank Warmerdam <[email protected]>
13723
13724 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
13725 Made so that when working with downsampled images a stub function
13726 reporting an error is used for tif_decoderow. We cannot meaningfully
13727 support reading scanlines in this situation. (#1936)
13728
13729 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
13730 resetting of the upsampling values (gdal:#3259).
13731 http://bugzilla.maptools.org/show_bug.cgi?id=1936
13732
13733 2009-11-30 Frank Warmerdam <[email protected]>
13734
13735 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
13736 tools/ras2tiff.c: Fix resource leaks on error.
13737 http://bugzilla.maptools.org/show_bug.cgi?id=2121
13738
13739 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
13740 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
13741 of as a custom(generic) field to avoid a potential reentrancy problem.
13742 http://bugzilla.maptools.org/show_bug.cgi?id=2125
13743
13744 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
13745 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
13746 const, and display_sRGB static and const.
13747 http://bugzilla.maptools.org/show_bug.cgi?id=2124
13748
13749 2009-11-04 Bob Friesenhahn <[email protected]>
13750
13751 * libtiff 4.0.0alpha5 released.
13752
13753 2009-11-03 Bob Friesenhahn <[email protected]>
13754
13755 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This
13756 version has undergone substantial testing with arbitrary sample
13757 bit depths. Also eliminates GCC compilation warnings.
13758
13759 2009-11-02 Bob Friesenhahn <[email protected]>
13760
13761 * port/libport.h: Add extern declarations for getopt standard
13762 globals.
13763
13764 2009-10-31 Bob Friesenhahn <[email protected]>
13765
13766 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
13767 noticed in 64-bit build of libtiff with Visual Studio 2005.
13768 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
13769 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
13770
13771 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
13772 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
13773 Visual Studio 2005 64-bit warning in tif_pixarlog.c",
13774 http://bugzilla.maptools.org/show_bug.cgi?id=2068
13775
13776 2009-10-29 Bob Friesenhahn <[email protected]>
13777
13778 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
13779 pointer" warnings.
13780
13781 2009-10-28 Bob Friesenhahn <[email protected]>
13782
13783 * html/tools.html: Add manual page links, and a summary
13784 description of tiffcrop.
13785
13786 2009-10-07 Bob Friesenhahn <[email protected]>
13787
13788 * configure.ac: x86_64 should use the same fill order as i386.
13789
13790 2009-09-24 Bob Friesenhahn <[email protected]>
13791
13792 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
13793 Nolde. Major updates to add significant functionality for reading
13794 and writing tile based images with bit depths not a multiple of 8
13795 which cannot be handled by tiffcp.
13796
13797 2009-09-03 Bob Friesenhahn <[email protected]>
13798
13799 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
13800 do_fancy_upsampling=FALSE in order to read raw data. Resolves
13801 "Bug 2090 - OJPEG crash with libjpeg v7".
13802 http://bugzilla.maptools.org/show_bug.cgi?id=2090
13803
13804 2009-09-03 Frank Warmerdam <[email protected]>
13805
13806 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
13807 interface when stoponerror is set.
13808 http://bugzilla.maptools.org/show_bug.cgi?id=2071
13809
13810 2009-08-30 Bob Friesenhahn <[email protected]>
13811
13812 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
13813 fix build with gcc when using the "-Wformat
13814 -Werror=format-security" flags.
13815
13816 2009-08-29 Bob Friesenhahn <[email protected]>
13817
13818 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
13819 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
13820 utilities tests.
13821
13822 2009-08-28 Bob Friesenhahn <[email protected]>
13823
13824 * tools/tiffinfo.c: tiffinfo should return error status to the
13825 caller. Register a private error callback to accomplish that.
13826
13827 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
13828 PNM formats so that we will be able to test more of the tools.
13829 While adding these test images I notice that bmp2tiff and gif2tiff
13830 only support ancient versions of their respective formats.
13831
13832 2009-08-27 Bob Friesenhahn <[email protected]>
13833
13834 * libtiff 4.0.0alpha4 released.
13835
13836 * HOWTO-RELEASE: Improved release instructions.
13837
13838 2009-08-24 Bob Friesenhahn <[email protected]>
13839
13840 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
13841 fixes for "Bug 2023 - nroff errors in manual pages".
13842 http://bugzilla.maptools.org/show_bug.cgi?id=2023
13843
13844 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
13845 CVE-2009-2347 libtiff: integer overflows in various inter-color
13846 space conversion tools".
13847 http://bugzilla.maptools.org/show_bug.cgi?id=2079
13848
13849 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
13850 Berkenbilt for "Bug 2024 - possible null pointer dereference with
13851 one-line fix".
13852 http://bugzilla.maptools.org/show_bug.cgi?id=2024
13853
13854 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
13855 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
13856 segfault after setting tdir_tag = IGNORE".
13857 http://bugzilla.maptools.org/show_bug.cgi?id=1895
13858
13859 2009-08-23 Bob Friesenhahn <[email protected]>
13860
13861 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing
13862 tiffcrop.sh into a collection of many specific tests. Re-wrote
13863 all of the existing tests to be based on some simple shell
13864 functions. Make distcheck works again.
13865
13866 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
13867 added 'memcheck' and 'ptrcheck' targets to make it easy to run the
13868 tests under valgrind.
13869
13870 2009-08-21 Bob Friesenhahn <[email protected]>
13871
13872 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
13873 build.
13874
13875 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
13876 actually activated since it needed to be enabled in this
13877 Makefile.am. Also activated parallel-tests mode since it offers
13878 useful features such as per-test .log files and a summary test
13879 report .log file.
13880
13881 2009-08-20 Bob Friesenhahn <[email protected]>
13882
13883 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11,
13884 libtool 2.2.6. Enabled support for silent build rules
13885 (--enable-silent-rules or 'make V=0') and colorized tests.
13886
13887 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
13888
13889 2009-06-30 Frank Warmerdam <[email protected]>
13890
13891 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
13892
13893 * tools/tiffcp.c: add -c sgilog support.
13894
13895 * libtiff/tif_luv.c: correct return codes from encoderow to be
13896 1 on success instead of zero.
13897 http://bugzilla.maptools.org/show_bug.cgi?id=2069
13898
13899 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
13900 #1085 for a better underflow fix that errors properly.
13901 http://bugzilla.maptools.org/show_bug.cgi?id=2065
13902 http://bugzilla.maptools.org/show_bug.cgi?id=1985
13903
13904 2009-06-26 Frank Warmerdam <[email protected]>
13905
13906 * libtiff/tif_strip.c: Remove an inappropriate assertion that often
13907 fails on oddly sized 12bit jpeg compressed ycbcr images.
13908
13909 2009-06-22 Frank Warmerdam <[email protected]>
13910
13911 * libtiff/tif_lzw.c: Fix buffer underflow bug.
13912 http://bugzilla.maptools.org/show_bug.cgi?id=2065
13913
13914 2009-06-21 Frank Warmerdam <[email protected]>
13915
13916 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
13917 for dual mode 8/12 bit jpeg support.
13918
13919 2009-06-03 Frank Warmerdam <[email protected]>
13920
13921 * libtiff/tif_write.c: do not override the planar configuration to be
13922 contig for one sample files if planar configuration is already set.
13923 http://bugzilla.maptools.org/show_bug.cgi?id=2057
13924
13925 2009-06-02 Frank Warmerdam <[email protected]>
13926
13927 * libtiff/libtiff.def: Add TIFFUnsetField.
13928
13929 2009-05-03 Frank Warmerdam <[email protected]>
13930
13931 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
13932 error reports to use "%s" as format string.
13933 http://trac.osgeo.org/gdal/ticket/2976
13934
13935 2009-03-12 Frank Warmerdam <[email protected]>
13936
13937 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
13938 for some codecs (#2020).
13939
13940 2009-02-12 Frank Warmerdam <[email protected]>
13941
13942 * libtiff/tif_luv.c: Fix handling of tiled logluv images.
13943 http://bugzilla.maptools.org/show_bug.cgi?id=2005
13944
13945 2009-02-09 Frank Warmerdam <[email protected]>
13946
13947 * libtiff/tif_dirread.c: Improve allocation safety when allocated
13948 buffer for large tags. (#1998) Related to (#1993)
13949
13950 2009-02-06 Frank Warmerdam <[email protected]>
13951
13952 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the
13953 test suite should pass.
13954
13955 2009-02-05 Frank Warmerdam <[email protected]>
13956
13957 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
13958 but at the 2GB boundary to avoid overflow on 32bit systems.
13959 http://bugzilla.maptools.org/show_bug.cgi?id=1993
13960
13961 * libtiff/tif_dirread.c: Remove some assertions that blow due to
13962 corrupt files rather than in response to library internal
13963 inconsistencies.
13964 http://bugzilla.maptools.org/show_bug.cgi?id=1995
13965 http://bugzilla.maptools.org/show_bug.cgi?id=1991
13966
13967 * libtiff/tif_dirread.c: Fixed testing for failed result from
13968 TIFFReadDirectoryFindFieldInfo().
13969 http://bugzilla.maptools.org/show_bug.cgi?id=1992
13970
13971 2009-01-23 Frank Warmerdam <[email protected]>
13972
13973 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
13974 http://bugzilla.maptools.org/show_bug.cgi?id=1911
13975
13976 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
13977
13978 http://bugzilla.maptools.org/show_bug.cgi?id=1924
13979
13980 * tools/tiffcrop.c: initialize xres/yres values.
13981
13982 * test/*.sh - default ${srcdir} to local directory.
13983
13984 * test/common.sh - start verbose mode after common settings.
13985
13986 * libtiff/tif_dirinfo.c: Replace lfind() with local equivalent to
13987 avoid type mismatches on different platforms.
13988 http://bugzilla.maptools.org/show_bug.cgi?id=1889
13989
13990 2009-01-22 Frank Warmerdam <[email protected]>
13991
13992 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
13993 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
13994
13995 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
13996 defined, primarily to reduce prototype warnings on windows.
13997
13998 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
13999 about unused parameters, and uninitialized variables.
14000
14001 2009-01-21 Bob Friesenhahn <[email protected]>
14002
14003 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
14004 order to trace full execution detail while executing the test suite.
14005
14006 2009-01-20 Frank Warmerdam <[email protected]>
14007
14008 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
14009
14010 2009-01-20 Bob Friesenhahn <[email protected]>
14011
14012 * test/Makefile.am (CLEANFILES): Make sure that test output files
14013 are removed by 'make clean'
14014
14015 * Update autotools for 4.0.0 beta3
14016
14017 * 4.0.0 beta3 produced.
14018
14019 2009-01-12 Bob Friesenhahn <[email protected]>
14020
14021 * test/tiffcrop.sh: New test script for tiffcrop from Richard
14022 Nolde.
14023
14024 * tools/tiff2ps.c: Remove spurious message to stderr.
14025
14026 2009-01-11 Bob Friesenhahn <[email protected]>
14027
14028 * tools/tiff2ps.c: Incorporated significant functionality update
14029 from Richard Nolde. In particular, support for rotating the image
14030 by 90, 180, 270, and 'auto' has been added.
14031
14032 * man/tiffcrop.1: Incorporated documentation updates from Richard
14033 Nolde.
14034
14035 * tools/tiffcrop.c: Incorporated significant functionality update
14036 from Richard Nolde.
14037
14038 2008-12-31 Bob Friesenhahn <[email protected]>
14039
14040 * libtiff/tiffio.h: GCC will now validate format specifications
14041 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
14042 TIFFWarningExt() in order to reveal bugs.
14043
14044 * Many fixes throughout to work better as a 64-bit build.
14045
14046 2008-12-30 Bob Friesenhahn <[email protected]>
14047
14048 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
14049 tags now require 64-bit parameter rather than 32-bit.
14050
14051 * libtiff/tif_dirread.c: Fixed issues with unaligned access to
14052 64-bit values.
14053
14054 * tools/thumbnail.c: Eliminate crash noticed while running test
14055 suite.
14056
14057 2008-12-29 Bob Friesenhahn <[email protected]>
14058
14059 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
14060 Initialize stack variables to avoid compiler warning.
14061
14062 * tools/tiffinfoce.c (main): Use toff_t for offset type when
14063 retrieving offset of EXIF IFD.
14064
14065 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
14066 TIFFClientOpen() callback and other external function definitions.
14067
14068 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
14069 type now. Fixes crash when dumping files containing an EXIF IFD.
14070
14071 * m4/libtool.m4: Update to libtool 2.2.6.
14072
14073 2008-12-21 Frank Warmerdam <[email protected]>
14074
14075 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
14076
14077 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full
14078 strip for the last partial strip in a jpeg compressed file.
14079 http://bugzilla.maptools.org/show_bug.cgi?id=1981
14080
14081 2008-10-29 Frank Warmerdam <[email protected]>
14082
14083 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
14084 we take the shortcut to only update the strip/tile offsets in place.
14085 http://trac.osgeo.org/gdal/ticket/2621
14086
14087 2008-10-21 Andrey Kiselev <[email protected]>
14088
14089 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
14090 the older versions retained).
14091
14092 2008-10-09 Frank Warmerdam <[email protected]>
14093
14094 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
14095 IPP enabled version of libjpeg from Intel.
14096 http://bugzilla.maptools.org/show_bug.cgi?id=1951
14097
14098 2008-09-05 Andrey Kiselev <[email protected]>
14099
14100 * tools/tiffsplit.c: Use byte counts of proper size (uint64).
14101 Required for libtiff 4.0.
14102
14103 * tools/tiffsplit.c: Use dynamically allocated array instead of static
14104 when constructing output file names.
14105
14106 2008-09-03 Andrey Kiselev <[email protected]>
14107
14108 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
14109 doing the filename/path construction.
14110
14111 * tools/tiff2pdf.c: More appropriate format string in
14112 t2p_write_pdf_string(); avoid signed/unsigned mismatch.
14113
14114 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
14115
14116 http://bugzilla.maptools.org/show_bug.cgi?id=1929
14117
14118 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes
14119 CVE-2008-2327 security issue.
14120
14121 2008-09-01 Frank Warmerdam <[email protected]>
14122
14123 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
14124
14125 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
14126 depending on whether the file is bigtiff or classic tiff.
14127 http://bugzilla.maptools.org/show_bug.cgi?id=1917
14128
14129 2008-08-12 Edward Lam <[email protected]>
14130
14131 * tools/tiffdump.c: When compiling for Microsoft Windows, apply
14132 consistent (__int64) casting when testing if _lseeki64 has
14133 successfully sought as requested. This is necessary for large
14134 file support to work since off_t is only 32-bit.
14135
14136 2008-07-29 Frank Warmerdam <[email protected]>
14137
14138 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or
14139 the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
14140 with control logic to return runtime errors (c/o Even Rouault) (#1927).
14141
14142 2008-06-17 Frank Warmerdam <[email protected]>
14143
14144 * tools/tiffcrop.c: Fix some portability problems.
14145
14146 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
14147 used in tif_jpeg.c.
14148
14149 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
14150 as TIFFOpen().
14151
14152 2008-06-01 Frank Warmerdam <[email protected]>
14153
14154 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
14155 like Sparc/Solaris.
14156 http://bugzilla.maptools.org/show_bug.cgi?id=1892
14157
14158 2008-05-27 Frank Warmerdam <[email protected]>
14159
14160 * libtiff.def: Add TIFFFindField
14161 http://bugzilla.maptools.org/show_bug.cgi?id=1891
14162
14163 2008-05-26 Frank Warmerdam <[email protected]>
14164
14165 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
14166
14167 * li2008-04-15 Andrey Kiselev <[email protected]>
14168
14169 btiff/tif_win32.c: Replace custom Win32 memory api with generic
14170 POSIX one. No apparent value to use of GlobalAlloc() in the modern
14171 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885
14172
14173 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
14174 in windows version (care of Edward Lam).
14175
14176 2008-05-24 Frank Warmerdam <[email protected]>
14177
14178 * tif_codec.c: Avoid NULL pointer dereferencing for exotic
14179 compression codec codes.
14180
14181 * tif_dirwrite.c: fix potential memory leak.
14182
14183 * tif_dirread.c: Fix unchecked malloc result.
14184
14185 2008-05-24 Bob Friesenhahn <[email protected]>
14186
14187 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
14188 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
14189 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
14190 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
14191 tiffdump.sh tiffinfo.sh}: Added more test scripts based on
14192 suggestions from Lee Howard posted to the tiff list on 13 Sep
14193 2007.
14194
14195 2008-05-23 Frank Warmerdam <[email protected]>
14196
14197 * libtiff/tif_fax3.c: Add an assert in an effort to detect a
14198 possible runtime problem reported by coverity.
14199
14200 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
14201
14202 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
14203 http://bugzilla.maptools.org/show_bug.cgi?id=1888
14204
14205 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak.
14206
14207 * tools/rgb2ycbcr.c: fix memory leak of raster buffer.
14208
14209 * tools/tiffcp.c: Simplify inknames code to avoid pointless test.
14210 Cleanup scanline allocation to avoid coverity warning.
14211
14212 * tools/thumbnail.c: Check for TIFFOpen() failure.
14213
14214 2008-05-18 Frank Warmerdam <[email protected]>
14215
14216 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
14217 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear
14218 why this is needed.
14219
14220 2008-05-09 Bob Friesenhahn <[email protected]>
14221
14222 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
14223 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4".
14224
14225 2008-04-15 Andrey Kiselev <[email protected]>
14226
14227 * test/: Test suite updated. Everything is passed now.
14228
14229 * libtiff/tif_dirinfo.c: Fixed description of the
14230 TIFFTAG_NUMBEROFINKS tag.
14231
14232 2008-04-14 Andrey Kiselev <[email protected]>
14233
14234 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
14235 Get rid of some of "dereferencing type-punned" warnings by converting
14236 tdir_offset field of TIFFDirEntry structure into union.
14237
14238 2008-04-10 Andrey Kiselev <[email protected]>
14239
14240 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
14241 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
14242 from the public interface. Type of its 'count' parameter changed
14243 from uint32 to tmsize_t.
14244
14245 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
14246 of the tiff structure have the size_t type instead of uint32.
14247
14248 2008-04-09 Andrey Kiselev <[email protected]>
14249
14250 * tools/tiffdump.c: Added support for MSVS 6.0.
14251
14252 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
14253 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
14254 point values on MSVS 6.0 platform.
14255
14256 2008-03-14 Frank Warmerdam <[email protected]>
14257
14258 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in
14259 TIFFReadDirEntryArray() since they are interfering with seemingly
14260 legitimate files. http://trac.osgeo.org/gdal/ticket/2005
14261
14262 2008-02-09 Joris Van Damme <[email protected]>
14263
14264 * tif_dirread.c: Added handling for the case of number of values for
14265 PageNumber tag different from 2 (previously resulted in an assert
14266 indicating lack of handling and was forgotten about)
14267
14268 2008-02-01 Frank Warmerdam <[email protected]>
14269
14270 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
14271 the actual jpeg data stream if the first strip/tile has zero size.
14272 This is the case when GDAL creates a new file with zero sizes, closes
14273 and reopens it.
14274
14275 2008-01-07 Frank Warmerdam <[email protected]>
14276
14277 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
14278
14279 2008-01-01 Frank Warmerdam <[email protected]>
14280
14281 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
14282
14283 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
14284 targets.
14285
14286 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
14287 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
14288 (x64).
14289
14290 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
14291 and TIFFFieldWithName() now return TIFFField pointers instead of
14292 TIFFFieldInfo pointers.
14293
14294 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
14295 exist. This makes it compile again on Windows
14296
14297 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
14298 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
14299
14300 * test/rewrite_tag.c: New test for TIFFRewriteField().
14301
14302 2007-12-31 Frank Warmerdam <[email protected]>
14303
14304 * tif_dirwrite.c: Added TIFFRewriteField(). This new function
14305 rewrites one field "on disk" updating an existing directory
14306 entry. Lots of limitations still...
14307
14308 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
14309 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
14310 the strip offset/size values are dirty but nothing else about the
14311 directory is dirty. In flush handle "just stripmaps dirty" as a
14312 special case that just rewrites these values without otherwise
14313 modifying the directory on disk using TIFFRewriteField().
14314
14315 We also modify logic so that in update mode the directory is not
14316 marked dirty on read, but only when something is changed. This
14317 means we need to keep track of updates to the stripmap stuff in
14318 TIFFAppendToStrip().
14319
14320 2007-12-10 Frank Warmerdam <[email protected]>
14321
14322 * tif_jpeg.c: Improve ability to switch between encoding and decoding
14323 in the jpeg code (gdal bug #2033).
14324
14325 2007-11-23 Frank Warmerdam <[email protected]>
14326
14327 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
14328 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
14329 rawcp/rawcc buffer are for writing and thus may require flushing.
14330 Necessary to distinguish whether they need to be written to disk when
14331 in mixed read/write mode and doing a mixture of writing followed by
14332 reading. http://trac.osgeo.org/gdal/ticket/1758
14333
14334 2007-11-23 Andrey Kiselev <[email protected]>
14335
14336 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
14337 from Alexey Chupahin.
14338
14339 2007-11-02 Frank Warmerdam <[email protected]>
14340
14341 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
14342 establishing if an existing tile can be rewritten to the same location
14343 by comparing the current size to all the other blocks in the same
14344 directory. This is dangerous in many situations and can easily
14345 corrupt a file. (observed in esoteric GDAL situation that's hard to
14346 document). This change involves leaving the stripbytecount[] values
14347 unaltered till TIFFAppendToStrip(). Now we only write a block back
14348 to the same location it used to be at if the new data is the same
14349 size or smaller - otherwise we move it to the end of file.
14350
14351 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
14352 data when writing the directory just because we have BEENWRITING at
14353 some point in the past. This was causing odd junk to be written out
14354 in a tile of data when a single tile had an interleaving of reading
14355 and writing with reading last. (highlighted by gdal
14356 autotest/gcore/tif_write.py test 7.
14357
14358 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid
14359 modifying callers buffer.
14360 http://trac.osgeo.org/gdal/ticket/1965
14361
14362 * tif_predict.c/h: more fixes related to last item, keeping a
14363 distinct pfunc for encode and decode cases as these were getting
14364 mixed up sometimes.
14365 http://trac.osgeo.org/gdal/ticket/1948
14366
14367 2007-11-01 Frank Warmerdam <[email protected]>
14368
14369 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
14370 predictor based encoding and decoding works in read-write update
14371 mode properly.
14372 http://trac.osgeo.org/gdal/ticket/1948
14373
14374 2007-10-24 Joris Van Damme <[email protected]>
14375
14376 * tif_dirread.c: Fixed problem with bogus file triggering
14377 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
14378 ChopUpSingleUncompressedStrip
14379
14380 2007-10-22 Joris Van Damme <[email protected]>
14381
14382 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
14383 at best, access violation at worst, when subsampled JPEG compressed imagery
14384 is decoded without the JPEG_COLORMODE feature
14385
14386 2007-10-11 Frank Warmerdam <[email protected]>
14387
14388 * html/index.html: Update "people responsible" section.
14389
14390 2007-10-05 Frank Warmerdam <[email protected]>
14391
14392 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases
14393 as reported on the mailing list.
14394
14395 2007-10-01 Joris Van Damme <[email protected]>
14396
14397 * changed some more incorrect %lud printf flags to %lu
14398
14399 2007-09-29 Joris Van Damme <[email protected]>
14400
14401 * tif_dirread.c: Strip chopping interfered badly with uncompressed
14402 subsampled images because it tried to divide subsampled rowblocks,
14403 leading to all sorts of errors throughout the library for these
14404 images. Fixed by making strip chopping divide in row counts that
14405 are a multiple of vertical subsampling value.
14406
14407 2007-09-28 Joris Van Damme <[email protected]>
14408
14409 * tif_dirread.c: Logical cast working around compiler warning
14410
14411 * tif_read.c: Correction of some error flags and parameter lists
14412
14413 2007-09-27 Joris Van Damme <[email protected]>
14414
14415 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust
14416 when dealing with large bitspersample values, shutting up purification
14417 tools that warn about truncation, though it remains incorrect and
14418 indicates a conceptual problem there.
14419
14420 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading
14421 of first IFD) to proper place because it badly interfered with memory
14422 mapping, resulting in mapping flag even with dummy mapping functions
14423 that returned 0 whilst at the same time the mapping tif_size wasn't
14424 set, thus resulting in continuous incorrect beyond-eof errors.
14425
14426 2007-09-24 Joris Van Damme <[email protected]>
14427
14428 * tif_dirinfo.c: Fixed (MSVC) compiler reports about
14429 inconsistent use of const in tiffFields and exifFields definition
14430
14431 2007-09-20 Frank Warmerdam <[email protected]>
14432
14433 * tif_dirwrite.c: Always write tile/strip offsets and sizes
14434 using LONG8 type when output format is BigTIFF. The
14435 TIFFWriteDirectoryTagLongLong8Array() function was restructured
14436 accordingly.
14437
14438 * tif_dirread.c: Improvements to error reporting text in
14439 TIFFFetchDirectory().
14440
14441 2007-09-19 Bob Friesenhahn <[email protected]>
14442
14443 * test/images: Added a small collection of test images for use by
14444 test programs and scripts.
14445 * test/tiffinfo.sh: A trivial example test script.
14446 * test/common.sh: Added small script for setting the environment
14447 used by script-based tests.
14448
14449 2007-08-24 Frank Warmerdam <[email protected]>
14450
14451 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
14452 zero when writing directory contents to preserve the ability to
14453 rewrite directories in place, even in the middle of a directory
14454 chain.
14455
14456 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field
14457 definitions that are missing. Existing definitions are silently
14458 ignored.
14459
14460 * tif_dirread.c: Add runtime error for fields for which no definition
14461 is found (in addition to an assert for developers) in
14462 TIFFFetchNormalTag(). Not sure if this is needed, but it seems
14463 prudent.
14464
14465 2007-08-10 Joris Van Damme <[email protected]>
14466
14467 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
14468 from _TIFFRGBAImage structure to revert unwanted ABI change.
14469
14470 2007-08-10 Joris Van Damme <[email protected]>
14471
14472 * libtiff/tif_win32.c: use SetFilePointer instead of
14473 SetFilePointerEx, as per bug
14474
14475 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
14476
14477 2007-07-19 Andrey Kiselev <[email protected]>
14478
14479 * libtiff/tif_stream.cxx: Put all callback functions declarations
14480 inside extern "C" block.
14481
14482 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
14483 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
14484 formatter instead of "%lld" with MSVC compiler.
14485
14486 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and
14487 _TIFFUInt64ToDouble() functions.
14488
14489 2007-07-18 Andrey Kiselev <[email protected]>
14490
14491 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
14492 integer constants.
14493
14494 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
14495 remove tif_config.h/tiffconf.h during cleaning. As per bug
14496
14497 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
14498
14499 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
14500
14501 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
14502
14503 2007-07-13 Andrey Kiselev <[email protected]>
14504
14505 * libtiff 4.0.0alpha released.
14506
14507 2007-07-12 Andrey Kiselev <[email protected]>
14508
14509 * tools/tiff2pdf.c: Added missed extern optind as per bug
14510
14511 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
14512
14513 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
14514 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
14515 extending scheme completed.
14516
14517 2007-07-11 Bob Friesenhahn <[email protected]>
14518
14519 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to
14520 use standard C++ library size types and attempt to detect overflow
14521 cases.
14522
14523 2007-07-08 Andrey Kiselev <[email protected]>
14524
14525 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
14526 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
14527 tag extending scheme. Use the new scheme everywhere.
14528
14529 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
14530 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
14531 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
14532 TIFFFIeldInfo structure replaced with TIFFField structure.
14533 TIFFFieldInfo retained for the backward compatibility.
14534
14535 2007-07-05 Bob Friesenhahn <[email protected]>
14536
14537 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
14538 defined.
14539
14540 2007-07-04 Andrey Kiselev <[email protected]>
14541
14542 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
14543 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
14544 removed.
14545
14546 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
14547 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
14548 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
14549 These tags are not codec-specific and relate to image content, so
14550 process them as other normal tags.
14551
14552 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
14553 public tiffio.h to private tif_dir.h.
14554
14555 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
14556 outdated.
14557
14558 2007-07-03 Andrey Kiselev <[email protected]>
14559
14560 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
14561 tif_win3.c}: Obsoleted portability stuff removed.
14562
14563 * tools/tiff2ps.c: Added support 16-bit images as per bug
14564
14565 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
14566
14567 Patch from William Bader.
14568
14569 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
14570 significant upgrade of the whole utility as per bug
14571
14572 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
14573
14574 Now we don't need tiffiop.h in tiff2pdf anymore and will open output
14575 PDF file using TIFFClientOpen() machinery as it is implemented
14576 by Leon Bottou.
14577
14578 2007-06-26 Bob Friesenhahn <[email protected]>
14579
14580 * configure.ac: Fix typo when substituting value for unsigned 8 bit type.
14581 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
14582 Added support for a TIFF_SSIZE_T in order to return memory sizes but still
14583 allow returning -1 for errors.
14584 * libtiff/tiffconf.vc.h: Add porting type definitions for WIN32.
14585
14586 2007-06-25 Bob Friesenhahn <[email protected]>
14587
14588 * port/strtoull.c: New porting function in case strtoull() is not
14589 available on the target system.
14590 * configure.ac: Add configure support for determining sized types
14591 in a portable way and performing necessary substitutions in
14592 tif_config.h and tiffconf.h. Updated tiff.h to use the new
14593 definitions.
14594
14595 2007-04-27 Andrey Kiselev <[email protected]>
14596
14597 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug
14598
14599 http://bugzilla.remotesensing.org/show_bug.cgi?id=154
14600
14601 2007-04-07 Andrey Kiselev <[email protected]>
14602
14603 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
14604 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
14605 tif_predict.c, tif_zip.c}: Finally fix bug
14606
14607 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
14608
14609 by introducing _TIFFMergeFieldInfo() returning integer error status
14610 instead of void in case of problems with field merging (e.g., if the
14611 field with such a tag already registered). TIFFMergeFieldInfo() in
14612 public API remains void. Use _TIFFMergeFieldInfo() everywhere and
14613 check returned value.
14614
14615 2007-04-07 Frank Warmerdam <[email protected]>
14616
14617 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
14618 blocks in TIFF_DownSample_Subsampled() (bug 1542).
14619
14620 2007-04-06 Frank Warmerdam <[email protected]>
14621
14622 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
14623 will convert from decompressor to compressor or compress to decompress
14624 if required by the force arguments. This works around a problem in
14625 where the JPEGFixupTestSubsampling() may cause a decompressor to
14626 be setup on a directory when later a compressor is required with the
14627 force flag set. Occurs with the addtiffo program for instance.
14628
14629 2007-04-06 Andrey Kiselev <[email protected]>
14630
14631 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in
14632 functionality from Richard Nolde. As per bug
14633
14634 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
14635
14636 2007-03-28 Frank Warmerdam <[email protected]>
14637
14638 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
14639
14640 2007-03-17 Joris Van Damme <[email protected]>
14641
14642 * start of BigTIFF upgrade - CVS HEAD unstable until further notice
14643
14644 2007-03-07 Joris Van Damme <[email protected]>
14645
14646 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
14647 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
14648 factor. This bug is mentioned in:
14649 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
14650 http://www.asmail.be/msg0054766825.html
14651
14652 2007-03-07 Joris Van Damme <[email protected]>
14653
14654 * libtiff/tif_win32.c: made inclusion of windows.h unconditional
14655
14656 * libtiff/tif_win32.c: replaced preprocessor indication for consiously
14657 unused arguments by standard C indication for the same
14658
14659 2007-02-27 Andrey Kiselev <[email protected]>
14660
14661 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
14662 counters in TIFFFetchData(). Should finally fix the issue
14663
14664 http://bugzilla.remotesensing.org/show_bug.cgi?id=890
14665
14666 2007-02-24 Andrey Kiselev <[email protected]>
14667
14668 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
14669 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
14670
14671 * libtiff/tif_dirread.c: Added special function to handle
14672 SubjectDistance EXIF tag as per bug
14673
14674 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
14675
14676 * tools/tiff2pdf.c: Do not assume inches when the resolution units
14677 do not specified. As per bug
14678
14679 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
14680
14681 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
14682 it was set as infinite. As per bug
14683
14684 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
14685
14686 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
14687 by Richard Nolde. As per bug
14688
14689 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
14690
14691 2007-02-22 Andrey Kiselev <[email protected]>
14692
14693 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with
14694 ExtraSamples == 999 produced by Corel Draw. As per bug
14695
14696 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
14697
14698 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
14699 changed from tsize_t to uint32 to be able to work with data arrays
14700 larger than 2GB. Fixes bug
14701
14702 http://bugzilla.remotesensing.org/show_bug.cgi?id=890
14703
14704 Idea submitted by Matt Hancher.
14705
14706 2007-01-31 Andrey Kiselev <[email protected]>
14707
14708 * tools/tif2rgba.c: This utility does not work properly on big-endian
14709 architectures. It was fixed including the bug
14710
14711 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
14712
14713 2007-01-15 Mateusz Loskot <[email protected]>
14714
14715 * Submitted libtiff port for Windows CE platform
14716 * libtiff/tif_config.wince.h: Added configuration header for WinCE.
14717 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
14718 * libtiff/tif_wince.c: Added WinCE-specific implementation of some
14719 functions from tif_win32.c.
14720 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
14721 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
14722 standard header files for Windows CE build.
14723 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
14724
14725 2006-11-19 Frank Warmerdam <[email protected]>
14726
14727 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
14728 we move a strip.
14729 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
14730
14731 2006-10-13 Andrey Kiselev <[email protected]>
14732
14733 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported
14734 in Gentoo bug ():
14735
14736 http://bugs.gentoo.org/show_bug.cgi?id=142383
14737
14738 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
14739 Though it is still far from the state of being working and useful.
14740
14741 2006-10-12 Andrey Kiselev <[email protected]>
14742
14743 * libtiff/tif_fax3.c: Save the state of printdir codec dependent
14744 method.
14745
14746 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
14747 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
14748
14749 * libtiff/tif_win32.c: Fixed problem with offset value manipulation
14750 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
14751
14752 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
14753 vulnerabilities, reported in Gentoo bug ():
14754
14755 http://bugs.gentoo.org/show_bug.cgi?id=142383
14756
14757 2006-09-28 Andrey Kiselev <[email protected]>
14758
14759 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
14760 vulnerabilities, as per Gentoo bug ():
14761
14762 http://bugs.gentoo.org/show_bug.cgi?id=142383
14763
14764 2006-09-27 Frank Warmerdam <[email protected]>
14765
14766 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
14767 encoding and decoding on the same read-write TIFF handle. The LZW
14768 code can now maintain encode and decode state at the same time. The
14769 ZIP code will switch back and forth as needed.
14770 http://bugzilla.remotesensing.org/show_bug.cgi?id=757
14771
14772 2006-09-20 Frank Warmerdam <[email protected]>
14773
14774 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
14775 tif_config.vc.h for easier identification by folks using an IDE.
14776
14777 2006-07-25 Frank Warmerdam <[email protected]>
14778
14779 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron
14780
14781 2006-07-19 Frank Warmerdam <[email protected]>
14782
14783 * tif_dirwrite.c: take care not to flush out buffer of strip/tile
14784 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates
14785 to bug report by Peng Gao with black strip at bottom of images.
14786
14787 2006-07-12 Frank Warmerdam <[email protected]>
14788
14789 * tif_dirwrite.c: make sure to use uint32 for wordcount in
14790 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
14791 It already seems to have been done for other field types. Needed
14792 for "tiffset" on files with geotiff ascii text.
14793
14794 2006-07-04 Bob Friesenhahn <[email protected]>
14795
14796 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
14797 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
14798 its use does not appear to be required, so use it only when it is
14799 available.
14800
14801 2006-06-24 Andrey Kiselev <[email protected]>
14802
14803 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
14804
14805 * libtiff/tif_dirread.c: Move IFD fetching code in the separate
14806 function TIFFFetchDirectory() avoiding code duplication in
14807 TIFFReadDirectory() and TIFFReadCustomDirectory().
14808
14809 2006-06-19 Frank Warmerdam <[email protected]>
14810
14811 * tools/tiff2pdf.c: Fix handling of -q values.
14812 http://bugzilla.remotesensing.org/show_bug.cgi?id=587
14813
14814 2006-06-17 Frank Warmerdam <[email protected]>
14815
14816 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
14817 files. Modified TIFFReadDirectory() to not invoke
14818 EstimateStripByteCounts() for case where entry 0 and 1 are unequal
14819 but one of them is zero.
14820 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
14821
14822 2006-06-08 Andrey Kiselev <[email protected]>
14823
14824 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
14825 checking code in the separate function TIFFCheckDirOffset().
14826
14827 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
14828
14829 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug
14830
14831 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
14832
14833 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
14834
14835 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
14836
14837 * tools/tiff2pdf.c: Fixed buffer overflow condition in
14838 t2p_write_pdf_string() as per bug
14839
14840 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
14841
14842 2006-06-07 Andrey Kiselev <[email protected]>
14843
14844 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
14845 support for JBIG compression scheme (34661 code) contributed by Lee
14846 Howard. As per bug
14847
14848 http://bugzilla.remotesensing.org/show_bug.cgi?id=896
14849
14850 * configure, configure.ac: OJPEG support enabled by default.
14851
14852 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
14853
14854 2006-06-03 Bob Friesenhahn <[email protected]>
14855
14856 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
14857 TIFFPrintDirectory(). Joris Van Damme authored the fix.
14858
14859 2006-04-21 Andrey Kiselev <[email protected]>
14860
14861 * tools/tiff2pdf.c: Unified line ending characters (always use '\n')
14862 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
14863
14864 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
14865 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
14866 Added support for OpenVMS by Alexey Chupahin, [email protected].
14867
14868 2006-04-20 Andrey Kiselev <[email protected]>
14869
14870 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
14871 Properly set the binary mode for stdin stream as per bug
14872 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
14873
14874 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
14875 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
14876 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1,
14877 tiffset.1}: Improvements in page formatting as per bug
14878 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
14879
14880 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
14881 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
14882
14883 2006-04-18 Frank Warmerdam <[email protected]>
14884
14885 * nmake.opt: use /EHsc for VS2005 compatibility. Also define
14886 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
14887
14888 2006-04-12 Joris Van Damme <[email protected]>
14889
14890 * libtiff/tif_getimage.c: Added support for planarconfig separate
14891 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
14892
14893 2006-04-11 Joris Van Damme <[email protected]>
14894
14895 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines
14896 - Conversion of unassociated alpha to associated alpha now done with
14897 more performant LUT, and calculation more correct
14898 - Conversion of 16bit data to 8bit data now done with
14899 more performant LUT, and calculation more correct
14900 - Bugfix of handling of 16bit RGB with unassociated alpha
14901
14902 2006-04-11 Joris Van Damme <[email protected]>
14903
14904 * libtiff/tif_getimage.c:
14905 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated
14906 buffer for alpha strile and filled it, only to never read it back.
14907 Removed allocation and fill.
14908 - Minor rename of vars in gtTileSeparate and gtStripSeparate
14909 anticipating planned functionality extension
14910
14911 2006-04-08 Joris Van Damme <[email protected]>
14912
14913 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
14914 and pickTileSeparateCase to PickSeparateCase as both work on strips as
14915 well
14916
14917 * libtiff/tif_getimage.c: moved img->get selection from
14918 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
14919 logical hook for planned functionality extension
14920
14921 2006-04-08 Joris Van Damme <[email protected]>
14922
14923 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
14924 of inappropriate use of jpeg_abort instead of jpeg_destroy
14925
14926 2006-04-07 Joris Van Damme <[email protected]>
14927
14928 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
14929 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
14930 on subsampled images - this ought to get sorted when we feel brave
14931 enough to replace TIFFScanlineSize altogether
14932
14933 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
14934
14935 2006-04-04 Joris Van Damme <[email protected]>
14936
14937 * libtiff/tiffio.h: added new type tstrile_t
14938
14939 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
14940 to new tstrile_t, types of td_stripoffset and td_stripbytecount to
14941 toff_t*
14942
14943 * libtiff/tif_ojpeg.c: totally new implementation
14944
14945 * libtiff/tif_dirread.c: added several hacks to suit new support of
14946 OJPEG
14947
14948 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
14949 of OJPEG images in favor of tif_getimage.c native handling of
14950 YCbCr and desubsampling
14951
14952 2006-03-29 Frank Warmerdam <[email protected]>
14953
14954 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
14955 interpretation causes the "upsampled" flag to be recomputed. Fixes
14956 peculiar bug where photometric flag had to be set before jpegcolormode
14957 flag.
14958
14959 2006-03-25 Joris Van Damme <[email protected]>
14960
14961 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw
14962
14963 * libtiff/tif_strip.c: temporarily added two new versions of
14964 TIFFScanlineSize
14965 - TIFFNewScanlineSize: proposed new version, after all related
14966 issues and side-effects are sorted out
14967 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
14968 This needs further sorting out.
14969
14970 2006-03-25 Joris Van Damme <[email protected]>
14971
14972 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
14973 of last truncated strip data to TIFFWriteEncodedStrip
14974
14975 2006-03-25 Joris Van Damme <[email protected]>
14976
14977 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
14978
14979 2006-03-25 Joris Van Damme <[email protected]>
14980
14981 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
14982
14983 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
14984
14985 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
14986 prepare the path for new tif_ojpeg.c
14987
14988 2006-03-23 Andrey Kiselev <[email protected]>
14989
14990 * libtiff 3.8.2 released.
14991
14992 * tools/Makefile.am: Use runtime paths linker flags when rpath
14993 option enabled.
14994
14995 2006-03-21 Andrey Kiselev <[email protected]>
14996
14997 * libtiff/libtiff.def: Added missed exports as per bug
14998 http://bugzilla.remotesensing.org/attachment.cgi?id=337
14999
15000 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
15001 tools/Makefile.vc: Makefiles improvements as per bug
15002 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
15003
15004 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
15005 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
15006 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
15007
15008 * libtiff/tif_strip.c: Take subsampling in account when calculating
15009 TIFFScanlineSize().
15010
15011 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
15012
15013 2006-03-17 Andrey Kiselev <[email protected]>
15014
15015 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
15016 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
15017
15018 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
15019 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
15020
15021 2006-03-16 Andrey Kiselev <[email protected]>
15022
15023 * libtiff/tiffiop.h: Added declaration for
15024 _TIFFSetDefaultCompressionState().
15025
15026 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
15027 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
15028 codec cleanup methods. As per bug
15029
15030 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
15031
15032 2006-03-15 Andrey Kiselev <[email protected]>
15033
15034 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
15035 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
15036
15037 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
15038 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
15039
15040 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
15041 removed; move here the STRIP_SIZE_DEFAULT macro definition.
15042
15043 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
15044 macro definition.
15045
15046 * libtiff/tif_dir.c: Use double type instead of dblparam_t.
15047
15048 2006-03-14 Andrey Kiselev <[email protected]>
15049
15050 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
15051 in TIFFReadDirectory, because it is always set at the start of
15052 function and we allow TIFFs without that tag set.
15053
15054 2005-03-13 Andrey Kiselev <[email protected]>
15055
15056 * libtiff 3.8.1 released.
15057
15058 2006-03-07 Andrey Kiselev <[email protected]>
15059
15060 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
15061 function as per bug
15062 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
15063
15064 * libtiff/tif_dirread.c: More wise check for integer overflow
15065 condition as per bug
15066 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
15067
15068 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
15069 Properly restore setfield/getfield methods in cleanup functions. As
15070 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
15071
15072 2006-03-03 Andrey Kiselev <[email protected]>
15073
15074 * libtiff/{tif_predict.c, tif_predict.h}: Added new function
15075 TIFFPredictorCleanup() to restore parent decode/encode/field methods.
15076
15077 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
15078 TIFFPredictorCleanup() in codec cleanup methods. As per bug
15079
15080 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
15081
15082 * libtiff/tif_dirread.c: Fixed integer overflow condition in
15083 TIFFFetchData() function. As per bug
15084
15085 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
15086
15087 2006-03-01 Andrey Kiselev <[email protected]>
15088
15089 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
15090 TIFFSetField() method, not directly. As per bug
15091
15092 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
15093
15094 * tools/ppm2tiff.c: Added support for PBM files as per bug
15095 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
15096
15097 2006-02-27 Andrey Kiselev <[email protected]>
15098
15099 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
15100 to avoid crash as per bug
15101
15102 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
15103
15104 2006-02-26 Andrey Kiselev <[email protected]>
15105
15106 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
15107 t2p_sample_rgba_to_rgb() was used in place of each other, that was
15108 resulted in problems with RGBA images with associated alpha.
15109 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
15110
15111 2006-02-23 Andrey Kiselev <[email protected]>
15112
15113 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
15114 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
15115
15116 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
15117 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
15118 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
15119
15120 * tools/tiff2ps.c: Properly scale all the pages when converting
15121 multipage TIFF with /width/height/center options set. As per bug
15122
15123 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
15124
15125 2006-02-15 Andrey Kiselev <[email protected]>
15126
15127 * tools/tiff2pdf.c: Do not create output file until all option checks
15128 will be done. As per bug
15129
15130 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
15131
15132 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
15133 list of input files as per bug:
15134
15135 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
15136
15137 2006-02-09 Andrey Kiselev <[email protected]>
15138
15139 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
15140 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
15141
15142 * tools/tiffgt.c: Avoid crashing in case of image unsupported by
15143 TIFFRGBAImage interface.
15144
15145 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per
15146 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
15147
15148 2006-02-07 Frank Warmerdam <[email protected]>
15149
15150 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
15151 compressed TIFF files, per submission from Dan Cobra.
15152
15153 2006-02-07 Andrey Kiselev <[email protected]>
15154
15155 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
15156 cast values to avoid warnings. As per bug
15157 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
15158
15159 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
15160 appropriate. As per bug
15161 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
15162
15163 * libtiff/tif_aux.c: Fixed type of temporary variable in
15164 _TIFFCheckMalloc() as per bug
15165 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
15166
15167 2006-02-06 Andrey Kiselev <[email protected]>
15168
15169 * libtiff/tif_aux.c: Return static array when fetching default
15170 YCbCrCoefficients (another problem, reported a the
15171 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
15172
15173 2006-02-03 Andrey Kiselev <[email protected]>
15174
15175 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
15176 YCbCrSubsampling and DotRange tags as per bugs
15177
15178 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
15179 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
15180
15181 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
15182 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
15183
15184 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
15185
15186 2006-01-23 Andrey Kiselev <[email protected]>
15187
15188 * libtool related stuff updated from the 2.1a branch.
15189
15190 2006-01-11 Frank Warmerdam <[email protected]>
15191
15192 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
15193 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
15194 properly as per bug:
15195 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
15196
15197 2006-01-09 Bob Friesenhahn <[email protected]>
15198
15199 * configure.ac: Fix with_default_strip_size comparison as reported
15200 by Norihiko Murase.
15201
15202 2006-01-08 Bob Friesenhahn <[email protected]>
15203
15204 * test/Makefile.am (LIBTIFF): Due to linking against libtiff
15205 incorrectly, tests were not actually testing the uninstalled
15206 libtiff. Now they are.
15207
15208 2006-01-04 Andrey Kiselev <[email protected]>
15209
15210 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
15211 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
15212 should be uint32 value.
15213
15214 2006-01-02 Bob Friesenhahn <[email protected]>
15215
15216 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
15217 be used if build directory is not the same as source directory.
15218 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
15219 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
15220 and re-sorted tag names in alphabetical order.
15221
15222 2005-12-29 Andrey Kiselev <[email protected]>
15223
15224 * libtiff 3.8.0 released.
15225
15226 2005-12-28 Bob Friesenhahn <[email protected]>
15227
15228 * tools/bmp2tiff.c (main): Fixed warning regarding returning
15229 inconsistent types from a condition.
15230 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
15231 format.
15232 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
15233
15234 2005-12-28 Joris Van Damme <[email protected]>
15235
15236 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
15237
15238 2005-12-27 Andrey Kiselev <[email protected]>
15239
15240 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
15241 windows.h, to reduce the compile time.
15242
15243 2005-12-26 Bob Friesenhahn <[email protected]>
15244
15245 * libtiff/tif_jpeg.c: Improve compilation under MinGW.
15246
15247 2005-12-26 Andrey Kiselev <[email protected]>
15248
15249 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
15250 tiffFieldInfo and exifFieldInfo arrays definitions moved back to
15251 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
15252 private functions to retrieve FieldInfo arrays.
15253
15254 2005-12-24 Bob Friesenhahn <[email protected]>
15255
15256 * html/build.html: Added some additional instructions for when
15257 building using MSVC under Windows. Also fixed two HTML syntax
15258 errors and used HTML Tidy to tidy up the HTML syntax and
15259 formatting.
15260
15261 2005-12-24 Andrey Kiselev <[email protected]>
15262
15263 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
15264 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
15265 StoNits tags custom.
15266
15267 2005-12-23 Andrey Kiselev <[email protected]>
15268
15269 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
15270 WhitePoint tag custom.
15271
15272 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
15273
15274 2005-12-23 Joris Van Damme <[email protected]>
15275
15276 * libtiff/tiffio.h: fixed typo that potentially resulted in
15277 redefininition of USE_WIN32_FILEIO
15278
15279 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
15280 calls in core LibTiff.
15281
15282 2005-12-21 Andrey Kiselev <[email protected]>
15283
15284 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
15285 Photoshop and ICCProfile tags custom.
15286
15287 2005-12-21 Joris Van Damme <[email protected]>
15288
15289 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
15290 newer code to get context indicator in error handler and still
15291 remain compatible with older code: Done TIFFError calls everywhere
15292 except in tools
15293
15294 2005-12-20 Andrey Kiselev <[email protected]>
15295
15296 * tools/tiffcp.c: Added many error reporting messages; fixed integer
15297 overflow as per bug
15298
15299 http://bugzilla.remotesensing.org/show_bug.cgi?id=789
15300
15301 2005-12-16 Frank Warmerdam <[email protected]>
15302
15303 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled
15304 YCbCr images in jpeg compressed TIFF files.
15305
15306 2005-12-14 Andrey Kiselev <[email protected]>
15307
15308 * tools/tiffcp.c: Return non-zero status when reading fails (again).
15309
15310 2005-12-13 Andrey Kiselev <[email protected]>
15311
15312 * tools/tiffcp.c: Return non-zero status when reading fails.
15313
15314 2005-12-12 Andrey Kiselev <[email protected]>
15315
15316 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
15317
15318 2005-12-09 Andrey Kiselev <[email protected]>
15319
15320 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
15321 custom.
15322
15323 * tools/tiffinfo.c: Print EXIF directory contents if exist.
15324
15325 * libtiff/tiff.h: Few EXIF tag numbers added.
15326
15327 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
15328 tiffio.h}: Preliminary support to read custom directories. New
15329 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
15330
15331 2005-12-07 Andrey Kiselev <[email protected]>
15332
15333 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
15334 More work to implement custom directory read support.
15335
15336 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
15337 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
15338 tags custom.
15339
15340 2005-12-05 Andrey Kiselev <[email protected]>
15341
15342 * libtiff/tif_dirread.c: One more workaround for broken
15343 StripByteCounts tag. Handle the case when StripByteCounts array filled
15344 with completely wrong values.
15345
15346 2005-11-30 Andrey Kiselev <[email protected]>
15347
15348 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure
15349 in the TIFFOpenW() function as per bug
15350
15351 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
15352
15353 * libtiff/tif_dirinfo.c: Correctly use bsearch() and lfind()
15354 functions as per bug
15355
15356 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
15357
15358 2005-11-20 Frank Warmerdam <[email protected]>
15359
15360 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
15361 for MS MDI format.
15362 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
15363
15364 * .cvsignore: many files added, and a few update according
15365 to suggestion of Brad HArds on tiff mailing list.
15366
15367 2005-11-03 Frank Warmerdam <[email protected]>
15368
15369 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
15370 public.
15371
15372 2005-10-31 Andrey Kiselev <[email protected]>
15373
15374 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays
15375 as per bug
15376
15377 http://bugzilla.remotesensing.org/show_bug.cgi?id=943
15378
15379 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
15380 as per bug
15381
15382 http://bugzilla.remotesensing.org/show_bug.cgi?id=944
15383
15384 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
15385 problem as per bug
15386
15387 http://bugzilla.remotesensing.org/show_bug.cgi?id=946
15388
15389 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
15390
15391 http://bugzilla.remotesensing.org/show_bug.cgi?id=965
15392
15393 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and
15394 ResolutionUnit tags modifiable during write process. As per bug
15395
15396 http://bugzilla.remotesensing.org/show_bug.cgi?id=977
15397
15398 * tools/tiffsplit.c: Copy fax related fields over split parts
15399 as per bug
15400
15401 http://bugzilla.remotesensing.org/show_bug.cgi?id=983
15402
15403 2005-10-21 Frank Warmerdam <[email protected]>
15404
15405 * tif_dirread.c: Don't try and split single strips into "0" strips
15406 in ChopUpSingleUncompressedStrip. This happens in some degenerate
15407 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
15408
15409 2005-10-20 Joris Van Damme <[email protected]>
15410
15411 * tif_fax3.c: changed 'at scanline ...' style warning/errors
15412 with incorrect use of tif_row, to 'at line ... of
15413 strip/tile ...' style
15414
15415 2005-10-15 Frank Warmerdam <[email protected]>
15416
15417 * tif_write.c: fixed setting of planarconfig as per bug report
15418 on the mailing list from Joris.
15419
15420 2005-10-07 Andrey Kiselev <[email protected]>
15421
15422 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
15423 tif_dirread.c}: Make the default strip size configurable via the
15424 --with-default-strip-size and STRIP_SIZE_DEFAULT options.
15425
15426 2005-09-30 Bob Friesenhahn <[email protected]>
15427
15428 * html/support.html: Fixed link to documentation on Greg Ward's
15429 LogLuv TIFF format.
15430
15431 2005-09-28 Andrey Kiselev <[email protected]>
15432
15433 * tools/tiffdump.c: Fixed crash when reading malformed tags.
15434
15435 2005-09-20 Andrey Kiselev <[email protected]>
15436
15437 * tools/tiff2pdf.c: Added missed 'break' statement as per bug
15438 http://bugzilla.remotesensing.org/show_bug.cgi?id=932
15439
15440 2005-09-12 Andrey Kiselev <[email protected]>
15441
15442 * libtiff 3.7.4 released.
15443
15444 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
15445 from Patrick Welche (all scripts moved in the 'config' and 'm4'
15446 directories).
15447
15448 2005-09-12 Frank Warmerdam <[email protected]>
15449
15450 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
15451
15452 2005-09-05 Frank Warmerdam <[email protected]>
15453
15454 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
15455 also set it to NULL to avoid double free when re-setting custom
15456 string fields as per:
15457
15458 http://bugzilla.remotesensing.org/show_bug.cgi?id=922
15459
15460 2005-08-12 Frank Warmerdam <[email protected]>
15461
15462 * libtiff/tif_print.c: avoid signed/unsigned warning.
15463
15464 * libtiff/tif_dirread.c: removed unused variable.
15465
15466 2005-07-30 Frank Warmerdam <[email protected]>
15467
15468 * libtiff/tif_dir.c: Fixed up support for swapping "double complex"
15469 values (128 bits as 2 64 bits doubles). GDAL gcore tests now
15470 pass on bigendian (macosx) system.
15471
15472 2005-07-28 Andrey Kiselev <[email protected]>
15473
15474 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
15475 CheckMalloc() function to _TIFFCheckMalloc() and make it available
15476 globally as an internal helper routine.
15477
15478 2005-07-27 Andrey Kiselev <[email protected]>
15479
15480 * libtiff/tif_dir.c: More improvements in the "pass by value" part of
15481 the custom tags handling code.
15482
15483 2005-07-26 Andrey Kiselev <[email protected]>
15484
15485 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
15486 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
15487 function, use TIFFFetchNormalTag() instead as per bug
15488
15489 http://bugzilla.remotesensing.org/show_bug.cgi?id=831
15490
15491 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
15492 instead.
15493
15494 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
15495
15496 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
15497
15498 2005-07-25 Andrey Kiselev <[email protected]>
15499
15500 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
15501
15502 * tools/tiffdump.c: Added support for TIFF_IFD datatype.
15503
15504 2005-07-21 Andrey Kiselev <[email protected]>
15505
15506 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in
15507 the TIFFWriteCheck() function in case of single band images (as per
15508 TIFF spec).
15509
15510 2005-07-12 Andrey Kiselev <[email protected]>
15511
15512 * SConstruct, libtiff/SConstruct: Added the first very preliminary
15513 support for SCons software building tool (http://www.scons.org/).
15514 This is experimental infrastructure and it will exist along with the
15515 autotools mechanics.
15516
15517 2005-07-07 Andrey Kiselev <[email protected]>
15518
15519 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
15520 the NetBSD source tree (the old 4-clause BSD license changed to
15521 the new 3-clause one).
15522
15523 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
15524 replacement module.
15525
15526 * port/dummy.c: Make the dummy function static.
15527
15528 2005-07-06 Andrey Kiselev <[email protected]>
15529
15530 * tools/tiffcp.c: Fixed WhitePoint tag copying.
15531
15532 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
15533 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
15534 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
15535
15536 2005-07-04 Andrey Kiselev <[email protected]>
15537
15538 * libtiff 3.7.3 released.
15539
15540 * configure, configure.ac: Do not use empty -R option when linking
15541 with --enable-rpath.
15542
15543 2005-07-01 Andrey Kiselev <[email protected]>
15544
15545 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
15546 reading the first IFD when needed. As per bug
15547
15548 http://bugzilla.remotesensing.org/show_bug.cgi?id=875
15549
15550 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
15551 effects.
15552
15553 2005-06-23 Andrey Kiselev <[email protected]>
15554
15555 * tools/tiff2pdf.c: Print two characters per loop in the
15556 t2p_write_pdf_trailer(). As per bug
15557
15558 http://bugzilla.remotesensing.org/show_bug.cgi?id=594
15559
15560 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
15561 per bug
15562
15563 http://bugzilla.remotesensing.org/show_bug.cgi?id=844
15564
15565 * acinclude.m4: Updated to latest OpenGL test macros versions.
15566
15567 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
15568 platform. As per bug
15569
15570 http://bugzilla.remotesensing.org/show_bug.cgi?id=855
15571
15572 2005-06-14 Andrey Kiselev <[email protected]>
15573
15574 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
15575 and YClipPathUnits tags.
15576
15577 2005-06-07 Andrey Kiselev <[email protected]>
15578
15579 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
15580 use pixel sized shift in contiguous case.
15581
15582 2005-06-06 Andrey Kiselev <[email protected]>
15583
15584 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
15585 Make overviews working for contiguous images.
15586
15587 2005-06-03 Andrey Kiselev <[email protected]>
15588
15589 * libtiff/tif_open.c: Replace runtime endianness check with the compile
15590 time one.
15591
15592 * libtiff/tif_predict.c: Floating point predictor now works on
15593 big-endian hosts.
15594
15595 2005-06-01 Andrey Kiselev <[email protected]>
15596
15597 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
15598 ASCII values.
15599
15600 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
15601 DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
15602 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
15603 TargetPrinter tags custom.
15604
15605 * libtiff/tif_jpeg.c: Cleanup the codec state depending on
15606 TIFF_CODERSETUP flag (to fix memry leaks).
15607
15608 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
15609 allocating.
15610
15611 2005-05-26 Andrey Kiselev <[email protected]>
15612
15613 * configure.ac, libtiff/Makefile.am: Added workaround for
15614 OpenBSD/MirOS soname problem as per bug
15615
15616 http://bugzilla.remotesensing.org/show_bug.cgi?id=838
15617
15618 * libtiff/tif_dirwrite.c: Use tdir_count when calling
15619 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
15620 per bug
15621
15622 http://bugzilla.remotesensing.org/show_bug.cgi?id=845
15623
15624 2005-05-25 Andrey Kiselev <[email protected]>
15625
15626 * tools/ppm2tiff.c: Fixed format string when read PPM file header with
15627 the fscanf() function. As per bug
15628
15629 http://bugzilla.remotesensing.org/show_bug.cgi?id=861
15630
15631 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
15632 uint16 array when fetching the BYTE and SBYTE filds, so we should
15633 consider result as pointer to uint16 array and not as array of chars.
15634 As per bug
15635
15636 http://bugzilla.remotesensing.org/show_bug.cgi?id=831
15637
15638 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
15639
15640 http://bugzilla.remotesensing.org/show_bug.cgi?id=830
15641
15642 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
15643 mode in CreateFile() call as per bug
15644
15645 http://bugzilla.remotesensing.org/show_bug.cgi?id=829
15646
15647 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
15648 libtiffxx libraries as per bug
15649
15650 http://bugzilla.remotesensing.org/show_bug.cgi?id=826
15651
15652 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
15653 GDAL.
15654
15655 2005-05-23 Frank Warmerdam <[email protected]>
15656
15657 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
15658 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables
15659 in directory.
15660
15661 2005-05-22 Frank Warmerdam <[email protected]>
15662
15663 * libtiff/tif_dirread.c: Changed the code that computes
15664 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
15665 zero. This is a common case with GDAL indicating a "null" tile/strip.
15666
15667 2005-05-17 Andrey Kiselev <[email protected]>
15668
15669 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
15670
15671 2005-05-06 Frank Warmerdam <[email protected]>
15672
15673 * libtiff/tif_dirread.c: Applied similar change to
15674 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
15675
15676 http://bugzilla.remotesensing.org/show_bug.cgi?id=843
15677
15678 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
15679
15680 2005-05-06 Andrey Kiselev <[email protected]>
15681 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
15682 added new option '-b' to use interpolation in output PDF files (Bruno
15683 Ledoux).
15684
15685 2005-05-05 Frank Warmerdam <[email protected]>
15686
15687 * libtiff/tif_dirread.c: Ensure that broken files with too many
15688 values in PerSampleShorts work ok instead of crashing.
15689
15690 http://bugzilla.remotesensing.org/show_bug.cgi?id=843
15691
15692 2005-04-27 Andrey Kiselev <[email protected]>
15693
15694 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
15695 input file.
15696
15697 2005-04-15 Andrey Kiselev <[email protected]>
15698
15699 * libtiff/tif_predict.c: Added ability to encode floating point
15700 predictor, as per TIFF Technical Note 3.
15701
15702 2005-04-14 Andrey Kiselev <[email protected]>
15703
15704 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
15705 floating point predictor, as per TIFF Technical Note 3.
15706
15707 2005-04-13 Andrey Kiselev <[email protected]>
15708
15709 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
15710 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
15711 swap 24-bit floating point values.
15712
15713 * libtiff/tiff.h: Added predictor constants.
15714
15715 2005-04-08 Andrey Kiselev <[email protected]>
15716
15717 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
15718 values in _TIFFVSetField() function. Inspired by the bug
15719
15720 http://bugzilla.remotesensing.org/show_bug.cgi?id=816
15721
15722 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
15723 as per bug
15724
15725 http://bugzilla.remotesensing.org/show_bug.cgi?id=816
15726
15727 2005-03-30 Andrey Kiselev <[email protected]>
15728
15729 * libtiff/tif_open.c: Do not read header in case the output file
15730 should be truncated (Ron).
15731
15732 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
15733 of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
15734
15735 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
15736
15737 2005-03-22 Andrey Kiselev <[email protected]>
15738
15739 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
15740 rpath option.
15741
15742 2005-03-21 Andrey Kiselev <[email protected]>
15743
15744 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
15745 tags.
15746
15747 2005-03-18 Andrey Kiselev <[email protected]>
15748
15749 * libtiff/dirinfo.c: Added DNG tags.
15750
15751 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
15752 handling code.
15753
15754 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
15755 added DNG 1.1.0.0 tags.
15756
15757 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per
15758 bug
15759
15760 http://bugzilla.remotesensing.org/show_bug.cgi?id=794
15761
15762 * man/TIFFGetField.3tiff: Add a note about autoregistered tags.
15763
15764 2005-03-17 Andrey Kiselev <[email protected]>
15765
15766 * nmake.opt: Build with Win32 CRT library by default.
15767
15768 * tools/tiff2ps.c: Fixed typo in page size handling code.
15769
15770 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
15771 by value.
15772
15773 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
15774
15775 2005-03-15 Andrey Kiselev <[email protected]>
15776
15777 * libtiff 3.7.2 released.
15778
15779 2005-03-09 Andrey Kiselev <[email protected]>
15780
15781 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and
15782 floating point data; complain on unsupported bit depths.
15783
15784 2005-03-05 Andrey Kiselev <[email protected]>
15785
15786 * tif_stream.cxx: Use ios namespace instead of ios_base to support
15787 GCC 2.95.
15788
15789 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
15790 Lee Howard for HylaFax DCS tag
15791 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
15792
15793 2005-03-04 Andrey Kiselev <[email protected]>
15794
15795 * configure, configure.ac: Use -rpath option instead of -R as per bug
15796
15797 http://bugzilla.remotesensing.org/show_bug.cgi?id=732
15798
15799 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
15800 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
15801 software. As per bug
15802
15803 http://bugzilla.remotesensing.org/show_bug.cgi?id=771
15804
15805 * nmake.opt, html/build.html: Add more comments, change the config
15806 file organization a bit as per bug
15807
15808 http://bugzilla.remotesensing.org/show_bug.cgi?id=764
15809
15810 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
15811 as per bug
15812
15813 http://bugzilla.remotesensing.org/show_bug.cgi?id=785
15814
15815 2005-03-03 Andrey Kiselev <[email protected]>
15816
15817 * libtiff/tif_dirread.c: More logic to guess missed strip size as per
15818 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
15819
15820 * tools/fax2ps.c: Replace insecure mktemp() function with the
15821 tmpfile() as per bug
15822
15823 http://bugzilla.remotesensing.org/show_bug.cgi?id=786
15824
15825 2005-02-04 Andrey Kiselev <[email protected]>
15826
15827 * libtiff/tiff.h: Changed the int8 definition to be always signed char
15828 as per bug
15829
15830 http://bugzilla.remotesensing.org/show_bug.cgi?id=727
15831
15832 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
15833 block as per bug
15834
15835 http://bugzilla.remotesensing.org/show_bug.cgi?id=763
15836
15837 2005-02-03 Bob Friesenhahn <[email protected]>
15838
15839 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images
15840 display more correctly. Images display brighter than they should
15841 on a Sun workstation.
15842
15843 2005-02-03 Andrey Kiselev <[email protected]>
15844
15845 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or
15846 suspicious values in the tags. As per bugs
15847
15848 http://bugzilla.remotesensing.org/show_bug.cgi?id=705
15849
15850 and
15851
15852 http://bugzilla.remotesensing.org/show_bug.cgi?id=320
15853
15854 * tools/tiff2ps.c: Fixed problem with page sizes as per bug
15855
15856 http://bugzilla.remotesensing.org/show_bug.cgi?id=742
15857
15858 2005-01-31 Bob Friesenhahn <[email protected]>
15859
15860 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
15861 (TIFFTAG_TILELENGTH): Corrected description.
15862
15863 2005-01-30 Andrey Kiselev <[email protected]>
15864
15865 * configure.ac: Fixes for --with-docdir option as per bug
15866
15867 http://bugzilla.remotesensing.org/show_bug.cgi?id=759
15868
15869 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
15870 bug
15871
15872 http://bugzilla.remotesensing.org/show_bug.cgi?id=756
15873
15874 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from
15875 Michael Rinne and Edward Lam.
15876
15877 2005-01-15 Andrey Kiselev <[email protected]>
15878
15879 * configure.ac: Make the documentation directory location configurable
15880 via the --with-docdir option (as suggested by Jeremy C. Reed).
15881
15882 * libtiff/tif_color.c: Use double as the second argument of pow()
15883 function in TIFFCIELabToRGBInit(). As per bug
15884
15885 http://bugzilla.remotesensing.org/show_bug.cgi?id=741
15886
15887 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to
15888 integer as per bug
15889
15890 http://bugzilla.remotesensing.org/show_bug.cgi?id=740
15891
15892 * libtiff/tif_getimage.c: Always fill the error message buffer in
15893 TIFFRGBAImageBegin() as per bug
15894
15895 http://bugzilla.remotesensing.org/show_bug.cgi?id=739
15896
15897 2005-01-12 Andrey Kiselev <[email protected]>
15898
15899 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific
15900 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
15901 tags as per bug
15902
15903 http://bugzilla.remotesensing.org/show_bug.cgi?id=736
15904
15905 * libtiff/tif_win32.c: Fixed message formatting in functions
15906 Win32WarningHandler() and Win32ErrorHandler() as per bug
15907
15908 http://bugzilla.remotesensing.org/show_bug.cgi?id=735
15909
15910 * tools/tiff2ps.c: Interpret the -w and -h options independently. As
15911 per bug
15912
15913 http://bugzilla.remotesensing.org/show_bug.cgi?id=689
15914
15915 2005-01-11 Andrey Kiselev <[email protected]>
15916
15917 * libtiff/tiffio.h: Move the color conversion routines in the 'extern
15918 "C"' section as per bug
15919
15920 http://bugzilla.remotesensing.org/show_bug.cgi?id=727
15921
15922 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
15923 compiler to avoid double definition of BSD types as per bug
15924
15925 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
15926
15927 * libtiff/Makefile.am: Place the C++ stream API in the separate
15928 library called libtiffxx to avoid unneeded dependencies. Probably
15929 there will be more C++ API in the future. As per bugs
15930
15931 http://bugzilla.remotesensing.org/show_bug.cgi?id=733
15932
15933 and
15934
15935 http://bugzilla.remotesensing.org/show_bug.cgi?id=730
15936
15937 2005-01-05 Andrey Kiselev <[email protected]>
15938
15939 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the
15940 wrong tag counts (Dmitry V. Levin, Martin Pitt).
15941
15942 * configure.ac: Replace --disable-c++ with the --disable-cxx option as
15943 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
15944
15945 2004-12-25 Andrey Kiselev <[email protected]>
15946
15947 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
15948 RGB-images as per bug
15949
15950 http://bugzilla.remotesensing.org/show_bug.cgi?id=713
15951
15952
15953 * tools/tiffset.c: Convert character option to integer value as per
15954 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
15955
15956 2004-12-20 Andrey Kiselev <[email protected]>
15957
15958 * libtiff 3.7.1 released.
15959
15960 * html/tiffset.1.html: Add missed manual page as per bug
15961
15962 http://bugzilla.remotesensing.org/show_bug.cgi?id=678
15963
15964 * libtiff/tiff.h: Revert back libtiff data type definitions as per
15965 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
15966
15967 2004-12-19 Andrey Kiselev <[email protected]>
15968
15969 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
15970 checking for tag count in TIFFReadDirectory() function. As per bug
15971
15972 http://bugzilla.remotesensing.org/show_bug.cgi?id=713
15973
15974 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
15975 CheckMallock() function.
15976
15977 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled
15978 RGB-images as per bug
15979
15980 http://bugzilla.remotesensing.org/show_bug.cgi?id=718
15981
15982 2004-12-15 Frank Warmerdam <[email protected]>
15983
15984 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on
15985 SunPro compiler.
15986
15987 2004-12-11 Bob Friesenhahn <[email protected]>
15988
15989 * autogen.sh: aclocal and autoheader should be executed after
15990 libtoolize. Also add '-I .' to aclocal invocation to check
15991 current directory for macros.
15992
15993 2004-12-10 Andrey Kiselev <[email protected]>
15994
15995 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
15996 as per bugs
15997
15998 http://bugzilla.remotesensing.org/show_bug.cgi?id=703
15999
16000 and
16001
16002 http://bugzilla.remotesensing.org/show_bug.cgi?id=704
16003
16004 2004-12-04 Andrey Kiselev <[email protected]>
16005
16006 * nmake.opt: Link with the user32.lib in windowed mode. As per bug
16007
16008 http://bugzilla.remotesensing.org/show_bug.cgi?id=697
16009
16010 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
16011 mode as per bug
16012
16013 http://bugzilla.remotesensing.org/show_bug.cgi?id=697
16014
16015 * libtiff/tif_config.in.vc: Removed unneeded definitions for
16016 read/open/close/lseek functions to fix the
16017
16018 http://bugzilla.remotesensing.org/show_bug.cgi?id=680
16019
16020 2004-12-03 Andrey Kiselev <[email protected]>
16021
16022 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
16023 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
16024 must be removed in the future, as it was never used properly. As per
16025 bug
16026
16027 http://bugzilla.remotesensing.org/show_bug.cgi?id=692
16028
16029 2004-11-30 Bob Friesenhahn <[email protected]>
16030
16031 * libtiff/tif_jpeg.c: Added a work-around in order to allow
16032 compilation with the heavily modified version of libjpeg delivered
16033 with Cygwin.
16034
16035 2004-11-29 Andrey Kiselev <[email protected]>
16036
16037 * libtiff/tif_dir.c: Properly handle tags, which have the uint32
16038 counts. As per bug
16039
16040 http://bugzilla.remotesensing.org/show_bug.cgi?id=693
16041
16042 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug
16043
16044 http://bugzilla.remotesensing.org/show_bug.cgi?id=690
16045
16046 2004-11-28 Andrey Kiselev <[email protected]>
16047
16048 * libtiff/tif_unix.c: Make UNIX module compilable (and usable)
16049 on Windows.
16050
16051 * nmake.opt: Add missed DLLNAME variable.
16052
16053 2004-11-26 Frank Warmerdam <[email protected]>
16054
16055 * libtiff/makefile.vc: make it easier to rename the libtiff DLL.
16056
16057 2004-11-24 Andrey Kiselev <[email protected]>
16058
16059 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
16060 per bug
16061
16062 http://bugzilla.remotesensing.org/show_bug.cgi?id=545
16063
16064 * man/tiffset.1: Added manual page for tiffset tool written by Jay
16065 Berkenbilt. As per bug
16066
16067 http://bugzilla.remotesensing.org/show_bug.cgi?id=678
16068
16069 2004-11-23 Frank Warmerdam <[email protected]>
16070
16071 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
16072
16073 2004-11-21 Frank Warmerdam <[email protected]>
16074
16075 * html/document.html: Updated Adobe web links as per email from Joris.
16076
16077 2004-11-21 Andrey Kiselev <[email protected]>
16078
16079 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
16080 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
16081 use C++ streams should #include <tiffio.hxx>.
16082
16083 2004-11-13 Andrey Kiselev <[email protected]>
16084
16085 * libtiff/tiff.h: Added Adobe DNG tags.
16086
16087 * libtiff/tif_win32.c: Typo fixed.
16088
16089 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
16090 be compliant with the latest standard. Appropriate additions in
16091 makefiles now completed.
16092
16093 2004-11-11 Andrey Kiselev <[email protected]>
16094
16095 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
16096 different tag types. As per bug
16097
16098 http://bugzilla.remotesensing.org/show_bug.cgi?id=600
16099
16100 2004-11-10 Andrey Kiselev <[email protected]>
16101
16102 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
16103 YCbCr image which lacks that tag (noted by Hans Petter Selasky).
16104
16105 2004-11-09 Andrey Kiselev <[email protected]>
16106
16107 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
16108
16109 2004-11-07 Andrey Kiselev <[email protected]>
16110
16111 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
16112 contributed by Edward Lam (see
16113 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
16114 Though no changes in any makefiles yet.
16115
16116 2004-11-05 Frank Warmerdam <[email protected]>
16117
16118 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
16119 is bad. This is the callers responsibility.
16120 http://bugzilla.remotesensing.org/show_bug.cgi?id=651
16121
16122 2004-11-05 Andrey Kiselev <[email protected]>
16123
16124 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
16125 function to work with the double byte strings (used to represent
16126 filenames in some locales). As per bug
16127
16128 http://bugzilla.remotesensing.org/show_bug.cgi?id=625
16129
16130 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
16131 Compression tags of type LONG from broken TIFFS as per bug
16132
16133 http://bugzilla.remotesensing.org/show_bug.cgi?id=662
16134
16135 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
16136 the writecount should have uint32 type. As per bug
16137
16138 http://bugzilla.remotesensing.org/show_bug.cgi?id=662
16139
16140 * libtiff/tif_write.c: Fixed wrong if() statement in
16141 TIFFAppendToStrip() function as per bug
16142
16143 http://bugzilla.remotesensing.org/show_bug.cgi?id=660
16144
16145 2004-11-04 Andrey Kiselev <[email protected]>
16146
16147 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
16148 field. The caller should supply a count when setting this field. As
16149 per bug
16150
16151 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
16152
16153 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
16154 uint32 count. Use this type everywhere.
16155
16156 2004-11-03 Frank Warmerdam <[email protected]>
16157
16158 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653.
16159
16160 2004-11-02 Frank Warmerdam <[email protected]>
16161
16162 * tools/tiff2rgba.c: removed extra newlines in usage message.
16163
16164 2004-10-30 Andrey Kiselev <[email protected]>
16165
16166 * libtiff/tif_dirwrite.c: Improvements in tag writing code.
16167
16168 * tools/tiff2ps.c: Fixed wrong variable data type when read Position
16169 tags (Tristan Hill).
16170
16171 2004-10-30 Frank Warmerdam <[email protected]>
16172
16173 * libtiff/tiffiop.h: added fallback definition of assert() if we
16174 don't have assert.h.
16175
16176 2004-10-29 Andrey Kiselev <[email protected]>
16177
16178 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines
16179 choosing when the incorrect Group4Options tag set. As per bug
16180
16181 http://bugzilla.remotesensing.org/show_bug.cgi?id=323
16182
16183 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
16184 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
16185 TIFFWriteNormalTag().
16186
16187 2004-10-28 Andrey Kiselev <[email protected]>
16188
16189 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
16190 tags (Peter Fales).
16191
16192 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
16193
16194 2004-10-28 Frank Warmerdam <[email protected]>
16195
16196 * tools/tiff2pdf.c: added casts to avoid warnings.
16197
16198 * libtiff/libtiff.def: Added several more entry points required
16199 to link fax2tiff.c against the DLL on windows.
16200
16201 2004-10-27 Andrey Kiselev <[email protected]>
16202
16203 * configure, configure.ac: Added --enable-rpath option to embed linker
16204 paths into library binary.
16205
16206 2004-10-26 Andrey Kiselev <[email protected]>
16207
16208 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
16209
16210 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
16211 (Vladimir Nadvornik, Dmitry V. Levin).
16212
16213 2004-10-16 Andrey Kiselev <[email protected]>
16214
16215 * libtiff 3.7.0 released.
16216
16217 2004-10-15 Bob Friesenhahn <[email protected]>
16218
16219 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
16220 in this file so its inclusion is removed. Including stdio.h
16221 sometimes incurs an INT32 typedef conflict between MinGW's
16222 basetsd.h and libjpeg's jmorecfg.h.
16223
16224 2004-10-15 Andrey Kiselev <[email protected]>
16225
16226 * man/bmp2tiff.1: Added manual page for bmp2tiff utility.
16227
16228 2004-10-13 Bob Friesenhahn <[email protected]>
16229
16230 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
16231 conflict noticed under MinGW.
16232 * ltmain.sh: Fix for MinGW compilation.
16233
16234 2004-10-13 Frank Warmerdam <[email protected]>
16235
16236 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
16237 http://bugzilla.remotesensing.org/show_bug.cgi?id=635
16238
16239 2004-10-12 Andrey Kiselev <[email protected]>
16240
16241 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
16242 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
16243 properly (Dmitry V. Levin, Marcus Meissner).
16244
16245 2004-10-11 Andrey Kiselev <[email protected]>
16246
16247 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
16248 to TIFF_IFD.
16249
16250 2004-10-10 Andrey Kiselev <[email protected]>
16251
16252 * tools/bmp2tif.c: Check the space allocation results.
16253
16254 2004-10-09 Andrey Kiselev <[email protected]>
16255
16256 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
16257 of the TIFFDirectory structure with the 0 instead of -1 to avoid
16258 confusing integer overflows in TIFFTileRowSize() for striped images.
16259
16260 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
16261 by Ross A. Finlayson.
16262
16263 * libtiff/tif_dir.c: Fixed custom tags handling as per bug
16264
16265 http://bugzilla.remotesensing.org/show_bug.cgi?id=629
16266
16267 2004-10-08 Frank Warmerdam <[email protected]>
16268
16269 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
16270 of tif_fieldinfo.
16271
16272 http://bugzilla.remotesensing.org/show_bug.cgi?id=630
16273
16274 2004-10-04 Bob Friesenhahn <[email protected]>
16275
16276 * contrib/iptcutil/README: Added the missing README which goes
16277 along with iptcutil.
16278
16279 2004-10-03 Andrey Kiselev <[email protected]>
16280
16281 * libtiff/tif_compress.c: Improved error reporting in
16282 TIFFGetConfiguredCODECs() (Dmitry V. Levin).
16283
16284 2004-10-02 Andrey Kiselev <[email protected]>
16285
16286 * libtiff 3.7.0beta2 released.
16287
16288 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
16289 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
16290 tif_pixarlog.c, tif_write.c}: Added checks for failed memory
16291 allocations and integer overflows (Dmitry V. Levin).
16292
16293 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
16294
16295 2004-10-01 Frank Warmerdam <[email protected]>
16296
16297 * libtiff/tif_open.c: added a more informative message if a BigTIFF
16298 file is opened.
16299
16300 2004-09-30 Frank Warmerdam <[email protected]>
16301
16302 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
16303 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
16304 in the Adobe XMP Specification.
16305
16306 2004-09-29 Andrey Kiselev <[email protected]>
16307
16308 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
16309 memset().
16310
16311 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
16312 from Dmitry V. Levin to fix possible integer overflow problems.
16313
16314 2004-09-28 Andrey Kiselev <[email protected]>
16315
16316 * libtiff/tif_getimage.c: Check for allocated buffers before clearing
16317 (Dmitry V. Levin).
16318
16319 2004-09-26 Andrey Kiselev <[email protected]>
16320
16321 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
16322 Optimize checking for the strip bounds.
16323
16324 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
16325 TIFFRasterScanlineSize() functions report zero in the case of integer
16326 overflow now. Properly handle this case in TIFFReadDirectory()
16327 (patches from Dmitry V. Levin).
16328
16329 2004-09-25 Andrey Kiselev <[email protected]>
16330
16331 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
16332 macro where appropriate.
16333
16334 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
16335 noted by Gennady Khokhorin.
16336
16337 * libtiff/tif_dirread.c: Always check the return values, returned
16338 by the _TIFFmalloc() (Dmitry V. Levin).
16339
16340 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
16341 functions (Dmitry V. Levin).
16342
16343 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
16344 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
16345 TIFFGrowStrips() (found by Dmitry V. Levin).
16346
16347 2004-09-24 Andrey Kiselev <[email protected]>
16348
16349 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
16350 to get the list of configured codecs.
16351
16352 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
16353 Dmitry V. Levin.
16354
16355 2004-09-23 Andrey Kiselev <[email protected]>
16356
16357 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
16358 possible integer overflow in CheckMalloc() function.
16359
16360 2004-09-22 Andrey Kiselev <[email protected]>
16361
16362 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
16363 of plain TIFFhowmany() where appropriate.
16364
16365 2004-09-21 Andrey Kiselev <[email protected]>
16366
16367 * libtiff/tif_getimage.c: Initialize arrays after space allocation.
16368
16369 2004-09-19 Andrey Kiselev <[email protected]>
16370
16371 * libtiff 3.7.0beta released.
16372
16373 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
16374 overruns fixed, as noted by Chris Evans.
16375
16376 2004-09-14 Bob Friesenhahn <[email protected]>
16377
16378 * commit: Added a script to make it more convenient to commit
16379 updates. The CVS commit message is extracted from this ChangeLog
16380 file.
16381
16382 2004-09-14 Andrey Kiselev <[email protected]>
16383
16384 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
16385 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
16386 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
16387 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
16388 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
16389 tif_config.h.in, tiffiop.h}:
16390 Get rid of BSD data types (u_char, u_short, u_int, u_long).
16391
16392 2004-09-13 Bob Friesenhahn <[email protected]>
16393
16394 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
16395 specification. Reference libtiff bug tracking system to submit
16396 private tag additions.
16397
16398 2004-09-12 Bob Friesenhahn <[email protected]>
16399
16400 * tools/tiffgt.c: Include "tif_config.h".
16401
16402 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
16403 tiffgt. This results in the 'compile' script being added to the
16404 project.
16405
16406 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
16407 required to find OpenGL headers necessary to build tiffgt. Also
16408 ensure that the libtiff that we built is used rather than some other
16409 libtiff installed on the system.
16410
16411 2004-09-12 Andrey Kiselev <[email protected]>
16412
16413 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
16414 libraries.
16415
16416 2004-09-11 Bob Friesenhahn <[email protected]>
16417
16418 * configure.ac: Pass library configuration defines via
16419 tif_config.h rather than extending CPPFLAGS. Configure a
16420 libtiff/tiffconf.h in order to satisfy application requirements
16421 (not used by library build). Do not define _POSIX_C_SOURCE=2 since
16422 this causes failure to build on systems which properly respect
16423 this request.
16424
16425 * libtiff/tiffconf.h.in: New file to act as the template for the
16426 configured tiffconf.h
16427
16428 * libtiff/files.lst (HDRS): Install the configured tiffconf.h.
16429
16430 2004-09-10 Frank Warmerdam <[email protected]>
16431
16432 * html/internals.html: Split off a discussion of adding new tags
16433 into addingtags.html.
16434
16435 2004-09-10 Andrey Kiselev <[email protected]>
16436
16437 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
16438
16439 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
16440
16441 http://bugzilla.remotesensing.org/show_bug.cgi?id=590
16442
16443 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
16444
16445 * libtiff/tif_dirread.c: Don't reject to read tags of the
16446 SamplesPerPixel size when the tag count is greater than number of
16447 samples as per bug
16448
16449 http://bugzilla.remotesensing.org/show_bug.cgi?id=576
16450
16451 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
16452 defining int8/uint8/... etc. types. As per bug
16453
16454 http://bugzilla.remotesensing.org/show_bug.cgi?id=607
16455
16456 2004-09-09 Frank Warmerdam <[email protected]>
16457
16458 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
16459 to avoid compile warnings about getopt() and a few other things.
16460
16461 2004-09-02 Andrey Kiselev <[email protected]>
16462
16463 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer
16464 assigning magic in TIFFFetchFloat().
16465
16466 2004-09-01 Andrey Kiselev <[email protected]>
16467
16468 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
16469 to avoid requirement for tiffiop.h inclusion in some applications. See
16470 here
16471
16472 http://www.asmail.be/msg0054799560.html
16473
16474 for details.
16475
16476 * tools/fax2tiff.c: Use the new functions in the code.
16477
16478 2004-08-25 Andrey Kiselev <[email protected]>
16479
16480 * tools/tiff2pdf.c: Initialize arrays properly.
16481
16482 * tools/tiff2ps.c: Avoid zero division in setupPageState() function;
16483 properly initialize array in PSDataBW().
16484
16485 2004-08-24 Andrey Kiselev <[email protected]>
16486
16487 * tools/tiff2pdf.c: More fixes for bug
16488
16489 http://bugzilla.remotesensing.org/show_bug.cgi?id=590
16490
16491 from Ross Finlayson.
16492
16493 2004-08-23 Andrey Kiselev <[email protected]>
16494
16495 * tools/tiff2ps.c: Fixed problem with uninitialized values.
16496
16497 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the
16498 TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
16499
16500 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug
16501
16502 http://bugzilla.remotesensing.org/show_bug.cgi?id=590
16503
16504 2004-08-20 Andrey Kiselev <[email protected]>
16505
16506 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
16507 that the input file has compression, photometric interpretation,
16508 etcetra, tags or if not than a more descriptive error is returned.
16509
16510 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
16511 code, responsible for tag data type checking.
16512
16513 2004-08-19 Andrey Kiselev <[email protected]>
16514
16515 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
16516 variable as per bug
16517
16518 http://bugzilla.remotesensing.org/show_bug.cgi?id=593
16519
16520 2004-08-16 Andrey Kiselev <[email protected]>
16521
16522 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
16523 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
16524
16525 2004-08-01 Andrey Kiselev <[email protected]>
16526
16527 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
16528 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
16529
16530 2004-07-24 Andrey Kiselev <[email protected]>
16531
16532 * libtiff/tif_lzw.c: LZW compression code is merged back from the
16533 separate package. All libtiff tools are updated to not advertise an
16534 abcence of LZW support.
16535
16536 2004-07-12 Andrey Kiselev <[email protected]>
16537
16538 * libtiff/tiffio.h: Revert thandle_t back to void* type.
16539
16540 2004-07-11 Andrey Kiselev <[email protected]>
16541
16542 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
16543 messages, as suggested by Bernd Herd.
16544
16545 2004-07-03 Andrey Kiselev <[email protected]>
16546
16547 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
16548 when setting custom tags by value. Reported by Eric Fieleke.
16549
16550 2004-06-14 Andrey Kiselev <[email protected]>
16551
16552 * tools/bmp2tiff.c: Add missed RawsPerStrip setting.
16553
16554 2004-06-08 Andrey Kiselev <[email protected]>
16555
16556 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files
16557 into TIFFs.
16558
16559 2004-06-07 Andrey Kiselev <[email protected]>
16560
16561 * libtiff 3.7.0alpha released.
16562
16563 2004-06-06 Andrey Kiselev <[email protected]>
16564
16565 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
16566 of ugly 64-bit hacks, replace them with the clever (autoconf based )
16567 ones :-).
16568
16569 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
16570 problems in 64-bit environment).
16571
16572 2004-06-05 Andrey Kiselev <[email protected]>
16573
16574 * tools/tiffset.c: tiffset now can set any libtiff supported tags.
16575 Tags can be supplied by the mnemonic name or number.
16576
16577 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
16578 functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
16579
16580 2004-05-27 Andrey Kiselev <[email protected]>
16581
16582 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
16583 markers as per bug
16584
16585 http://bugzilla.remotesensing.org/show_bug.cgi?id=581
16586
16587 2004-05-24 Andrey Kiselev <[email protected]>
16588
16589 * tools/tiffsplit.c: Don't forget to copy Photometric
16590 Interpretation tag.
16591
16592 2004-05-20 Andrey Kiselev <[email protected]>
16593
16594 * libtiff/{tif_open.c, tiffio.h}: New function added:
16595 TIFFIsBigEndian(). Function returns nonzero if given was file written
16596 in big-endian order.
16597
16598 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte
16599 files. Now output files will be written using the same byte order
16600 flag as in the input image. See
16601
16602 http://bugzilla.remotesensing.org/show_bug.cgi?id=574
16603
16604 for details.
16605
16606 2004-05-19 Frank Warmerdam <[email protected]>
16607
16608 * libtiff/tif_print.c: added (untested) support for printing
16609 SSHORT, SLONG and SRATIONAL fields.
16610
16611 * tools/tiffcp.c: close output file on normal exit.
16612
16613 2004-05-17 Andrey Kiselev <[email protected]>
16614
16615 * libtiff/tif_fax3.c: Avoid reading CCITT compression options
16616 if compression type mismatches. See
16617
16618 http://bugzilla.remotesensing.org/show_bug.cgi?id=565
16619
16620 2004-04-30 Andrey Kiselev <[email protected]>
16621
16622 * libtiff/tif_strip.c: Never return 0 from the
16623 TIFFNumberOfStrips().
16624
16625 2004-04-29 Andrey Kiselev <[email protected]>
16626
16627 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which
16628 store single SampleFormat value for multisampled images. See
16629
16630 http://bugzilla.remotesensing.org/show_bug.cgi?id=562
16631
16632 2004-04-25 Andrey Kiselev <[email protected]>
16633
16634 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
16635 int16 and int32 types to avoid complains on some compilers. Details at
16636
16637 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
16638
16639 2004-04-20 Andrey Kiselev <[email protected]>
16640
16641 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
16642
16643 http://bugzilla.remotesensing.org/show_bug.cgi?id=555
16644
16645 2004-04-14 Andrey Kiselev <[email protected]>
16646
16647 * libtiff/tif_write.c: Allow in-place updating of the compressed
16648 images (don't work properly with all codecs). For details see GDAL bug
16649
16650 http://bugzilla.remotesensing.org/show_bug.cgi?id=534
16651
16652 2004-04-06 Andrey Kiselev <[email protected]>
16653
16654 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
16655 in the Intergarph JPEG compressed TIFF images as per bug:
16656
16657 http://bugzilla.remotesensing.org/show_bug.cgi?id=532
16658
16659 2004-04-04 Frank Warmerdam <[email protected]>
16660
16661 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
16662 via bad2.
16663
16664 2004-03-26 Andrey Kiselev <[email protected]>
16665
16666 * tools/tiffcp.c: Properly set Photometric Interpretation in case of
16667 JPEG compression of grayscale images.
16668
16669 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not
16670 present in the input image.
16671
16672 2004-03-19 Andrey Kiselev <[email protected]>
16673
16674 * {many}: The first attempt to switch to autotools.
16675
16676 2004-03-03 Andrey Kiselev <[email protected]>
16677
16678 * libtiff/tif_open.c: Use dummy mmap/munmap functions in
16679 TIFFClientOpen() when the appropriate client functions was not
16680 supplied by user.
16681
16682 2004-03-02 Frank Warmerdam <[email protected]>
16683
16684 * tools/ycbcr.c: fixed main() declaration as per:
16685 http://bugzilla.remotesensing.org/show_bug.cgi?id=513
16686
16687 2004-02-26 Andrey Kiselev <[email protected]>
16688
16689 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
16690 images. Reported by Artem Mirolubov.
16691
16692 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
16693 tag type in TIFFFetchNormalTag() as per bug
16694
16695 http://bugzilla.remotesensing.org/show_bug.cgi?id=508
16696
16697 2004-02-17 Frank Warmerdam <[email protected]>
16698
16699 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
16700 http://bugzilla.remotesensing.org/show_bug.cgi?id=494
16701
16702 2004-02-05 Andrey Kiselev <[email protected]>
16703
16704 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
16705 bug
16706
16707 http://bugzilla.remotesensing.org/show_bug.cgi?id=483
16708
16709 But we need more work on fax codec to support update mode.
16710
16711 2004-01-30 Frank Warmerdam <[email protected]>
16712
16713 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
16714 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
16715 Scott Reynolds.
16716
16717 2004-01-29 Andrey Kiselev <[email protected]>
16718
16719 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
16720 and TIFFTAG_INDEXED as per bug
16721
16722 http://bugzilla.remotesensing.org/show_bug.cgi?id=475
16723
16724 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
16725 NULL before proceeding further as per bug
16726
16727 http://bugzilla.remotesensing.org/show_bug.cgi?id=474
16728
16729 Check results, returned by the TIFFFdOpen() before returning and close
16730 file if TIFFFdOpen() failed as per bug
16731
16732 http://bugzilla.remotesensing.org/show_bug.cgi?id=468
16733
16734 * libtiff/tif_open.c: More fixes for
16735
16736 http://bugzilla.remotesensing.org/show_bug.cgi?id=468
16737
16738 2004-01-28 Andrey Kiselev <[email protected]>
16739
16740 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
16741 TIFFCleanup() from the TIFFClose() in order to fix the bug
16742
16743 http://bugzilla.remotesensing.org/show_bug.cgi?id=468
16744
16745 * tools/tiffcp.c: Fixed problem with wrong interpretation of the
16746 InkNames tag as per bug
16747
16748 http://bugzilla.remotesensing.org/show_bug.cgi?id=466
16749
16750 Memory leak fixed.
16751
16752 2004-01-21 Frank Warmerdam <[email protected]>
16753
16754 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
16755 are field_passcount=TRUE properly. Arguably anonymous custom tags
16756 should be declared as passcount=FALSE, but I don't want to change
16757 that without a careful review.
16758
16759 2004-01-20 Andrey Kiselev <[email protected]>
16760
16761 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of
16762 stripped image in TIFFWriteBufferSetup(). As per bug
16763
16764 http://bugzilla.remotesensing.org/show_bug.cgi?id=460
16765
16766 2004-01-11 Andrey Kiselev <[email protected]>
16767
16768 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
16769 patch from Gerben Koopmans.
16770
16771 * libtiff/tif_dirread.c: Check field_passcount value before setting
16772 the value of undefined type, patch from Gerben Koopmans.
16773
16774 2004-01-02 Andrey Kiselev <[email protected]>
16775
16776 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for
16777 non-RGB images.
16778
16779 2003-12-31 Andrey Kiselev <[email protected]>
16780
16781 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
16782 pointer passed. Patch supplied by Larry Grill.
16783
16784 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
16785 suggested by Jeremy C. Reed.
16786
16787 2003-12-26 Andrey Kiselev <[email protected]>
16788
16789 * libtiff 3.6.1 released.
16790
16791 2003-12-24 Andrey Kiselev <[email protected]>
16792
16793 * config.guess, config.sub: Updated from the recent upstream.
16794
16795 2003-12-22 Andrey Kiselev <[email protected]>
16796
16797 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
16798 More cleanups in color conversion interface, added appropriate manual
16799 page.
16800
16801 2003-12-19 Andrey Kiselev <[email protected]>
16802
16803 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
16804 per bug
16805
16806 http://bugzilla.remotesensing.org/show_bug.cgi?id=357
16807
16808 * tools/tiff2ps.c: Added support for alpha channel. Fixes
16809
16810 http://bugzilla.remotesensing.org/show_bug.cgi?id=428
16811
16812 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
16813 Interface for Lab->RGB color conversion is finally cleaned up.
16814 Added support for ReferenceBlackWhite tag handling when converted from
16815 YCbCr color space. The latter closes
16816
16817 http://bugzilla.remotesensing.org/show_bug.cgi?id=120
16818
16819 2003-12-07 Andrey Kiselev <[email protected]>
16820
16821 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
16822
16823 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
16824 library.
16825
16826 2003-12-06 Andrey Kiselev <[email protected]>
16827
16828 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
16829 file and properly use it for CIE Lab->RGB transform.
16830
16831 2003-12-04 Andrey Kiselev <[email protected]>
16832
16833 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
16834 conversion routines now in the tif_color.c module. New function
16835 TIFFYCbCrtoRGB() available in TIFF API.
16836
16837 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
16838
16839 2003-12-03 Andrey Kiselev <[email protected]>
16840
16841 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
16842 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
16843 module.
16844
16845 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
16846 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
16847 Finally resolved problems with orientation handling. TIFFRGBAImage
16848 interface now properly supports all possible orientations, i.e. images
16849 will be flipped both in horizontal and vertical directions if
16850 required. 'Known bugs' section now removed from the appropriate manual
16851 pages. Closed bug entry:
16852
16853 http://bugzilla.remotesensing.org/show_bug.cgi?id=322
16854
16855 2003-12-02 Andrey Kiselev <[email protected]>
16856
16857 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
16858 function calls as per bug
16859
16860 http://bugzilla.remotesensing.org/show_bug.cgi?id=440
16861
16862 2003-11-28 Ross Finlayson <[email protected]>
16863
16864 * tools/tiff2pdf.c: Some bugs fixed.
16865
16866 2003-11-27 Andrey Kiselev <[email protected]>
16867
16868 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
16869 reported by Antonio Scuri.
16870
16871 * man/tiff2pdf.1: Few improvements in page layout.
16872
16873 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
16874 Added support for tiff2pdf manual page.
16875
16876 2003-11-26 Ross Finlayson <[email protected]>
16877
16878 * /man/tiff2pdf.1: File added to repository.
16879
16880 2003-11-26 Andrey Kiselev <[email protected]>
16881
16882 * Makefile.in, /tools/{Makefile.in, makefile.vc}:
16883 Added support for tiff2pdf utility.
16884
16885 2003-11-25 Ross Finlayson <[email protected]>
16886
16887 * /tools/tiff2pdf.c: File added to repository.
16888
16889 2003-11-22 Andrey Kiselev <[email protected]>
16890
16891 * /tools/raw2tiff.c: sqrtf() replaced with sqrt().
16892
16893 2003-11-21 Andrey Kiselev <[email protected]>
16894
16895 * /tools/raw2tiff.c: #include <getopt.h> removed.
16896
16897 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
16898 sgigt utility removed and replaced with the completely rewritten
16899 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
16900 there is a lot of things to improve.
16901
16902 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
16903 extract the fields from the OJPEG files. Patch supplied by Ross
16904 Finlayson.
16905
16906 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
16907 Added new function TIFFIsCODECConfigured(), suggested by Ross
16908 Finlayson.
16909
16910 2003-11-18 Andrey Kiselev <[email protected]>
16911
16912 * libtiff/tif_dirinfo.c: Implemented binary search in
16913 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
16914
16915 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
16916 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
16917
16918 2003-11-17 Frank Warmerdam <[email protected]>
16919
16920 * tif_dirread.c: do not mark all anonymously defined tags to be
16921 IGNOREd.
16922
16923 2003-11-17 Andrey Kiselev <[email protected]>
16924
16925 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
16926 TIFFDataWidth() function instead of tiffDataWidth array.
16927
16928 2003-11-16 Andrey Kiselev <[email protected]>
16929
16930 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
16931 datatype, introduced in "Adobe PageMaker TIFF Tech. Notes".
16932
16933 2003-11-15 Frank Warmerdam <[email protected]>
16934
16935 * Makefile.in: fixed missing backslash for tif_color.c in list.
16936
16937 2003-11-13 Andrey Kiselev <[email protected]>
16938
16939 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
16940 New color space conversion code: CIE L*a*b* 1976 images now supported
16941 by the TIFFRGBAImage interface. All introduced routines go to new
16942 module tif_color.c. Eventually all color conversion functions should
16943 be moved there.
16944
16945 2003-11-12 Andrey Kiselev <[email protected]>
16946
16947 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
16948 with the reverse byte order (it is reported by the magic header
16949 field). Problem reported by Andreas Wiesmann.
16950
16951 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
16952 calculation function. Guessing mechanics now documented in manual page.
16953
16954 2003-11-11 Andrey Kiselev <[email protected]>
16955
16956 * tools/raw2tiff.c: Implemented image size guessing using
16957 correlation coefficient calculation between two neighbour lines.
16958
16959 2003-11-09 Frank Warmerdam <[email protected]>
16960
16961 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
16962 planarconfig_contig case in TIFFComputeTile().
16963
16964 http://bugzilla.remotesensing.org/show_bug.cgi?id=387
16965
16966 2003-11-09 Andrey Kiselev <[email protected]>
16967
16968 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
16969
16970 2003-11-07 Andrey Kiselev <[email protected]>
16971
16972 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
16973 Added TIFFRawStripSize() function as suggested by Chris Hanson.
16974
16975 2003-11-03 Andrey Kiselev <[email protected]>
16976
16977 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
16978 per bug
16979
16980 http://bugzilla.remotesensing.org/show_bug.cgi?id=424
16981
16982 2003-10-29 Andrey Kiselev <[email protected]>
16983
16984 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
16985
16986 * html/build.html: Added note about GNU make requirement.
16987
16988 2003-10-25 Andrey Kiselev <[email protected]>
16989
16990 * Makefile.in: Fixes in using MAKEFLAGS as per bug
16991
16992 http://bugzilla.remotesensing.org/show_bug.cgi?id=418
16993
16994 * port/install.sh.in: Option -p added to the mkdir command to create
16995 all directory tree structure before installing.
16996
16997 2003-10-18 Andrey Kiselev <[email protected]>
16998
16999 * /tools/tiff2ps.c: #include <strings.h> replaced with the
17000 #include <string.h>.
17001
17002 2003-10-16 Andrey Kiselev <[email protected]>
17003
17004 * Makefile.in: Add an absolute path to the test_pics.sh call.
17005
17006 2003-10-12 Andrey Kiselev <[email protected]>
17007
17008 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
17009 typedefs.
17010
17011 2003-10-09 Andrey Kiselev <[email protected]>
17012
17013 * configure, libtiff/{Makefile.in, mkversion.c}:
17014 Relative buildings fixed.
17015
17016 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building
17017 rule.
17018
17019 2003-10-07 Andrey Kiselev <[email protected]>
17020
17021 * Makefile.in: Added missed v3.6.0.html.
17022
17023 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
17024 ORIENTATION_BOTLEFT.
17025
17026 2003-10-04 Andrey Kiselev <[email protected]>
17027
17028 * 3.6.0 final release.
17029
17030 2003-10-03 Andrey Kiselev <[email protected]>
17031
17032 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
17033 function TIFFReadRGBAImageOriented() implemented to retrieve raster
17034 array with user-specified origin position as suggested by Jason Frank.
17035 See
17036
17037 http://bugzilla.remotesensing.org/show_bug.cgi?id=322
17038
17039 for details.
17040
17041 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
17042 instead of TIFFReadRGBAImage().
17043
17044 * tools/tiff2ps.c: Fixed possible endless loop as per bug
17045
17046 http://bugzilla.remotesensing.org/show_bug.cgi?id=404
17047
17048 2003-09-30 Andrey Kiselev <[email protected]>
17049
17050 * libtiff/tif_dirread.c: Check field counter against number of fields
17051 in order to fix
17052
17053 http://bugzilla.remotesensing.org/show_bug.cgi?id=366
17054
17055 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug
17056
17057 http://bugzilla.remotesensing.org/show_bug.cgi?id=342
17058
17059 2003-09-25 Andrey Kiselev <[email protected]>
17060
17061 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
17062 tif_close.c}: Store a list of opened IFD to prevent looping as per bug
17063
17064 http://bugzilla.remotesensing.org/show_bug.cgi?id=383
17065
17066 2003-09-23 Andrey Kiselev <[email protected]>
17067
17068 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See
17069
17070 http://bugzilla.remotesensing.org/show_bug.cgi?id=358
17071
17072 2003-08-21 Andrey Kiselev <[email protected]>
17073
17074 * tools/tiffmedian.c: int declaration replaced with the uint32 to
17075 support large images as per bug
17076
17077 http://bugzilla.remotesensing.org/show_bug.cgi?id=382
17078
17079 2003-08-12 Andrey Kiselev <[email protected]>
17080
17081 * libtiff/Makefile.in: Fixed problem with building in different
17082 directory.
17083
17084 * tools/tiff2ps.c: Added missing #include <strings.h>.
17085
17086 * libtiff/tif_dirwrite.c: More fixes for custom tags code
17087 from Ashley Dreier.
17088
17089 2003-08-07 Andrey Kiselev <[email protected]>
17090
17091 * tools/tiff2ps.c: Added page size setting when creating PS Level 2.
17092 Patch submitted by Balatoni Denes (with corrections from Tom
17093 Kacvinsky).
17094
17095 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
17096 being used. Reported by Tom Kacvinsky.
17097
17098 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
17099 reported by Ashley Dreier.
17100
17101 * libtiff/tif_print.c: Fixed problem with float tags reading, support
17102 for printing RATIONAL and BYTE tags added.
17103
17104 2003-08-05 Andrey Kiselev <[email protected]>
17105
17106 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to
17107 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
17108 problems with predictor initialization. Remove O_RDONLY check during
17109 state block allocation to be able open LZW compressed files in update
17110 mode.
17111
17112 Problem exist for libtiff version of the tif_lzw.c module. One from
17113 lzw-compression-kit hasn't such troubles.
17114
17115 2003-08-04 Frank Warmerdam <[email protected]>
17116
17117 * libtiff/tif_write.c: modified tif_write.c so that the various
17118 encoded write functions use tif_postdecode() to apply byte order
17119 swapping (swab) to the application passed data buffer if the same
17120 would be done when reading. This allows us to write pixel data with
17121 more than 8 bits per sample to existing files of a non-native byte
17122 order. One side effect of this change is the applications buffer
17123 itself is altered in this case by the act of writing.
17124
17125 http://bugzilla.remotesensing.org/show_bug.cgi?id=171
17126
17127 2003-07-25 Frank Warmerdam <[email protected]>
17128
17129 * libtiff/tif_open.c: avoid signed/unsigned casting warning
17130 initializing typemask as per patch from J.A. Strother.
17131
17132 * tools/tiffcp.c: fixed signed/unsigned casting warning.
17133
17134 * libtiff/tif_print.c: dos2unix conversion.
17135
17136 * tools/tiffsplit.c: increased the maximum number of pages that
17137 can be split. Patch provided by Andrew J. Montalenti.
17138
17139 2003-07-11 Andrey Kiselev <[email protected]>
17140
17141 * tools/raw2tiff.c: Added option `-p' to explicitly select color
17142 space of input image data. Closes
17143
17144 http://bugzilla.remotesensing.org/show_bug.cgi?id=364
17145
17146 2003-07-08 Frank Warmerdam <[email protected]>
17147
17148 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
17149 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
17150 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
17151 avoid casting warning at /W4.
17152
17153 2003-07-03 Andrey Kiselev <[email protected]>
17154
17155 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
17156
17157 2003-06-30 Andrey Kiselev <[email protected]>
17158
17159 * libtiff/tif_pixarlog.c: Unused variables removed.
17160
17161 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
17162 EstimateStripByteCounts() as per bug
17163
17164 http://bugzilla.remotesensing.org/show_bug.cgi?id=358
17165
17166 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
17167 64-bit architectures as per bug
17168
17169 http://bugzilla.remotesensing.org/show_bug.cgi?id=357
17170
17171 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
17172 unknown data type.
17173
17174 2003-06-19 Frank Warmerdam <[email protected]>
17175
17176 * libtiff/tif_print.c: fixed some serious bugs when printing
17177 custom tags ... almost certain to crash.
17178
17179 * libtiff/tif_dirread.c: Don't ignore custom fields that are
17180 autodefined. Not sure how this got to be like this.
17181
17182 2003-06-18 Andrey Kiselev <[email protected]>
17183
17184 * 3.6.0 Beta2 released.
17185
17186 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
17187 comparing as per bug
17188
17189 http://bugzilla.remotesensing.org/show_bug.cgi?id=349
17190
17191 `-z' option now can be used to set the number of reported different
17192 bytes.
17193
17194 2003-06-09 Andrey Kiselev <[email protected]>
17195
17196 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
17197 to -r option to get the entire image as one strip. See
17198
17199 http://bugzilla.remotesensing.org/show_bug.cgi?id=343
17200
17201 for details.
17202
17203 2003-06-04 Andrey Kiselev <[email protected]>
17204
17205 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
17206 values as per bug
17207
17208 http://bugzilla.remotesensing.org/show_bug.cgi?id=343
17209
17210 2003-05-27 Frank Warmerdam <[email protected]>
17211
17212 * libtiff/tif_jpeg.c: modified segment_height calculation to always
17213 be a full height tile for tiled images. Also changed error to just
17214 be a warning.
17215
17216 2003-05-25 Andrey Kiselev <[email protected]>
17217
17218 * tools/fax2tiff.c: Page numbering fixed, as per bug
17219
17220 http://bugzilla.remotesensing.org/show_bug.cgi?id=341
17221
17222 2003-05-20 Andrey Kiselev <[email protected]>
17223
17224 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
17225 configure, Makefile.in: Switched back to the old behaviour. Likely
17226 better solution should be found for OJPEG support.
17227
17228 2003-05-11 Andrey Kiselev <[email protected]>
17229
17230 * libtiff/mkversion.c: Fixed problem with wrong string size when
17231 reading RELEASE-DATE file.
17232
17233 2003-05-07 Andrey Kiselev <[email protected]>
17234
17235 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
17236 index was out of range.
17237
17238 2003-05-06 Andrey Kiselev <[email protected]>
17239
17240 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
17241 configure, Makefile.in: Improved libtiff compilation with OJPEG
17242 support. Now no need for patching IJG JPEG library, hack required by
17243 libtiff will be compiled and used in-place. Implemented with
17244 suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
17245
17246 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
17247 TIFFVGetFieldDefaulted() function.
17248
17249 2003-05-05 Andrey Kiselev <[email protected]>
17250
17251 * tools/ppm2tiff.c: PPM header parser improved: now able to skip
17252 comments.
17253
17254 * tools/tiffdither.c: Fixed problem with bit fill order tag setting:
17255 was not copied from source image.
17256
17257 * libtiff/getimage.c: Workaround for some images without correct
17258 info about alpha channel as per bug
17259
17260 http://bugzilla.remotesensing.org/show_bug.cgi?id=331
17261
17262 2003-04-29 Andrey Kiselev <[email protected]>
17263
17264 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
17265 It basically allows one to use the /flateDecode filter for ZIP
17266 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
17267
17268 http://bugzilla.remotesensing.org/show_bug.cgi?id=328
17269
17270 * tools/tiff2ps.c: Force deadzone printing when EPS output specified
17271 as per bug
17272
17273 http://bugzilla.remotesensing.org/show_bug.cgi?id=325
17274
17275 2003-04-17 Andrey Kiselev <[email protected]>
17276
17277 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts
17278 due to problems with multidirectory images. Quality of error messages
17279 improved.
17280
17281 2003-04-16 Andrey Kiselev <[email protected]>
17282
17283 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
17284 encoded images. See bug entries
17285
17286 http://bugzilla.remotesensing.org/show_bug.cgi?id=275
17287
17288 and
17289
17290 http://bugzilla.remotesensing.org/show_bug.cgi?id=23
17291
17292 * libtiff/tif_dirread.c: Additional check for StripByteCounts
17293 correctness. Fixes
17294
17295 http://bugzilla.remotesensing.org/show_bug.cgi?id=320
17296
17297 2003-03-12 Andrey Kiselev <[email protected]>
17298
17299 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
17300 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
17301 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
17302 tiffmedian.c}: Added library version reporting facility to all tools.
17303
17304 2003-03-06 Frank Warmerdam <[email protected]>
17305
17306 * port/install.sh.in: Fixed problems with install producing paths
17307 like ///usr/local/lib on cygwin.
17308
17309 2003-02-27 Andrey Kiselev <[email protected]>
17310
17311 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
17312 raw input page. Patch supplied by Julien Gaulmin. See
17313
17314 http://bugzilla.remotesensing.org/show_bug.cgi?id=293
17315
17316 for details.
17317
17318 2003-02-26 Frank Warmerdam <[email protected]>
17319
17320 * libtiff/tif_dir.c: fixed up the tif_postdecode settings
17321 responsible for byte swapping complex image data.
17322
17323 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
17324 LZWSetupDecode(). Needed to read LZW files in "r+" mode.
17325
17326 2003-02-07 Andrey Kiselev <[email protected]>
17327
17328 * tools/ppm2tiff.c: Fixed problem with too many arguments.
17329
17330 2003-02-04 Andrey Kiselev <[email protected]>
17331
17332 * tools/raw2tiff.c: Memory leak fixed.
17333
17334 2003-02-03 Andrey Kiselev <[email protected]>
17335
17336 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
17337 (thanks, Julien!). More switches for fax2tiff tool for better control
17338 of input and output. Details at
17339
17340 http://bugzilla.remotesensing.org/show_bug.cgi?id=272
17341
17342 2003-02-03 Frank Warmerdam <[email protected]>
17343
17344 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
17345 library so that we can check if there is already any tile/strip data
17346 before deciding between creating a compressor or a decompressor.
17347
17348 2003-01-31 Frank Warmerdam <[email protected]>
17349
17350 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
17351 a pre-existing compressed image. That is, image writing to
17352 pre-existing compressed images is not allowed.
17353
17354 * libtiff/tif_open.c: Removed error if opening a compressed file
17355 in update mode.
17356
17357 http://bugzilla.remotesensing.org/show_bug.cgi?id=198
17358
17359 2003-01-31 Andrey Kiselev <[email protected]>
17360
17361 * config.guess, config.sub: Updated to recent upstream versions.
17362
17363 2003-01-15 Frank Warmerdam <[email protected]>
17364
17365 * cut 3.6.0 Beta release.
17366
17367 2002-12-20 Andrey Kiselev <[email protected]>
17368
17369 * tools/fax2ps.c, man/fax2ps.1: Page size was determined
17370 in wrong way as per bug
17371
17372 http://bugzilla.remotesensing.org/show_bug.cgi?id=239
17373
17374 2002-12-17 Frank Warmerdam <[email protected]>
17375
17376 * libtiff/tif_dirread.c: Allow wrong sized arrays in
17377 TIFFFetchStripThing().
17378
17379 http://bugzilla.remotesensing.org/show_bug.cgi?id=49
17380
17381 2002-12-02 Frank Warmerdam <[email protected]>
17382
17383 * libtiff/tif_dir.c: fix problem with test on td_customValueCount.
17384 Was using realloc even first time. Fix by Igor Venevtsev.
17385
17386 2002-11-30 Frank Warmerdam <[email protected]>
17387
17388 * libtiff/tif_dir.c: fixed bug with resetting an existing custom
17389 field value.
17390
17391 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
17392 tags in TIFFVGetField() ... added missing break.
17393
17394 2002-10-14 Frank Warmerdam <[email protected]>
17395
17396 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
17397 the scanline buffer long enough when writing rgb triplets.
17398 The scanline needs to be 3 X the number of dots or else it will
17399 contain an incomplete triplet and programs that try to separate
17400 the eps by redefining the colorimage operator will get messed up.
17401 Patch supplied by William Bader.
17402
17403 * Makefile.in: added tif_extension.c to file list as per
17404 http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
17405
17406 2002-10-11 Andrey Kiselev <[email protected]>
17407
17408 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
17409 large files (>2GiB) supporting. New option in the config.site:
17410 LARGEFILE="yes". Should be enough for I/O of the large files.
17411
17412 2002-10-10 Frank Warmerdam <[email protected]>
17413
17414 * libtiff/html/v3.6.0.html: new release notes.
17415
17416 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email
17417 link for Andrey. Pointer to v3.6.0.html.
17418
17419 * libtiff/Makefile.in: added direct rule for tiffvers.h for release.
17420
17421 2002-10-07 Andrey Kiselev <[email protected]>
17422 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
17423 (thanks, Sebastian!). New switches:
17424 -b # for a bottom margin of # inches
17425 -c center image
17426 -l # for a left margin of # inches
17427 -r rotate the image by 180 degrees
17428 New features merged with code for shrinking/overlapping.
17429 Previously added -c and -n switches (for overriding PS units) renamed
17430 in -x and -y respectively.
17431
17432 http://bugzilla.remotesensing.org/show_bug.cgi?id=200
17433
17434 * html/man/*.html: Updated from actual manual pages.
17435
17436 2002-10-06 Frank Warmerdam <[email protected]>
17437
17438 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
17439 size on windows. Use #define boolean hack.
17440
17441 http://bugzilla.remotesensing.org/show_bug.cgi?id=188
17442
17443 * libtiff/tiff.h: Don't do special type handling in tiff.h unless
17444 USING_VISUALAGE is defined.
17445
17446 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
17447
17448 2002-10-03 Frank Warmerdam <[email protected]>
17449
17450 * libtiff/tiff.h: added COMPRESSION_JP2000.
17451
17452 2002-10-02 Andrey Kiselev <[email protected]>
17453
17454 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
17455 by the TIFFFetchByteArray() function. Should finally resolve
17456
17457 http://bugzilla.remotesensing.org/show_bug.cgi?id=52
17458
17459 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
17460
17461 * html/Makefile.in: New targets added: html and groffhtml for
17462 producing HTML representations of the manual pages automatically.
17463 html target uses man2html tool, groffhtml uses groff tool.
17464
17465 2002-09-29 Frank Warmerdam <[email protected]>
17466
17467 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
17468 from John H. DuBois III.
17469
17470 2002-09-15 Andrey Kiselev <[email protected]>
17471
17472 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
17473 manual page for raw2tiff(1) tool.
17474
17475 2002-09-12 Andrey Kiselev <[email protected]>
17476
17477 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
17478 the tiffio.h header file.
17479
17480 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
17481 manual page for TIFFDataWidth() function
17482
17483 2002-09-08 Frank Warmerdam <[email protected]>
17484
17485 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
17486 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
17487
17488 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
17489 since we are unable to properly include the amount to skip.
17490
17491 http://bugzilla.remotesensing.org/show_bug.cgi?id=80
17492
17493 2002-09-02 Andrey Kiselev <[email protected]>
17494
17495 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
17496 in TIFFFetchByteArray(). Problem described at
17497 http://bugzilla.remotesensing.org/show_bug.cgi?id=52
17498
17499 2002-08-22 Andrey Kiselev <[email protected]>
17500
17501 * /libtiff/tif_dirinfo.c: Further additions to free custom fields
17502 in _TIFFSetupFieldInfo() function.
17503 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
17504
17505 * /libtiff/tif_lzw.c: Additional consistency checking added in
17506 LZWDecode() and LZWDecodeCompat().
17507 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
17508 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
17509
17510 * /libtiff/tif_lzw.c:
17511 Added check for valid code lengths in LZWDecode() and
17512 LZWDecodeCompat(). Fixes
17513 http://bugzilla.remotesensing.org/show_bug.cgi?id=115
17514
17515 2002-08-16 Andrey Kiselev <[email protected]>
17516
17517 * /libtiff/{Makefile.vc, libtiff.def}:
17518 Missed declarations added.
17519
17520 2002-08-15 Frank Warmerdam <[email protected]>
17521
17522 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
17523 return code from the underlying pick function.
17524
17525 http://bugzilla.remotesensing.org/show_bug.cgi?id=177
17526
17527 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
17528 with FIELD_CUSTOM as mentioned in bug 169.
17529
17530 * tif_close.c: added logic to free dynamically created anonymous
17531 field definitions to correct a small memory leak.
17532
17533 http://bugzilla.remotesensing.org/show_bug.cgi?id=169
17534
17535 2002-08-10 Andrey Kiselev <[email protected]>
17536
17537 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
17538 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
17539
17540 2002-07-31 Frank Warmerdam <[email protected]>
17541
17542 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
17543 JPEGDecode() as per bugzilla bug (issue 1):
17544
17545 http://bugzilla.remotesensing.org/show_bug.cgi?id=129
17546
17547 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
17548 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
17549 present in the tiff tags.
17550
17551 http://bugzilla.remotesensing.org/show_bug.cgi?id=168
17552
17553 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
17554 TIFFWriteScanline() now set tif_row explicitly in case the codec has
17555 fooled with the value.
17556
17557 http://bugzilla.remotesensing.org/show_bug.cgi?id=129
17558
17559 2002-06-22 Andrey Kiselev <[email protected]>
17560
17561 * /tools/tiff2ps.c: Added workaround for some software that may crash
17562 when last strip of image contains fewer number of scanlines than
17563 specified by the `/Height' variable. See
17564 http://bugzilla.remotesensing.org/show_bug.cgi?id=164
17565 for explanation.
17566
17567 2002-06-21 Andrey Kiselev <[email protected]>
17568
17569 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
17570 splitting long images in several pages. See
17571 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
17572 Patch granted by John Williams <[email protected]>.
17573
17574 2002-06-11 Frank Warmerdam <[email protected]>
17575
17576 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new
17577 Tiffile.cpp example of converting TIFF files into a DIB on Win32.
17578 This one is described in:
17579
17580 http://bugzilla.remotesensing.org/show_bug.cgi?id=143
17581
17582 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at:
17583
17584 http://bugzilla.remotesensing.org/show_bug.cgi?id=156
17585
17586 2002-05-10 Andrey Kiselev <[email protected]>
17587
17588 * tools/tiff2ps: New commandline switches to override resolution
17589 units obtained from the input file. Closes
17590 http://bugzilla.remotesensing.org/show_bug.cgi?id=131
17591
17592 2002-04-26 Andrey Kiselev <[email protected]>
17593
17594 * libtiff/libtiff.def: Added missed declaration.
17595
17596 2002-04-22 Andrey Kiselev <[email protected]>
17597
17598 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
17599 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
17600
17601 2002-04-20 Andrey Kiselev <[email protected]>
17602
17603 * libtiff/tif_open.c: Pointers to custom procedures
17604 in TIFFClientOpen() are checked to be not NULL-pointers.
17605
17606 2002-04-18 Andrey Kiselev <[email protected]>
17607
17608 * libtiff/libtiff.def: Added missed declarations.
17609
17610 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
17611
17612 2002-04-16 Andrey Kiselev <[email protected]>
17613
17614 * libtiff/tif_lzw.c: Additional checks for data integrity introduced.
17615 Should finally close
17616 http://bugzilla.remotesensing.org/show_bug.cgi?id=100
17617
17618 2002-04-10 Andrey Kiselev <[email protected]>
17619
17620 * tools/tiff2ps: Division by zero fixed.
17621 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
17622
17623 2002-04-09 Andrey Kiselev <[email protected]>
17624
17625 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
17626 TIFFCheckpointDirectory() routine added.
17627 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
17628
17629 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description
17630 for the new function.
17631
17632 2002-04-08 Andrey Kiselev <[email protected]>
17633
17634 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
17635 additional members tif->tif_decodestatus and tif->tif_encodestatus
17636 for correct handling of unconfigured codecs (we should not try to read
17637 data or to define data size without correct codecs).
17638
17639 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
17640 changed. Now it has used tif->tif_decodestatus and
17641 tif->tif_encodestatus.
17642 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
17643 case of __cvs_8.tif test image).
17644
17645 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
17646 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
17647 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
17648 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
17649
17650 2002-04-04 Andrey Kiselev <[email protected]>
17651
17652 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
17653 replaced by warnings. Now libtiff should read corrupted LZW-compressed
17654 files by skipping bad strips.
17655 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
17656
17657 2002-04-03 Frank Warmerdam <[email protected]>
17658
17659 * libtiff/tif_dirwrite.c: Removed some dead code.
17660
17661 * libtiff/*: Cleanup some warnings.
17662
17663 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
17664 for variable length FIELD_CUSTOM values. Was int * but should be
17665 u_short *.
17666
17667 2002-04-01 Andrey Kiselev <[email protected]>
17668
17669 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
17670 utility (at cpStripToTile routine).
17671
17672 2002-03-27 Frank Warmerdam <[email protected]>
17673
17674 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
17675
17676 http://bugzilla.remotesensing.org/show_bug.cgi?id=111
17677
17678 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
17679 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
17680
17681 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
17682 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
17683
17684 2002-03-26 Dwight Kelly <[email protected]>
17685
17686 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
17687 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
17688 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
17689 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
17690 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
17691 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
17692
17693 2002-03-26 Andrey Kiselev <[email protected]>
17694
17695 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
17696 now also uses TIFFRGBAImageOK before reading. This is additional fix
17697 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
17698
17699 2002-03-25 Andrey Kiselev <[email protected]>
17700
17701 * libtiff/: tif_getimage.c: Additional check for supported
17702 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
17703 TIFFRGBAImageOK before reading.
17704 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
17705
17706 2002-03-15 Andrey Kiselev <[email protected]>
17707
17708 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
17709 tif_dirwrite.c: Added routine TIFFDataWidth for determining
17710 TIFFDataType sizes instead of working with tiffDataWidth array
17711 directly. Should prevent out-of-borders bugs in case of unknown or
17712 broken data types. EstimateStripByteCounts routine modified, so it
17713 won't work when tags with unknown sizes founded.
17714 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
17715
17716 2002-03-13 Andrey Kiselev <[email protected]>
17717
17718 * libtiff/tif_getimage.c: Added support for correct handling
17719 `Orientation' tag in gtTileContig. Should be added in other gt*
17720 functions as well, but I have not images for testing yet. Partially
17721 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
17722
17723 2002-03-10 Andrey Kiselev <[email protected]>
17724
17725 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
17726 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
17727 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes
17728 http://bugzilla.remotesensing.org/show_bug.cgi?id=99
17729
17730 2002-03-08 Andrey Kiselev <[email protected]>
17731
17732 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not
17733 be stripped when installing, utility binaries will do. Closes
17734 http://bugzilla.remotesensing.org/show_bug.cgi?id=93
17735
17736 2002-02-28 Frank Warmerdam <[email protected]>
17737
17738 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
17739
17740 * man/libtiff.3t: added copyright tag info.
17741
17742 2002-02-11 Frank Warmerdam <[email protected]>
17743
17744 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
17745
17746 http://bugzilla.remotesensing.org/show_bug.cgi?id=94
17747
17748 * man/Makefile.in: Patch DESTDIR handling
17749
17750 http://bugzilla.remotesensing.org/show_bug.cgi?id=95
17751
17752 * configure: OpenBSD changes for Sparc64 and DSO version.
17753
17754 http://bugzilla.remotesensing.org/show_bug.cgi?id=96
17755
17756 2002-02-05 Frank Warmerdam <[email protected]>
17757
17758 * config.site/configure: added support for OJPEG=yes option to enable
17759 OJPEG support from config.site.
17760
17761 2002-01-27 Frank Warmerdam <[email protected]>
17762
17763 * html/document.html: fixed links for TIFf 6 docs.
17764
17765 2002-01-18 Frank Warmerdam <[email protected]>
17766
17767 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
17768
17769 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
17770 decodestrip function returns anything not greater than zero as per
17771 http://bugzilla.remotesensing.org/show_bug.cgi?id=97
17772
17773 * configure: Modify CheckForBigEndian so it can work in a cross
17774 compiled situation.
17775
17776 2002-01-16 Frank Warmerdam <[email protected]>
17777
17778 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
17779
17780 * tools/tiffset.c: fix bug in error reporting.
17781
17782 * tools/tiffcp.c: fix several warnings that show up with -Wall.
17783
17784 2002-01-04 Frank Warmerdam <[email protected]>
17785
17786 * libtiff/tif_jpeg.c: fixed computation of segment_width for
17787 tiles files to avoid error about it not matching the
17788 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
17789 size.") for ITIFF files. Apparently the problem was incorporated since
17790 3.5.5, presumably during the OJPEG/JPEG work recently.
17791
17792 2001-12-15 Frank Warmerdam <[email protected]>
17793
17794 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
17795
17796 http://bugzilla.remotesensing.org/show_bug.cgi?id=94
17797
17798 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
17799 (defined in tiffconf.h - 1 by default) then the RGBA interface
17800 will assume that a fourth extra sample is ASSOCALPHA if the
17801 EXTRASAMPLE value isn't set for it. This changes the behaviour of
17802 the library, but makes it work better with RGBA files produced by
17803 lots of applications that don't mark the alpha values properly.
17804
17805 http://bugzilla.remotesensing.org/show_bug.cgi?id=93
17806 http://bugzilla.remotesensing.org/show_bug.cgi?id=65
17807
17808 2001-12-12 Frank Warmerdam <[email protected]>
17809
17810 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
17811 override those from tiff directory. This makes this work with
17812 ImageGear generated files.
17813
17814 2001-12-07 Frank Warmerdam <[email protected]>
17815
17816 * html/Makefile.in: added missing images per bug 92.
17817
17818 * port/Makefile.in: fixed clean target per bug 92.
17819
17820 2001-11-28 Frank Warmerdam <[email protected]>
17821
17822 * Reissue 3.5.7 release.
17823
17824 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be
17825 YYYYMMDD so that it is increasing over time.
17826
17827 * Makefile.in: Ensure that tiffvers.h is regenerated in the
17828 make release target.
17829
17830 * Makefile.in: added libtiff/tiffvers.h to the release file list.
17831
17832 2001-11-23 Frank Warmerdam <[email protected]>
17833
17834 * added html/v3.5.7.html, updated html/index.html.
17835
17836 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
17837
17838 2001-11-15 Frank Warmerdam <[email protected]>
17839
17840 * configure: fixed test for -lm.
17841
17842 2001-11-02 Frank Warmerdam <[email protected]>
17843
17844 * Added PHOTOMETRIC_ITULAB as per bug 90.
17845
17846 http://bugzilla.remotesensing.org/show_bug.cgi?id=90
17847
17848 2001-10-10 Frank Warmerdam <[email protected]>
17849
17850 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
17851 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
17852 in keeping with TIFF 6.0 standard in tiff.h
17853
17854 http://bugzilla.remotesensing.org/show_bug.cgi?id=83
17855
17856 2001-09-26 Frank Warmerdam <[email protected]>
17857
17858 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
17859 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
17860
17861 2001-09-24 Frank Warmerdam <[email protected]>
17862
17863 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
17864
17865 http://bugzilla.remotesensing.org/show_bug.cgi?id=78
17866
17867 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
17868 error about LZW not being available.
17869
17870 * libtiff/tif_dir.c: propagate failure to initialize compression
17871 back from TIFFSetField() as an error status, so applications can
17872 detect failure.
17873
17874 * libtiff/tif_dir.c: removed the auto replacement of
17875 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
17876
17877 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
17878 from CVS as they are all supposed to be auto-generated by configure.
17879
17880 2001-09-22 Frank Warmerdam <[email protected]>
17881
17882 * libtiff/tif_ojpeg.c: new update from Scott.
17883
17884 2001-09-09 Frank Warmerdam <[email protected]>
17885
17886 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
17887 always use the "safe" version, even if there is a very slight
17888 cost in performance.
17889
17890 http://bugzilla.remotesensing.org/show_bug.cgi?id=54
17891
17892 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
17893 in two places.
17894
17895 * libtiff/tif_getimage.c: Fixed problem with reading strips or
17896 tiles that don't start on a tile boundary. Fix contributed by
17897 Josep Vallverdu (from HP), and further described in bug 47.
17898
17899 http://bugzilla.remotesensing.org/show_bug.cgi?id=47
17900
17901 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
17902
17903 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
17904
17905 2001-09-06 Frank Warmerdam <[email protected]>
17906
17907 * libtiff/tif_packbits.c: fixed memory overrun error.
17908
17909 http://bugzilla.remotesensing.org/show_bug.cgi?id=77
17910
17911 2001-08-31 Frank Warmerdam <[email protected]>
17912
17913 * libtiff/tif_getimage.c: relax handling of contig case where
17914 there are extra samples that are supposed to be ignored. This
17915 should now work for 8bit greyscale or paletted images.
17916
17917 http://bugzilla.remotesensing.org/show_bug.cgi?id=75
17918
17919 2001-08-28 Frank Warmerdam <[email protected]>
17920
17921 * libtiff/tif_getimage.c: Don't complain for CMYK (separated)
17922 images with more than four samples per pixel. See:
17923
17924 http://bugzilla.remotesensing.org/show_bug.cgi?id=73
17925
17926 2001-08-10 Frank Warmerdam <[email protected]>
17927
17928 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
17929 in TIFFReadRGBATile() to avoid issues in cases of overlapping
17930 buffers. See Bug 69 in Bugzilla.
17931
17932 http://bugzilla.remotesensing.org/show_bug.cgi?id=69
17933
17934 * tools/tiff2rgba.c: fixed getopt() call so that -b works again.
17935
17936 2001-08-09 Frank Warmerdam <[email protected]>
17937
17938 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
17939 when checking for 64 bit architectures as per bugzilla bug 67.
17940
17941 2001-07-27 Frank Warmerdam <[email protected]>
17942
17943 * man/Makefile.in: add TIFFClientOpen link as per debian submitted
17944 bug 66.
17945
17946 2001-07-20 Frank Warmerdam <[email protected]>
17947
17948 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
17949 has been included.
17950
17951 2001-07-19 Frank Warmerdam <[email protected]>
17952
17953 * libtiff/tif_open.c: Seek back to zero after failed read,
17954 before writing header.
17955
17956 2001-07-18 Frank Warmerdam <[email protected]>
17957
17958 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors
17959 much better. Now depends on having patched libjpeg as per
17960 patch in contrib/ojpeg/*.
17961
17962 2001-07-17 Frank Warmerdam <[email protected]>
17963
17964 * */Makefile.in: added DESTDIR support.
17965
17966 http://bugzilla.remotesensing.org/show_bug.cgi?id=60
17967
17968 2001-07-16 Frank Warmerdam <[email protected]>
17969
17970 * configure, libtiff/Makefile.in: applied OpenBSD patches
17971 as per:
17972
17973 http://bugzilla.remotesensing.org/show_bug.cgi?id=61
17974
17975 2001-06-28 Frank Warmerdam <[email protected]>
17976
17977 * libtiff/tif_getimage.c: Fixed so that failure is properly
17978 reported by gtTileContig, gtStripContig, gtTileSeparate and
17979 gtStripSeparate.
17980
17981 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
17982
17983 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
17984 Updated bug section of tiffcmp.1 to note tiled file issues.
17985
17986 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
17987
17988 2001-06-22 Frank Warmerdam <[email protected]>
17989
17990 * configure: Changes for DSO generation on AIX provided by
17991 John Marquart <[email protected]>.
17992
17993 * configure, libtiff/Makeifle.in: Modified to build DSOs properly
17994 on Darwin thanks to Robert Krajewski ([email protected]) and
17995 Keisuke Fujii ([email protected]).
17996
17997 2001-06-13 Frank Warmerdam <[email protected]>
17998
17999 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
18000
18001 * man/tiff2rgba.1: new
18002
18003 2001-05-22 Frank Warmerdam <[email protected]>
18004
18005 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
18006
18007 2001-05-13 Frank Warmerdam <[email protected]>
18008
18009 * libtiff/tools/thumbnail.c: changed default output compression
18010 to packbits from LZW since LZW isn't generally available.
18011
18012 2001-05-12 Frank Warmerdam <[email protected]>
18013
18014 * libtiff/tif_ojpeg.c: New.
18015 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
18016 to OJPEG support.
18017
18018 Scott Marovich <[email protected]> supplied OJPEG support.
18019
18020 2001-05-11 Frank Warmerdam <[email protected]>
18021
18022 * tiff.h: removed, it duplicates libtiff/tiff.h.
18023
18024 2001-05-08 Frank Warmerdam <[email protected]>
18025
18026 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to
18027 ensure everything is in order.
18028
18029 * libtiff/libtiff.def: added TIFFCreateDirectory and
18030 TIFFDefaultStripSize as per:
18031
18032 http://bugzilla.remotesensing.org/show_bug.cgi?id=46
18033
18034 2001-05-02 Frank Warmerdam <[email protected]>
18035
18036 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
18037 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
18038 force use of uint32 counts instead of short counts.
18039
18040 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
18041 case of writing TIFF_BYTE/TIFF_SBYTE fields.
18042
18043 http://bugzilla.remotesensing.org/show_bug.cgi?id=43
18044
18045 2001-05-01 Frank Warmerdam <[email protected]>
18046
18047 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
18048 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
18049
18050 2001-04-05 Frank Warmerdam <[email protected]>
18051
18052 * tiffio.h: removed C++ style comment.
18053
18054 * configure: fixed up SCRIPT_SH/SHELL handling.
18055
18056 * Makefile.in: Fixed SCRIPT_SH/SHELL handling.
18057
18058 * config.guess: documented more variables as per bug 40.
18059
18060 2001-04-03 Frank Warmerdam <[email protected]>
18061
18062 * configure, *Makefile.in: Various changes to improve configuration
18063 for HP/UX specifically, and also in general. They include:
18064 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
18065 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
18066 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
18067 - Use -${MAKEFLAGS} in sub makes from makefiles.
18068
18069 http://bugzilla.remotesensing.org/show_bug.cgi?id=40
18070
18071 2001-04-02 Frank Warmerdam <[email protected]>
18072
18073 * libtiff/tiff.h: Applied hac to try and resolve the problem
18074 with the inttypes.h include file on AIX.
18075
18076 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
18077
18078 * VERSION: update to 3.5.7 beta in preparation for release.
18079
18080 * configure/config.site: modified to check if -lm is needed for
18081 MACHDEPLIBS if not supplied by config.site. Needed for Darwin.
18082
18083 * config.guess: updated wholesale to an FSF version apparently
18084 from 1998 (as opposed to 1994). This is mainly inspired by
18085 providing for MacOS X support.
18086
18087 2001-03-29 Frank Warmerdam <[email protected]>
18088
18089 * configure, Makefile.in, etc: added support for OPTIMIZER being
18090 set from config.site.
18091
18092 2001-03-28 Frank Warmerdam <[email protected]>
18093
18094 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
18095
18096 Here's a fix for fax2ps that corrects behaviour for non-Letter paper
18097 sizes. It fixes two problems:
18098
18099 Without scaling (-S) the fax is now centered on the page size specified
18100 with -H and/or -W. Before, fax2ps was using an obscure and practically
18101 useless algorithm to allocate the image relative to Letter sized paper
18102 which sometime sled to useless whitespace on the paper, while at the
18103 same time cutting of the faxes printable area at the opposite border.
18104
18105 Second, scaling now preserves aspect ratio, which makes unusual faxes
18106 (in particular short ones) print properly.
18107
18108 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
18109
18110 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
18111 Bruce A. Mallett. See check message for detailed information
18112 on all the changes, including a faster encoder, fixes for level
18113 2 PostScript, and support for the imagemask operator.
18114
18115 2001-03-27 Frank Warmerdam <[email protected]>
18116
18117 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
18118 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
18119
18120 http://bugzilla.remotesensing.org/show_bug.cgi?id=39
18121
18122 2001-03-16 Frank Warmerdam <[email protected]>
18123
18124 * tif_dirinfo.c: moved definition of copyright tag in field list.
18125 Apparently they have to be in sorted order by tag id.
18126
18127 2001-03-13 Frank Warmerdam <[email protected]>
18128
18129 * tif_getimage.c: Added support for 16bit minisblack/miniswhite
18130 images in RGBA interface.
18131
18132 2001-03-02 Frank Warmerdam <[email protected]>
18133
18134 * Added TIFFTAG_COPYRIGHT support.
18135
18136 2001-02-19 Frank Warmerdam <[email protected]>
18137
18138 * Brent Roman contributed updated tiffcp utility (and tiffcp.1)
18139 with support for extracting subimages with the ,n syntax, and also
18140 adding the -b bias removal flag.
18141
18142 2001-02-16 Frank Warmerdam <[email protected]>
18143
18144 * libtiff/libtiff.def: Brent Roman submitted new version adding
18145 several missing entry points.
18146
18147 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
18148 Some sort of weird VMS thing.
18149
18150 http://bugzilla.remotesensing.org/show_bug.cgi?id=31
18151
18152 * tif_luv.c/tiff.h/tiffio.h:
18153 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
18154 ([email protected]). He writes:
18155
18156 1) I improved the gamut-mapping function in tif_luv.c for imaginary
18157 colors, because some images were being super-saturated on the input
18158 side and this resulted in some strange color shifts in the output.
18159
18160 2) I added a psuedotag in tiff.h to control random dithering during
18161 LogLuv encoding. This is turned off by default for 32-bit LogLuv and
18162 on for 24-bit LogLuv output. Dithering improves the average color
18163 accuracy over the image.
18164
18165 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
18166 tiffio.h, to expose internal routines for converting between LogLuv and
18167 XYZ coordinates. This is helpful for writing more efficient,
18168 specialized conversion routines, especially for reading LogLuv files.
18169
18170 Changes applied with minor edits.
18171
18172 2001-01-23 Frank Warmerdam <[email protected]>
18173
18174 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
18175 whether we are encoding or decoding. This is to ensure graceful
18176 recovery if TIFFClientOpen() discovers an attempt to open a compressed
18177 file for "r+" access, and subsequently close it, as it resets the
18178 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
18179 compressor's concept of whether it is in encode or decode mode.
18180
18181 2001-01-08 Mike Welles <[email protected]>
18182
18183 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip
18184
18185 2001-01-07 Frank Warmerdam <[email protected]>
18186
18187 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
18188 as per bug report by Patrick Connor.
18189
18190 2000-12-28 Frank Warmerdam <[email protected]>
18191
18192 * Added RELEASE-DATE file to release file list.
18193
18194 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
18195
18196 2000-12-22 Mike Welles <[email protected]>
18197 * added link to CVS mirror from index.html
18198
18199 * updated html/internals.html to note that LZW compression is
18200 not supported by default.
18201
18202 2000-12-22 Frank Warmerdam <[email protected]>
18203
18204 * updated html/libtiff.html to not point at Niles' old JPL web site
18205 for the man pages, point at www.libtiff.org.
18206
18207 2000-12-21 Frank Warmerdam <[email protected]>
18208
18209 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
18210 Leonard Rosenthol <[email protected]>. May interfere
18211 with correct building on older systems. If so, please let me know.
18212
18213 2000-12-19 Mike Welles <[email protected]>
18214
18215 * Took out LZW Encoding from tif_lzw.c
18216
18217 * Created HOWTO-RELEASE
18218
18219 * Created html/v3.5.6.html
18220
18221 * updated index.html
18222
18223 2000-12-01 Frank Warmerdam <[email protected]>
18224
18225 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
18226 Patches supplied by Frank Cringle <[email protected]>
18227 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
18228
18229 2000-11-24 Frank Warmerdam <[email protected]>
18230
18231 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private
18232 target so that the private headers required by libgeotiff can be
18233 installed with the others. They are not installed by default.
18234
18235 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
18236 targets so libtiff.so will be built with an explicit dependency
18237 on libm.so.
18238
18239 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
18240 libtiff.so.3.5.5.
18241
18242 * libtiff/Makefile.in & configure: Remove all references to the ALPHA
18243 file, or ALPHA version logic. Added stuff about DIST_POINT in
18244 place of DIST_TYPE and the alpha release number stuff.
18245
18246 2000-11-22 Frank Warmerdam <[email protected]>
18247
18248 * I have applied a patch from Steffen Moeller <[email protected]> to
18249 the configure script so that it now accepts the --prefix, and
18250 --exec-prefix directives.
18251
18252 2000-11-13 Frank Warmerdam <warmerda@cs46980-c>
18253
18254 * I have made a variety of modifications in an effort to ensure the
18255 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
18256 file which seems to be updated regularly.
18257
18258 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
18259 version include file.
18260 o renamed version.h to tiffvers.h because we now have to install it
18261 with the public libtiff include files.
18262 o include tiffvers.h in tiffio.h.
18263 o updated tif_version.c to use tiffvers.h.
18264 o Updated Makefile.in accordingly.
18265
18266 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
18267 I have updated the win32 detection rules in tiffcomp.h.
18268
18269 2000-10-20 Frank Warmerdam <warmerda@cs46980-c>
18270
18271 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which
18272 the strip/tile width and height aren't multiples of the sampling size.
18273 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
18274 Some patches from Rick LaMont of Dot C Software.
18275
18276 * Modified tif_packbits.c encoder to avoid compressing more
18277 data than provided if rowsize doesn't factor into provided data
18278 (such as occurs for YCbCr).
18279
18280 2000-10-19 Frank Warmerdam <warmerda@cs46980-c>
18281
18282 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical
18283 roundup if rows_per_strip not a multiple of vertical sample size.
18284
18285 2000-10-16 Frank Warmerdam <warmerda@cs46980-c>
18286
18287 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
18288 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
18289 from [email protected].
18290
18291 * Modified tif_packbits.c decoding to avoid overrunning the
18292 output buffer, and to issue a warning if data needs to be
18293 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
18294
18295 2000-10-12 Frank Warmerdam <warmerda@cs46980-c>
18296
18297 * Modified tiff2bw to ensure portions add to 100%, and that
18298 white is properly recovered.
18299
18300 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
18301 Patch c/o Stanislav Brabec <[email protected]>
18302
18303 2000-09-30 Frank Warmerdam <warmerda@cs46980-c>
18304
18305 * Modified TIFFClientOpen() to emit an error on an attempt to
18306 open a comperessed file for update (O_RDWR/r+) access. This is
18307 because the compressor/decompressor code gets very confused when
18308 the mode is O_RDWR, assuming this means writing only. See
18309 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
18310
18311 2000-09-27 Frank Warmerdam <warmerda@cs46980-c>
18312
18313 * Added GNULDdso target an`d switched linux and freebsd to use it.
18314
18315 2000-09-26 Frank Warmerdam <warmerda@cs46980-c>
18316
18317 * Applied patch for 0x0000 sequences in tif_fax3.h's definition
18318 of EXPAND1D() as per bug 11 (from Roman).
18319
18320 2000-09-25 Frank Warmerdam <warmerda@cs46980-c>
18321 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
18322 cygwin compatibility.
18323
18324 * Applied patch from Roman Shpount to tif_fax3.c. This seems to
18325 be a proper fix to the buffer sizing problem. See
18326 http://bugzilla.remotesensing.org/show_bug.cgi?id=11
18327
18328 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without
18329 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10
18330 Thanks to Nick Lamb <[email protected]> for reporting the
18331 bug and proving the patch.
18332
18333 2000-09-18 Frank Warmerdam <warmerda@cs46980-c>
18334
18335 * Fixed tif_jpeg.c so avoid destroying the decompressor before
18336 we are done access data thanks to bug report from:
18337 Michael Eckstein <[email protected]>.
18338
18339 * Reverted tif_flush change.
18340
18341 2000-09-14 Frank Warmerdam <warmerda@cs46980-c>
18342
18343 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an
18344 error when TIFF_BEENWRITING is not set. This ensures that the
18345 directory contents can still be flushed by TIFFFlush().
18346
18347 2000-08-14 Frank Warmerdam <[email protected]>
18348
18349 * tif_open.c: Don't set MMAP for O_RDWR files.
18350
18351 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
18352 so that files opened for update can be strip chopped too.
18353
18354 * tif_read.c: fixed up bug with files missing rowsperstrip and
18355 the strips per separation fix done a few weeks ago.
18356
18357 2000-07-17 Frank Warmerdam <warmerda@cs46980-c>
18358
18359 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
18360 SAMPLEFORMAT_COMPLEXINT.
18361
18362 2000-07-13 Mike Welles <[email protected]>
18363
18364 * index.html, bugs.html: added bugzilla info.
18365
18366 2000-07-12 Frank Warmerdam <[email protected]>
18367
18368 * tif_read.c: fix subtle bug with determining the number of
18369 rows for strips that are the last strip in a separation but
18370 not the last strip of all in TIFFReadEncodedStrip().
18371
18372 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by
18373 Peter Skarpetis <[email protected]>
18374
18375 2000-06-15 Frank Warmerdam <[email protected]>
18376
18377 * Modified tiffio.h logic with regard to including windows.h. It
18378 won't include it when building with __CYGWIN__.
18379
18380 2000-05-11 Frank Warmerdam <warmerda@cs46980-c>
18381
18382 * README: update to mention www.libtiff.org, don't list Sam's old
18383 email address.
18384
18385 * configure: Fixed DSO test for Linux as per patch from
18386 Jan Van Buggenhout <[email protected]>.
18387
18388 2000-04-21 Frank Warmerdam <[email protected]>
18389
18390 * libtiff/tif_dirread.c: Don't use estimate strip byte count for
18391 one tile/strip images with an offset, and byte count of zero. These
18392 could be "unpopulated" images.
18393
18394 2000-04-18 Frank Warmerdam <[email protected]>
18395
18396 * contrib/addtiffo: Added "averaging" resampling option.
18397
18398 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
18399
18400 Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]>
18401
18402 * tools/Makefile.in: Modified to install properly on SGI.
18403
18404 2000-04-12 Mike Welles <[email protected]>
18405 * configure: Fixed stupid mistake in libc6 test on Linux
18406
18407 2000-04-04 Mike Welles <[email protected]>
18408 * tif_win32.c: Applied patch to fix overreads and ovverwrites
18409 caught by BoundsChecker. From Arvan Pritchard
18410 <[email protected]> (untested).
18411
18412 * tif_getimage.c: Applied patch to silence VC6 warnings. From
18413 Arvan Pritchard <[email protected]>
18414
18415 * tif_lzw.c: Applied patch to silence VC6 warnings. From
18416 Arvan Pritchard <[email protected]>
18417
18418 2000-03-28 Frank Warmerdam <warmerda@cs46980-c>
18419
18420 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
18421
18422 2000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release ***
18423
18424 * fax2ps: Fixed mixup of width and height in bounding box statement
18425 as per submission by Nalin Dahyabhai <[email protected]>.
18426
18427 2000-03-27 Mike Welles <[email protected]>
18428
18429 * fax2ps: Modified printruns to take uint32 instead of uint16.
18430 Patch courtesy of Bernt Herd <[email protected]>
18431
18432 2000-03-20 Mike Welles <[email protected]>
18433
18434 * configure: added test for libc6 for linux targets. Bug reported by
18435 Stanislav Brabec <[email protected]>
18436
18437 * Added 3.5 docs to html/Makefile.in.
18438 Thanks to Stanislav Brabec <[email protected]>
18439
18440 * configure: fixed bugs in sed scripts
18441 (applied sed script s:/@:s;@:;s:/s;;:;: to configure).
18442 fix submitted to Stanislav Brabec <[email protected]>
18443
18444 * tools/iptcutil was not in files list, and wasn't being
18445 added to tar archive. Updated Makefile.in.
18446
18447 2000-03-17 Frank Warmerdam <warmerda@cs46980-c>
18448
18449 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
18450 conversion for the run arrays.
18451
18452 2000-03-03 Frank Warmerdam <[email protected]>
18453
18454 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
18455 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
18456
18457 2000-03-02 Frank Warmerdam <[email protected]>
18458
18459 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
18460
18461 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
18462 to avoid overruns encountered with frle_bug.tif.
18463
18464 Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]>
18465
18466 * Fixed tools/tiffcmp so that stopondiff testing works.
18467 Patch care of Joseph Orost <[email protected]>.
18468
18469 2000-01-28 <warmerda@CS46980-B>
18470
18471 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
18472 set to 1, and added default (off) setting in tiffconf.h. This
18473 should eventually be set by the configure script somehow.
18474
18475 The original work on all these 2-4GB changes was done by
18476 Peter Smith ([email protected]).
18477
18478 * Modified tif_win32.c to support 2-4GB seeks.
18479
18480 * tentatively changed toff_t to be unsigned instead of signed to
18481 facilitate support for 2-4GB files.
18482
18483 * Updated a variety of files to use toff_t. Fixed some mixups
18484 between toff_t and tsize_t.
18485
18486 Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]>
18487
18488 * Largely reimplemented contrib/addtiffo to avoid temp files,
18489 updating the TIFF file in place. Fixed a few other bugs to.
18490
18491 * Set tif_rawdatasize to zero when freeing raw data buffer in
18492 TIFFWriteDirectory().
18493
18494 * Enabled "REWRITE_HACK" in tif_write.c by default.
18495
18496 * Fix bug in tif_write.c when switching between reading one directory
18497 and writing to another.
18498
18499 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
18500
18501 Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]>
18502
18503 * Added TIFFmemory(3t) functions to libtiff.def.
18504
18505 Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]>
18506
18507 * Added libtiff/libtiff.def to TIFFILES distribution list.
18508
18509 Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]>
18510
18511 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
18512
18513 * Altered descriptions in tools to reflect "by default" lzw not supported
18514
18515 * Updated index.html to note lzw compression kit.
18516
18517 Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]>
18518
18519 * Added fax3sm_winnt.c to distribution list in Makefile.in.
18520
18521 Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release ***
18522
18523 * Added Pixar tag support. Contributed by Phil Beffery <[email protected]>
18524
18525 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice
18526 when LZW compression invoked.
18527
18528 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
18529 in tools to reflect removal of LZW compression
18530
18531 Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]>
18532
18533 * Fixed bug that caused LZW (non) compression to segfault. Added
18534 warning about LZW compression removed being removed, and why.
18535
18536 * Added nostrip to install in tools/Makefile.in so that debugging
18537 symbols are kept.
18538
18539 Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]>
18540
18541 * Added patch from Ivo Penzar <[email protected]>,
18542 supporting Adobe ZIP deflate. Untested.
18543
18544 Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]>
18545
18546 * Made Packbits the default compression in tools/tiff2rgba.c instead
18547 of LZW.
18548
18549 Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release ***
18550
18551 * Added tif_luv to contrib/djgpp/Makefile.lib.
18552
18553 Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]>
18554
18555 * Added zip creation to release makefile target
18556
18557 * Added html for TIFFWriteTile.3t man page.
18558
18559 Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]>
18560
18561 * Added some changes to tif_write.c to support rewriting existing
18562 fixed sized tiles and strips. Code mods disabled by default, only
18563 enabled if REWRITE_HACK is defined for now.
18564
18565 Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]>
18566
18567 * Added TIFFWriteTile.3t man page.
18568
18569 Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]>
18570
18571 * Added notes on use of makefile.vc in build.html, and fixed
18572 email subscription address.
18573
18574 199-11-28 Mike Welles <[email protected]>
18575
18576 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
18577
18578 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
18579 from Bruce Carmeron <[email protected]> -- modifications of
18580 changes made by Frank (sun cc still complained on cast).
18581
18582 * Added tiffconf.h to install target per request from Bill
18583 Radcliffe <[email protected]>: "We need a way for ImageMagick to
18584 know features have been compiled into the TIFF library in order to
18585 handle things properly".
18586
18587 Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]>
18588
18589 * fixed various VC++ warnings as suggested by Gilles Vollant
18590 <[email protected]>.
18591
18592 Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]>
18593
18594 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
18595 not imply applications are responsible for image data swapping.
18596
18597 1999-11-22 Mike Welles <[email protected]>
18598 * HTML-ized the man pages, added to html/man
18599
18600 * Removed LZW Compression to comply with Unisys patent extortion.
18601
18602 1999-09-29 Mike Welles <[email protected]>
18603 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
18604 From Ivo Penzar <[email protected].
18605
18606 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
18607 memory mapped files. <[email protected]>
18608
18609 1999-09-26 Mike Welles <[email protected]> *** 3.5.2 release ***
18610 * Corrected alpha versioning.
18611
18612 * Removed distinction between alpha and release targets in Makefile.in.
18613
18614 * added release.stamp target, which tags cvs tree, and updates
18615 "RELEASE-DATE"
18616
18617 * added releasediff target, which diffs tree with source as of
18618 date in "RELEASE-DATE"
18619
18620 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
18621 away from alpha/non-alpha distinctions).
18622
18623 * updated html to reflect release
18624
18625 1999-09-23 <warmerda@CS46980-B>
18626
18627 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
18628
18629 * Added CYGWIN case in configure.
18630
18631 Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]>
18632
18633 * Applied Francois Dagand's patch to handle fax decompression bug.
18634 (sizes >= 65536 were failing)
18635
18636 Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]>
18637
18638 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
18639 by Christopher Lawton <[email protected]>
18640
18641 Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]>
18642
18643 * Added IRIX/gcc, and OSF/1 4.x support on behalf of
18644 Albert Chin-A-Young <[email protected]>
18645
18646 * Added TIFFReassignTagToIgnore() API on behalf of
18647 Bruce Cameron <[email protected]>. Man page still pending.
18648
18649 Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]>
18650
18651 * Added test target in Makefile, test_pics.sh script and pics/*.rpt
18652 files to provide for a rudimentary testsuite.
18653
18654 * Added contrib/tags back from old distribution ... fixed up a bit.
18655
18656 1999-08-16 <warmerda@CS46980-B>
18657
18658 * Added simple makefile.vc makefiles for building with MS VC++
18659 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give
18660 better solutions for some users.
18661
18662 Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]>
18663
18664 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't
18665 put it in tools since part of it is in C++.
18666
18667 1999-08-16 Michael L. Welles <[email protected]>
18668
18669 * Updated html/index.html with anon CVS instructions.
18670
18671 Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]>
18672
18673 * pre-remove so link before softlink in LINUXdso action in
18674 libtiff/Makefile.in to avoid failure on LINUXdso builds other than
18675 the first.
18676
18677 * Fixed problem with cvtcmap() in tif_getimage.c modifying the
18678 colormaps owned by the TIFF handle itself when trying to fixup wrong
18679 (eight bit) colormaps. Corrected by maintaining a private copy of
18680 the colormap.
18681
18682 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
18683 tif_getimage.c.
18684
18685 * CVS Repository placed at remotesensing.org. ChangeLog added.