Christoph Gohlke added the comment:

@haypo: Thanks for fixing this so fast! Your changes work for me on 
win-amd64-py2.7 and py3.3.

I am aware of two 3rd party C extensions that use the value of interpaddr(): 

https://github.com/python-imaging/Pillow/blob/master/_imagingtk.c#L40
https://github.com/matplotlib/matplotlib/blob/master/src/_tkagg.cpp#L233

Both parse the PyObject returned by interpaddr() into a Py_ssize_t variable 
using `PyArg_ParseTuple(PyObject*, "n", &Py_ssize_t)` and then cast the 
Py_ssize_t variable to a (TkappObject*). Can a PyLong with a value > 3**31 be 
parsed into a Py_ssize_t on 32 bit platforms? Could this become a problem on 
systems where 32 bit processes can address more than 2 GB?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18909>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to