summaryrefslogtreecommitdiff
path: root/graphics/py-imaging
diff options
context:
space:
mode:
authordrochner <drochner>2016-02-16 20:17:41 +0000
committerdrochner <drochner>2016-02-16 20:17:41 +0000
commitcec2ef841ecc8b02ffa8cd626aab28c80fb91c85 (patch)
treed0029883151b3725cff0104dfe365e4b0025bab6 /graphics/py-imaging
parent4f5ce74a8f4154f1813a10cedf737f74d3dd339c (diff)
downloadpkgsrc-cec2ef841ecc8b02ffa8cd626aab28c80fb91c85.tar.gz
pull in https://github.com/python-pillow/Pillow/pull/1706
fixed buffer overflow in PcdDecode bump PKGREV
Diffstat (limited to 'graphics/py-imaging')
-rw-r--r--graphics/py-imaging/Makefile4
-rw-r--r--graphics/py-imaging/distinfo3
-rw-r--r--graphics/py-imaging/patches/patch-PcdDecode24
3 files changed, 28 insertions, 3 deletions
diff --git a/graphics/py-imaging/Makefile b/graphics/py-imaging/Makefile
index b4f0a49c9d3..7870859e065 100644
--- a/graphics/py-imaging/Makefile
+++ b/graphics/py-imaging/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.51 2015/12/05 21:25:46 adam Exp $
+# $NetBSD: Makefile,v 1.52 2016/02/16 20:17:41 drochner Exp $
DISTNAME= Imaging-1.1.7
PKGNAME= ${PYPKGPREFIX}-imaging-1.1.7
-PKGREVISION= 9
+PKGREVISION= 10
CATEGORIES= graphics python
MASTER_SITES= http://effbot.org/media/downloads/
diff --git a/graphics/py-imaging/distinfo b/graphics/py-imaging/distinfo
index 7497b61c7a9..0a8d5474dfb 100644
--- a/graphics/py-imaging/distinfo
+++ b/graphics/py-imaging/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2015/11/03 21:34:17 agc Exp $
+$NetBSD: distinfo,v 1.20 2016/02/16 20:17:41 drochner Exp $
SHA1 (python/Imaging-1.1.7.tar.gz) = 76c37504251171fda8da8e63ecb8bc42a69a5c81
RMD160 (python/Imaging-1.1.7.tar.gz) = 9af570fe100e250a4860314341fe3e6d695d7fde
@@ -9,6 +9,7 @@ SHA1 (patch-PIL_IcnsImagePlugin.py) = 04d5ff3c666413178071eea2512162d6954bfc01
SHA1 (patch-PIL_Image.py) = 871994b3c8823c90ae23e6248762e403192e33fc
SHA1 (patch-PIL_IptcImagePlugin.py) = bb809394b8c6f6e5b79aa1c90f429c3362e812e3
SHA1 (patch-PIL_JpegImagePlugin.py) = d4fd6d5d60ea011def2e42460d7faa2e0f47b65e
+SHA1 (patch-PcdDecode) = 75457d449e359c25dfe4c8b7ff017b8ca6b1d2ff
SHA1 (patch-_imagingft.c) = b935ce5ebdd57061ace324f7b53055113782f89c
SHA1 (patch-ab) = f4b850da1ba15843b2d8b124c2ca8dfd17163c26
SHA1 (patch-ac) = 2ad2a988c7fdddb34812959ddfd60442282a48ea
diff --git a/graphics/py-imaging/patches/patch-PcdDecode b/graphics/py-imaging/patches/patch-PcdDecode
new file mode 100644
index 00000000000..c609d8e1540
--- /dev/null
+++ b/graphics/py-imaging/patches/patch-PcdDecode
@@ -0,0 +1,24 @@
+$NetBSD: patch-PcdDecode,v 1.1 2016/02/16 20:17:42 drochner Exp $
+
+https://github.com/python-pillow/Pillow/pull/1706
+
+--- libImaging/PcdDecode.c.orig 2016-02-16 20:03:07.000000000 +0000
++++ libImaging/PcdDecode.c
+@@ -47,7 +47,7 @@ ImagingPcdDecode(Imaging im, ImagingCode
+ out[0] = ptr[x];
+ out[1] = ptr[(x+4*state->xsize)/2];
+ out[2] = ptr[(x+5*state->xsize)/2];
+- out += 4;
++ out += 3;
+ }
+
+ state->shuffle((UINT8*) im->image[state->y],
+@@ -62,7 +62,7 @@ ImagingPcdDecode(Imaging im, ImagingCode
+ out[0] = ptr[x+state->xsize];
+ out[1] = ptr[(x+4*state->xsize)/2];
+ out[2] = ptr[(x+5*state->xsize)/2];
+- out += 4;
++ out += 3;
+ }
+
+ state->shuffle((UINT8*) im->image[state->y],