[issue21552] String length overflow in Tkinter

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue21552] String length overflow in Tkinter

2014-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59468bd68789 by Serhiy Storchaka in branch '2.7': Issue #21552: Fixed possible integer overflow of too long string lengths in http://hg.python.org/cpython/rev/59468bd68789 New changeset a90cddfd9e47 by Serhiy Storchaka in branch '3.4': Issue #21552:

[issue21552] String length overflow in Tkinter

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a little simpler patch. Instead of checking string length in custom converter, it is checked after invocation of PyArg_ParseTuple. Also added bigmem tests. -- Added file: http://bugs.python.org/file35345/tkinter_strlen_overflow_alt.patch ___

[issue21552] String length overflow in Tkinter

2014-05-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file35313/tkinter_strlen_overflow-2.7.patch ___ Python tracker ___ ___ Python

[issue21552] String length overflow in Tkinter

2014-05-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Tkinter converts str argument to C string and then pass it to Tcl. But Tcl handles string length as int and it can overflow if strlen() returns value > INT_MAX. Proposed patch introduces special conversion functions which ensure that string length will not