forked from pool/python-Pillow
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
15 lines
610 B
Diff
15 lines
610 B
Diff
diff --git a/src/libImaging/TiffDecode.c b/src/libImaging/TiffDecode.c
|
|
index f33cbc6bd6..d86a42915b 100644
|
|
--- a/src/libImaging/TiffDecode.c
|
|
+++ b/src/libImaging/TiffDecode.c
|
|
@@ -578,7 +578,7 @@ int ImagingLibTiffMergeFieldInfo(ImagingCodecState state, TIFFDataType field_typ
|
|
|
|
// custom fields added with ImagingLibTiffMergeFieldInfo are only used for
|
|
// decoding, ignore readcount;
|
|
- int readcount = 0;
|
|
+ int readcount = 1;
|
|
// we support writing a single value, or a variable number of values
|
|
int writecount = 1;
|
|
// whether the first value should encode the number of values.
|
|
|