summaryrefslogtreecommitdiff
path: root/libtiff
Commit message (Collapse)AuthorAgeFilesLines
* Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of ↵Even Rouault2023-05-093-5/+27
| | | | 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-074-1137/+961
|\ \ | | | | | | | | | | | | 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-254-1137/+961
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 '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)
* | | | tif_ojpeg.c fix 554 by checking for division by zeroSu Laus2023-05-061-0/+3
|/ / /
* | | countInkNamesString(): fix `UndefinedBehaviorSanitizer`: applying zero ↵xiaoxiaoafeifei2023-04-211-2/+2
|/ / | | | | | | offset to null pointer
* | Even faster TIFFSetDirectory() using IFD list.Su Laus2023-03-264-36/+147
| |
* | Optimize relative seeking with TIFFSetDirectorySu Laus2023-03-124-13/+49
| |
* | 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.
* | tif_luv: Check and correct for NaN data in uv_encode().Su_Laus2023-02-161-0/+7
|/ | | | | | Closes #530 See merge request !473
* TIFFClose() avoid NULL pointer dereferencing. fix#515Su_Laus2023-02-031-4/+7
| | | | Closes #515
* Add versioninfo resource files for DLL and tools compiled with Windows MSVC ↵Su Laus2023-01-252-0/+59
| | | | and MINGW.
* tif_hash_set.c: include tif_hash_set.h after tif_config.h to let a chance ↵Even Rouault2023-01-221-1/+2
| | | | for GDAL symbol renaming trick
* Fax3: fix failure to decode some fax3 images (fixes #513)Even Rouault2023-01-211-1/+1
| | | | Patch by @jsummers26
* Remove use of tif_dirnumberEven Rouault2023-01-066-18/+4
|
* TIFFSetSubDirectory(): call _TIFFCleanupIFDOffsetAndNumberMaps()Even Rouault2023-01-061-0/+1
|
* struct tiff: remove unused tif_dirlistoffEven Rouault2023-01-061-5/+3
|
* TIFFUnlinkDirectory(): reset tif_dirnumberEven Rouault2023-01-061-0/+1
|
* Add _TIFFCleanupIFDOffsetAndNumberMaps() and call it from TIFFUnlinkDirectory()Even Rouault2023-01-063-2/+23
|
* Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in ↵Su_Laus2022-12-284-4/+8
| | | | because sensitive for CMake scripts. - explanation added
* Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in ↵Su_Laus2022-12-264-0/+28
| | | | because sensitive for CMake scripts.
* Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to ↵Su_Laus2022-12-161-1/+1
| | | | that of Linux.
* TIFFSetDirectory: avoid harmless unsigned-integer-overflowEven Rouault2022-12-151-2/+6
| | | | Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54343
* Merge branch 'ossfuzz_54311' into 'master'Even Rouault2022-12-141-1/+6
|\ | | | | | | | | TIFFWriteDirectorySec(): avoid harmless unsigned-integer-overflow See merge request libtiff/libtiff!446
| * TIFFWriteDirectorySec(): avoid harmless unsigned-integer-overflowEven Rouault2022-12-141-1/+6
| | | | | | | | Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54311
* | tif_hash_set.c: add a tif_config.h include (mostly for GDAL renaming symbols ↵Even Rouault2022-12-141-0/+1
|/ | | | trick)
* TIFFAdvanceDirectory()/TIFFUnlinkDirectory(): fix build warnings/errors on ↵Even Rouault2022-12-131-4/+3
| | | | OSX due to uint16_t->tdir_t type change
* TIFFHashSetInsert(): fix potential memleakEven Rouault2022-12-131-1/+6
|
* _TIFFCheckDirNumberAndOffset(): fix recently introduced use-after-free found ↵Even Rouault2022-12-131-4/+19
| | | | by CIFuzz on GDAL
* _TIFFCheckDirNumberAndOffset: fix a previous commitEven Rouault2022-12-131-2/+2
|
* Prepare libtiff v4.5.0rc2Even Rouault2022-12-131-1/+1
|
* Fix IFD loop detectionEven Rouault2022-12-136-29/+68
|
* Use UINT_MAXEven Rouault2022-12-132-5/+7
|
* Make TIFF_MAX_DIR_COUNT a autoconf/CMake settingEven Rouault2022-12-134-5/+10
|
* Add a TIFF_MAX_DIR_COUNT public #defineEven Rouault2022-12-122-5/+13
|
* TIFFCurrentDirectory(), TIFFNumberOfDirectories(), TIFFSetDirectory(), ↵Even Rouault2022-12-126-51/+51
| | | | TIFFUnlinkDirectory(): use tdir_t that is now a uint32_t, and raise limit of IFDs to 1048576
* IFD loop checking: use hashmap to avoid quadratic performanceEven Rouault2022-12-124-86/+143
|
* Add a hashset/hashmap implementation (ported from GDAL's CPLHashSet)Even Rouault2022-12-124-0/+700
|
* Make TIFFSetDirectory(tiff, 65534) work again (fixes #502)Even Rouault2022-12-121-12/+8
|
* tiffvers.h.in: add clang-format off/onEven Rouault2022-12-112-0/+14
|
* tiffvers.h: add TIFFLIB_MAJOR_VERSION, TIFFLIB_MINOR_VERSION, ↵Even Rouault2022-12-102-1/+29
| | | | | | TIFFLIB_MICRO_VERSION defines Also add a TIFFLIB_AT_LEAST() macro
* tiffvers.h: revert formattingEven Rouault2022-12-101-3/+1
|
* Prepare v4.5.0 releaseEven Rouault2022-12-091-2/+2
|
* Reformatting in libtiff/ using 'pre-commit run'pre-commit run by Even Rouault2022-12-0855-35591/+38691
|
* Remove vim/emacs formatting footersEven Rouault2022-12-0851-436/+0
|