[New-bugs-announce] [issue21552] String length overflow in Tkinter

Serhiy Storchaka report at bugs.python.org
Thu May 22 16:42:02 CEST 2014

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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list