diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /media-libs/freeimage/files | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'media-libs/freeimage/files')
-rw-r--r-- | media-libs/freeimage/files/freeimage-3.18.0-null-to-false.patch | 22 | ||||
-rw-r--r-- | media-libs/freeimage/files/freeimage-3.18.0-tiff-4.4.0.patch | 12 |
2 files changed, 34 insertions, 0 deletions
diff --git a/media-libs/freeimage/files/freeimage-3.18.0-null-to-false.patch b/media-libs/freeimage/files/freeimage-3.18.0-null-to-false.patch new file mode 100644 index 000000000000..3e8e13a40b3c --- /dev/null +++ b/media-libs/freeimage/files/freeimage-3.18.0-null-to-false.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/841973 + +See also: +https://sourceforge.net/p/freeimage/mailman/message/37668470/ +https://git.alpinelinux.org/aports/commit/?id=9b938a7b38ea4b8d9a73f1bf0d90ee45bbfa9139 + +diff --git a/Source/FreeImage/PluginPSD.cpp b/Source/FreeImage/PluginPSD.cpp +index e5b5ffa..d9de81f 100644 +--- a/Source/FreeImage/PluginPSD.cpp ++++ b/Source/FreeImage/PluginPSD.cpp +@@ -127,7 +127,7 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) { + static BOOL DLL_CALLCONV + Save(FreeImageIO *io, FIBITMAP *dib, fi_handle handle, int page, int flags, void *data) { + if(!handle) { +- return NULL; ++ return FALSE; + } + try { + psdParser parser; +-- +2.35.1 + diff --git a/media-libs/freeimage/files/freeimage-3.18.0-tiff-4.4.0.patch b/media-libs/freeimage/files/freeimage-3.18.0-tiff-4.4.0.patch new file mode 100644 index 000000000000..a0c39064aa34 --- /dev/null +++ b/media-libs/freeimage/files/freeimage-3.18.0-tiff-4.4.0.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/848531 +https://bugs.gentoo.org/848534 +https://www.asmail.be/msg0055228425.html +--- a/Source/Metadata/XTIFF.cpp ++++ b/Source/Metadata/XTIFF.cpp +@@ -750,5 +750,5 @@ + } + // type of storage may differ (e.g. rationnal array vs float array type) +- if((unsigned)_TIFFDataSize(tif_tag_type) != FreeImage_TagDataWidth(tag_type)) { ++ if((unsigned)TIFFFieldSetGetSize(fld) != FreeImage_TagDataWidth(tag_type)) { + // skip tag or _TIFFmemcpy will fail + continue; |