Hello Matthias,

I think introducing a new major version of pillow would not be a very
good idea shortly before hard freeze, especially as a small patch would
solve this issue, see attachment.

Kind regards,
Benedikt Wildenhain

-- 
Benedikt Wildenhain, M.Sc., Wiss. Mitarbeiter - Hardwarenahe IT-Systeme
Hochschule Bochum - Bochum University of Applied Sciences
Campus Velbert/Heiligenhaus - http://www.hs-bochum.de/cvh/
Höseler Platz 2, Heiligenhaus, Raum 2.28, Tel +49 (0)2056 158744
Description: Use a correct data type for Tk addresses
 There were changes in CPython which made it necessary to adjust the
 used data type for Tk addresses. This fixes Debian Bug #847812.
 .
 pillow (3.4.2-1) testing; urgency=medium
 .
   * Pillow 3.4.2 release.
   * Patched to fix crashes mentioned #847812.
Author: Benedikt Wildenhain <deb...@benedikt-wildenhain.de>
Bug-Debian: https://bugs.debian.org/847812
Bug: https://github.com/python-pillow/Pillow/issues/1902
Origin: 
https://github.com/matplotlib/matplotlib/commit/a91559b82cf23ee407cd57580653015fc7dc35f0

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2017-01-23

--- pillow-3.4.2.orig/_imagingtk.c
+++ pillow-3.4.2/_imagingtk.c
@@ -36,18 +36,18 @@ _tkinit(PyObject* self, PyObject* args)
 {
     Tcl_Interp* interp;
 
-    Py_ssize_t arg;
+    PyObject *arg;
     int is_interp;
-    if (!PyArg_ParseTuple(args, "ni", &arg, &is_interp))
+    if (!PyArg_ParseTuple(args, "Oi", &arg, &is_interp))
         return NULL;
 
     if (is_interp)
-        interp = (Tcl_Interp*) arg;
+        interp = (Tcl_Interp *)PyLong_AsVoidPtr(arg);
     else {
         TkappObject* app;
        /* Do it the hard way.  This will break if the TkappObject
           layout changes */
-        app = (TkappObject*) arg;
+        app = (TkappObject *)PyLong_AsVoidPtr(arg);
         interp = app->interp;
     }
 

Attachment: signature.asc
Description: PGP signature

Reply via email to