summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix_558' into 'master'HEADmasterEven Rouault2023-05-167-38/+31
|\ | | | | | | | | Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of TIFFOpen()... See merge request libtiff/libtiff!488
| * Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of ↵Even Rouault2023-05-096-37/+30
| | | | | | | | TIFFOpen() to warn and an alias of FILLORDER_MSB2LSB
| * tif_lerc.c: use WORDS_BIGENDIAN instead of HOST_BIGENDIANEven Rouault2023-05-091-1/+1
|/
* Merge branch 'fix_484_TIFFDirectory_32_64_bit' into 'master'Even Rouault2023-05-072-5/+5
|\ | | | | | | | | | | | | Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 bits. Closes #484 See merge request libtiff/libtiff!471
| * Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 ↵Su_Laus2023-02-082-5/+5
| | | | | | | | | | | | bits. Closes #484
* | Merge branch 'DNG_1.6_EP_tags' into 'master'Even Rouault2023-05-078-1514/+2623
|\ \ | | | | | | | | | | | | Add DNG tags up to version 1.6.0.0 and some TIFF/EP tags and update documentation See merge request libtiff/libtiff!482
| * | Add DNG tags up to version 1.6.0.0 and some TIFF/EP tags and update ↵Su_Laus2023-04-258-1514/+2623
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | documentation Amend MR !337 'Add support for DNG tags up to version 1.6.0.0 and some TIFF/EP tags' from Sami Liedes: - Set most tags to OkToChange=1. - Define BATTERYLEVEL tag as ASCII and convert values of rational variant to ASCII. - TIFF documentation updated for tags recognized by LibTiff (DNG 1.6 and others). - TIFF/EP tags added, which are equivalent to EXIF tags. This addresses part of #418 as well. - Definition of tags reformatted (clang-format off) for better readability of tag comments in tiff.h and tif_dirinfo.c
* | | Merge branch 'issue547' into 'master'Even Rouault2023-05-071-2/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | do not install libtiff-4.pc when tiff-install is reset Closes #547 See merge request libtiff/libtiff!481
| * | | do not install libtiff-4.pc when tiff-install is resetRoman2023-04-231-2/+4
| | | |
* | | | Merge branch 'fix_548' into 'master'Even Rouault2023-05-061-0/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LZWDecode(): avoid crash when trying to read again from a strip whith a... Closes #548 See merge request libtiff/libtiff!484
| * | | | LZWDecode(): avoid crash when trying to read again from a strip whith a ↵Even Rouault2023-04-291-0/+5
| |/ / / | | | | | | | | | | | | missing end-of-information marker (fixes #548)
* | | | Merge branch 'tiffcrop_fix_553_multi-image-errors' into 'master'Even Rouault2023-05-061-4/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tiffcrop: fix 553 by considering error return of writeSelections() Closes #553 See merge request libtiff/libtiff!485
| * | | | Consider error return of writeSelections().Su_Laus2023-05-051-4/+9
| |/ / / | | | | | | | | | | | | Fixes #553
* | | | Merge branch 'tif_ojpeg_fix-554_FPE' into 'master'Even Rouault2023-05-061-0/+3
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | tif_ojpeg.c fix 554 by checking for division by zero Closes #554 See merge request libtiff/libtiff!486
| * | | tif_ojpeg.c fix 554 by checking for division by zeroSu Laus2023-05-061-0/+3
|/ / /
* | | Merge branch 'mymaster1' into 'master'Even Rouault2023-04-211-2/+2
|\ \ \ | |/ / |/| | | | | | | | fix runtime error: applying zero offset to null pointer See merge request libtiff/libtiff!479
| * | countInkNamesString(): fix `UndefinedBehaviorSanitizer`: applying zero ↵xiaoxiaoafeifei2023-04-211-2/+2
|/ / | | | | | | offset to null pointer
* | Merge branch 'tif_ovrcache_TIFFSetSubDirectory' into 'master'Even Rouault2023-03-261-2/+7
|\ \ | | | | | | | | | | | | tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573) See merge request libtiff/libtiff!478
| * | tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573)Even Rouault2023-03-261-2/+7
|/ /
* | Merge branch 'even_faster_setdirectory_with_IFDlist' into 'master'Even Rouault2023-03-266-46/+469
|\ \ | | | | | | | | | | | | Even faster TIFFSetDirectory() using IFD list. See merge request libtiff/libtiff!477
| * | Even faster TIFFSetDirectory() using IFD list.Su Laus2023-03-266-46/+469
|/ /
* | Merge branch 'faster-setdirectory_newMR' into 'master'Even Rouault2023-03-126-72/+608
|\ \ | | | | | | | | | | | | Optimize relative seeking with TIFFSetDirectory See merge request libtiff/libtiff!474
| * | Optimize relative seeking with TIFFSetDirectorySu Laus2023-03-126-72/+608
|/ /
* | Merge branch 'master' into 'master'Even Rouault2023-03-111-1/+6
|\ \ | | | | | | | | | | | | Fix memory leak in tiffcrop.c See merge request libtiff/libtiff!475
| * | Fix memory leak in tiffcrop.czhailiangliang2023-03-081-1/+6
|/ /
* | Merge branch 'skip-thumbnail-test' into 'master'Even Rouault2023-02-232-82/+91
|\ \ | | | | | | | | | | | | | | | | | | test: avoid running tool tests if not built Closes #421 See merge request libtiff/libtiff!334
| * | test (cmake): skip script tests if tools aren't builtSam James2023-02-221-81/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Gentoo, we avoid building the tools for multilib (32-bit, x86) builds on amd64/x86_64 because we only need the library to keep binary applications working. This causes a test failure in e.g. tiffcp-thumbnail.sh as the 'thumbnail' binary isn't built. Skip it if unavailable. Fixes: https://gitlab.com/libtiff/libtiff/-/issues/421 Signed-off-by: Sam James <sam@gentoo.org>
| * | test (autotools): skip script tests if tools aren't builtSam James2023-02-221-1/+6
|/ / | | | | | | | | | | | | | | | | | | In Gentoo, we avoid building the tools for multilib (32-bit, x86) builds on amd64/x86_64 because we only need the library to keep binary applications working. This causes a test failure in e.g. tiffcp-thumbnail.sh as the 'thumbnail' binary isn't built. Skip it if unavailable. Fixes: https://gitlab.com/libtiff/libtiff/-/issues/421
* | Merge branch 'fix_Unlink_first_directory_0' into 'master'Even Rouault2023-02-161-0/+18
|\ \ | | | | | | | | | | | | Fix TIFFUnlinkDirectory(0) case and unlink of first directory. See merge request libtiff/libtiff!460
| * | Fix TIFFUnlinkDirectory(0) case and unlink of first directory.Su_Laus2023-02-041-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | 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. In addition, the error case for dirn=0 is handled. This MR fixes that by updating the base offset variables tif->tif_header.classic.tiff_diroff and tif->tif_header.big.tiff_diroff.
* | | Merge branch 'tif_luv_check_NaN_fix_#530' into 'master'Even Rouault2023-02-161-0/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tif_luv: Check and correct for NaN data in uv_encode(). Closes #530 See merge request libtiff/libtiff!473
| * | | tif_luv: Check and correct for NaN data in uv_encode().Su_Laus2023-02-161-0/+7
|/ / / | | | | | | | | | | | | | | | Closes #530 See merge request !473
* | | Merge branch 'tiffcrop_dont_reuse_input_buffer_fix_527' into 'master'Even Rouault2023-02-141-34/+13
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | tiffcrop: Do not reuse input buffer for subsequent images. Fix issue 527 Closes #527 See merge request libtiff/libtiff!472
| * | tiffcrop: Do not reuse input buffer for subsequent images. Fix issue 527Su_Laus2023-02-141-34/+13
|/ / | | | | | | | | | | 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. Closes #527
* | Merge branch 'test_ifd_loop_detection_fix_CoverityScan_ln_55' into 'master'Even Rouault2023-02-081-7/+11
|\ \ | | | | | | | | | | | | test_ifd_loop_detection: fix Coverity Scan issue CID 1520750: Null pointer... See merge request libtiff/libtiff!470
| * | test_ifd_loop_detection: fix Coverity Scan issue CID 1520750: Null pointer ↵Su_Laus2023-02-081-7/+11
| | | | | | | | | | | | dereferences (NULL_RETURNS) line 55.
* | | Merge branch 'tiffcrop_fix_CoverityScan_line_9676' into 'master'Even Rouault2023-02-061-1/+1
|\ \ \ | |/ / |/| | | | | | | | Fix Coverity Scan issue CID 1520761: Integer handling issues... See merge request libtiff/libtiff!469
| * | Fix Coverity Scan issue CID 1520761: Integer handling issues ↵Su_Laus2023-02-061-1/+1
|/ / | | | | | | (OVERFLOW_BEFORE_WIDEN) tiffcrop.c: 9676 in rotateImage()
* | Merge branch 'tiffcrop_R270_fix#492' into 'master'Even Rouault2023-02-051-24/+35
|\ \ | | | | | | | | | | | | | | | | | | tiffcrop: Amend rotateImage() not to toggle the input (main) image width and... Closes #519, #518, #499, #495, #494, #493 et #492 See merge request libtiff/libtiff!465
| * | tiffcrop: Amend rotateImage() not to toggle the input (main) image width and ↵Su_Laus2023-02-051-24/+35
|/ / | | | | | | | | | | | | | | length parameters when only cropped image sections are rotated. Remove buffptr from region structure because never used. Closes #492 #493 #494 #495 #499 #518 #519
* | Merge branch 'tiffcrop_correctly_update_buffersize_after_rotate_fix#520' ↵Even Rouault2023-02-051-19/+53
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | into 'master' tiffcrop correctly update buffersize after rotateImage() fix#520 Closes #520 See merge request libtiff/libtiff!467
| * | tiffcrop correctly update buffersize after rotateImage() fix#520 -- enlarge ↵Su_Laus2023-02-041-3/+33
| | | | | | | | | | | | buffsize and check integer overflow within rotateImage().
| * | tiffcrop correctly update buffersize after rotateImage() fix#520Su_Laus2023-02-031-16/+20
| | | | | | | | | | | | | | | | | | 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(). Closes #520.
* | | Merge branch 'tiffcrop_composite_image_assumption_test_fix#496' into 'master'Even Rouault2023-02-051-2/+66
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tiffcrop: added check for assumption on composite images (fixes #496) Closes #501, #500, #498, #497 et #496 See merge request libtiff/libtiff!466
| * | | tiffcrop: added check for assumption on composite images (fixes #496)Su Laus2023-02-051-2/+66
|/ / / | | | | | | | | | | | | | | | 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. Closes #496, #497, #498, #500, #501.
* | | Merge branch 'test_subidf_loop' into 'master'Even Rouault2023-02-043-0/+138
|\ \ \ | |_|/ |/| | | | | | | | test_ifd_loop_detection: Added test to check loops in SubIFDs that are chained. See merge request libtiff/libtiff!464
| * | test_ifd_loop_detection: Added test to check loops in SubIFDs that are chained.Su Laus2023-02-043-0/+138
| |/
* | Merge branch 'TiffClose_NULL_ptr_dereferencing_fix_515' into 'master'Even Rouault2023-02-032-5/+11
|\ \ | |/ |/| | | | | | | | | TIFFClose() avoid NULL pointer dereferencing. fix#515 Closes #515 See merge request libtiff/libtiff!468
| * TIFFClose() avoid NULL pointer dereferencing. fix#515Su_Laus2023-02-032-5/+11
|/ | | | Closes #515
* Merge branch 'add_windows_DLL_versioninfo' into 'master'Even Rouault2023-01-254-20/+138
|\ | | | | | | | | Add versioninfo resource files for DLL and tools compiled with Windows MSVC and MINGW. See merge request libtiff/libtiff!455