[issue21552] String length overflow in Tkinter

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21552 ___

[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

[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
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

[issue21552] String length overflow in Tkinter

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