This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cgohlke
Recipients cgohlke, python-dev, serhiy.storchaka, vstinner
Date 2013-09-04.23:35:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378337754.24.0.619676159235.issue18909@psf.upfronthosting.co.za>
In-reply-to
Content
@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?
History
Date User Action Args
2013-09-04 23:35:54cgohlkesetrecipients: + cgohlke, vstinner, python-dev, serhiy.storchaka
2013-09-04 23:35:54cgohlkesetmessageid: <1378337754.24.0.619676159235.issue18909@psf.upfronthosting.co.za>
2013-09-04 23:35:54cgohlkelinkissue18909 messages
2013-09-04 23:35:53cgohlkecreate