Serhiy Storchaka added the comment: Good catch Armin! Thank you for your review.
Updated patch uses PyString_AsStringAndSize() and adds a check that result is exact str before changing it in-place. ---------- Added file: http://bugs.python.org/file45701/issue11145_5.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11145> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com