Matej Cepl
5d7ef421df
- fix build with libtiff 4.2.0
- added patches
fix https://github.com/python-pillow/Pillow/pull/5153
+ python-Pillow-tiff-4.2.0.patch
fix 416f12e772
+ python-Pillow-tiff-fix-oob-read.patch
OBS-URL: https://build.opensuse.org/request/show/859409
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=106
23 lines
977 B
Diff
23 lines
977 B
Diff
diff --git a/src/libImaging/TiffDecode.c b/src/libImaging/TiffDecode.c
|
|
index bdb524bec2..f33cbc6bd6 100644
|
|
--- a/src/libImaging/TiffDecode.c
|
|
+++ b/src/libImaging/TiffDecode.c
|
|
@@ -573,7 +573,6 @@ int ImagingLibTiffEncodeInit(ImagingCodecState state, char *filename, int fp) {
|
|
int ImagingLibTiffMergeFieldInfo(ImagingCodecState state, TIFFDataType field_type, int key, int is_var_length){
|
|
// Refer to libtiff docs (http://www.simplesystems.org/libtiff/addingtags.html)
|
|
TIFFSTATE *clientstate = (TIFFSTATE *)state->context;
|
|
- char field_name[10];
|
|
uint32 n;
|
|
int status = 0;
|
|
|
|
@@ -586,7 +585,7 @@ int ImagingLibTiffMergeFieldInfo(ImagingCodecState state, TIFFDataType field_typ
|
|
int passcount = 0;
|
|
|
|
TIFFFieldInfo info[] = {
|
|
- { key, readcount, writecount, field_type, FIELD_CUSTOM, 1, passcount, field_name }
|
|
+ { key, readcount, writecount, field_type, FIELD_CUSTOM, 1, passcount, "CustomField" }
|
|
};
|
|
|
|
if (is_var_length) {
|
|
|