Mark Dickinson <dicki...@gmail.com> added the comment:

Here's a patch that raises TypeError if either PyLongAs_Size_t or 
PyLong_As_Ssize_t gets called with a valid non-integer PyObject *.

I'm not sure where the most appropriate place for a test is.

----------
assignee:  -> mark.dickinson
keywords: +patch
priority:  -> normal
stage:  -> test needed
Added file: http://bugs.python.org/file16363/issue8014.patch

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

Reply via email to