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 overflow. It also corrects error message in 
getint(), getdouble() and getboolean() methods (e.g. "must be int or str" 
instead of "must be str") and adds tests for them.

----------
assignee: serhiy.storchaka
components: Tkinter
files: tkinter_strlen_overflow.patch
keywords: patch
messages: 218898
nosy: gpolo, loewis, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: String length overflow in Tkinter
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35312/tkinter_strlen_overflow.patch

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

Reply via email to