summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573)Even Rouault2023-03-261-2/+7
|
* Reformatting in all other directories using 'pre-commit run'pre-commit run by Even Rouault2022-12-0828-5734/+5988
|
* Remove vim/emacs formatting footersEven Rouault2022-12-0828-210/+1
|
* Add reentrant error functionsLaramie Leavitt2022-11-086-35/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this change, libtiff relied on global error handlers, which is problematic when libtiff used by multiple independent libraries from within the same process, as they may unwittingly clobber the error handling, introduce race conditions when setting handlers, or otherwise have unintended side effects. This change adds error handlers to the TIFF struct, which are used preferentially when available. The error handlers are invoked when the re-entrant error functions are called: void TIFFErrorExtR(TIFF*, const char* module, const char* fmt, ...) void TIFFWarningExtR(TIFF*, const char* module, const char* fmt, ...) The handlers have a similar signature to the existing extended handlers, additionally returning an int: int TIFFErrorHandlerExtR(thandle_t, const char*, const char*, va_list) thandle_t is the userdata passed to TIFFOpen When the handler returns 1, the global handlers are not called. Custom error/warning handlers may be installed on a per-file basis by calling the Set functions: TIFF* tif = TIFFOpen(...); TIFFSetErrorHandlerExtR(tif, MyErrorHandler); TIFFSetWarningHandlerExtR(tif, MyWarningHandler); Additionally, the callsites to TIFFErrorExt and TIFFWarningExt have been updated to call the reentrant versions.
* Merge branch 'fix-cmake-subproject' into 'master'Roger Leigh2022-10-053-6/+6
|\ | | | | | | | | Fix CMake build to be compatible with FetchContent See merge request libtiff/libtiff!394
| * Fix CMake build to be compatible with FetchContentJeremy Maitin-Shepard2022-10-033-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent versions of CMake have improved support for including dependencies, using the FetchContent module, which allows a dependency to be imported as a subproject and then later found automatically by calls to `find_package`. This change makes libtiff's CMake better behaved when used as a sub-project: - CMake has a single global namespace for all target names in all sub-projects. This commit renames the following CMake targets: - port -> tiff_port - mkg3states -> tiff_mkg3states - faxtable -> tiff_faxtable - release -> tiff_release - When building TIFF as a sub-project, it is not normally useful to create install rules for its targets. This commit adds a `tiff-install` option that controls whether the install rules are added and defaults to OFF when libtiff is included as a sub-project. - Previously, libtiff set `BUILD_SHARED_LIBS` to ON by default. With this commit, that default is only set if libtiff is the top-level project. - When using `find_package(TIFF)`, the targets `TIFF::TIFF` and `TIFF::CXX` are defined. This commit makes libtiff itself define those targets as aliases, to allow other cmake projects to use either `find_package` or `FetchContent` interchangeably. - Adds ZSTD_HAVE_DECOMPRESS_STREAM variable which may be set to bypass `check_symbol_exists` call. Fixes https://gitlab.com/libtiff/libtiff/-/issues/472.
* | Fix #458: MinGW Windows 64: warning because 'long' is a 32 bits type in...Su Laus2022-09-261-5/+5
|/
* Add options for disabling tools, tests, contrib and docsRoger Leigh2022-05-293-0/+6
|
* iptcutil.c: fix bug in EOF comparison, spotted on NetBSD 9 earmv7hf-elEven Rouault2021-04-161-2/+2
|
* cmake: Remove empty contrib filesRoger Leigh2021-02-1316-176/+0
|
* cmake: Add FindCMath to handle libm linking portablyRoger Leigh2021-02-131-2/+2
|
* cmake: Split into helper scriptsRoger Leigh2021-02-133-18/+12
|
* cmake: Use target_sourcesRoger Leigh2021-02-083-12/+18
|
* cmake: Remove unnecessary extra_dist usageRoger Leigh2021-02-0811-56/+1
| | | | | Only makes sense in the context of Automake. Was carried over for reference while porting, but is not needed.
* Remove NMake build supportRoger Leigh2021-02-083-31/+1
| | | | | The functionality provided by the NMake build is now completely superseded by the CMake build.
* Use standard C99 integer typesRoger Leigh2021-01-2117-374/+374
|
* Merge branch 'include_libport' into 'master'Roger Leigh2021-01-103-12/+0
|\ | | | | | | | | tiff tools and libtiff/mkg3states: include 'libport.h', remove local definition of 'getopt()' See merge request libtiff/libtiff!198
| * cmake: Use target_include_directories correctlyRoger Leigh2021-01-073-12/+0
| |
* | contrib/iptcutil.c - set '#ifdef _WIN32' (was '#ifdef WIN32', which failed ↵miguel2021-01-051-3/+3
|/ | | | at build time)
* Fix spelling mistakes.Kurt Schwehr2020-12-317-10/+10
| | | | | | | Found with: codespell --version 1.17.1
* Fix compiler warnings about unused variables when assert() expands to nothingEven Rouault2020-10-121-0/+1
|
* Set the --shared-memory linker flag for Emscripten builds.Attila Oláh2020-09-242-0/+17
| | | | | | This is only needed when building with WEBP support, which uses atomics, therefore the linker needs the --shared-memory flag. The flag cannot be added globally because not all executables link against libwebp.
* contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBitsThomas Bernard2020-03-091-0/+2
| | | | | fixes #52 http://bugzilla.maptools.org/show_bug.cgi?id=2469
* contrib/oss-fuzz/build.sh: fix broken if constructEven Rouault2019-12-141-3/+1
|
* contrib/oss-fuzz/build.sh: other attempt at fixing build failureEven Rouault2019-11-281-6/+12
|
* contrib/oss-fuzz/build.sh: install liblzma-dev for x86_64 buildsEven Rouault2019-11-201-0/+2
|
* contrib/oss-fuzz/build.sh: install liblzma-dev:i386 on i386 buildsEven Rouault2019-11-171-0/+6
|
* contrib/oss-fuzz/build.sh: fix ossfuzz build by statically linking to lzmaEven Rouault2019-11-141-1/+1
|
* tiff_read_rgba_fuzzer.cc: add a -DSTANDALONE mode for easier reproduction of ↵Even Rouault2019-09-021-0/+82
| | | | oss-fuzz reports
* oss-fuzz/tiff_read_rgba_fuzzer.cc: fix wrong env variable value in previous ↵Even Rouault2019-08-111-1/+1
| | | | commit
* oss-fuzz/tiff_read_rgba_fuzzer.cc: avoid issue with libjpeg-turbo and MSANEven Rouault2019-08-111-0/+9
|
* contrib/oss-fuzz/build.sh: fix for i386 build of jbigkit, and use ↵Even Rouault2019-08-101-2/+9
| | | | $LIB_FUZZING_ENGINE
* add jbig support to the fuzzerPaul Kehrer2018-10-291-1/+9
|
* remove a pointless multiplication and a variable that's not necessaryPaul Kehrer2018-04-171-4/+2
|
* move oss-fuzz build script and fuzzer into libtiff treePaul Kehrer2018-04-172-0/+142
|
* Fix some typosStefan Weil2018-02-249-13/+13
| | | | | | Most of them were found by codespell. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Fix for bug 2772Nathan Baker2018-02-121-1/+13
| | | | | | | | | | | | It is possible to craft a TIFF document where the IFD list is circular, leading to an infinite loop while traversing the chain. The libtiff directory reader has a failsafe that will break out of this loop after reading 65535 directory entries, but it will continue processing, consuming time and resources to process what is essentially a bogus TIFF document. This change fixes the above behavior by breaking out of processing when a TIFF document has >= 65535 directories and terminating with an error.
* Fix all compiler warnings for default buildNathan Baker2018-02-041-0/+1
|
* Remove remaining .cvsignore filesEven Rouault2017-12-0111-34/+0
|
* Remove autoconf/automake generated files, and add them to .gitignoreEven Rouault2017-12-0111-6312/+0
|
* Regenerate autoconf filesEven Rouault2017-11-3011-0/+11
|
* Remove all $Id and $Headers comments with CVS versionsEven Rouault2017-11-3013-27/+0
|
* fax2tiff: Pass the FAX_Client_Data struct as client dataBob Friesenhahn2017-10-2911-11/+0
|
* * refresh autoconf/make stuff with what is on Ubuntu 16.04 (minor changes)Even Rouault2017-07-1111-0/+11
|
* * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn forBob Friesenhahn2016-04-0811-69/+209
| | | | purposes of security issue reporting.
* * libtiff/*.c: fix clang -Wshorten-64-to-32 warningsEven Rouault2015-11-1811-198/+69
|
* * Makefile.am (distcheck-hook), configure.ac: Applied patches byBob Friesenhahn2015-09-0111-0/+11
| | | | | | Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue with BSD make and to make use of cmake in 'distcheck' target conditional on if cmake is available.
* All the CMakeLists.txt files were missing from the distribution tarball.Bob Friesenhahn2015-08-3022-28/+125
|
* Use consistent line terminations.Bob Friesenhahn2015-08-2811-34/+34
|
* * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted toBob Friesenhahn2015-06-2511-0/+351
| | | | | | | libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several corrections to ensure that the autotools build still works were added by me. I have not yet tested the build using 'cmake' or MSVC with 'nmake'.