diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2022-09-29 14:00:32 +0200 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2022-09-29 12:43:37 +0000 |
commit | 64e455da1c05a9fafe7125690053fb951268a733 (patch) | |
tree | 05e18a72cc36adb4894fa8f7ca4316faf56944bc /src | |
parent | f341260e70af4bd18822066603ebb1a9dbca2df9 (diff) | |
download | qtimageformats-64e455da1c05a9fafe7125690053fb951268a733.tar.gz |
Fix bundled libtiff compilation lzw warning and reading failure
A lacking #include of stdlib.h leads to a compilation warning and
runtime reading failure on some platforms. Observed on MSVC2019 in
debug mode.
Fix by applying commit cbd71793f58c0eda8128f799d415c56e5c64eaa5 in the
upstream libtiff repo.
Fixes: QTBUG-107040
Pick-to: 6.4 6.2 5.15
Change-Id: Ic76c4627632302423d0e0f8f1b51df342e62b420
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/libtiff/libtiff/tif_lzw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdparty/libtiff/libtiff/tif_lzw.c b/src/3rdparty/libtiff/libtiff/tif_lzw.c index 096824d..8c3205f 100644 --- a/src/3rdparty/libtiff/libtiff/tif_lzw.c +++ b/src/3rdparty/libtiff/libtiff/tif_lzw.c @@ -39,6 +39,7 @@ #include <stdbool.h> #include <stdio.h> +#include <stdlib.h> /* Select the plausible largest natural integer type for the architecture */ #define SIZEOF_WORDTYPE SIZEOF_SIZE_T |