This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2013-02-03.19:35:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359920139.05.0.774798858282.issue17119@psf.upfronthosting.co.za>
In-reply-to
Content
Second argument of Tcl_NewUnicodeObj() which specifies a number of characters has type "int". When a large string with more than INT_MAX characters passed to Tkinter this value will overflow. If this parameter is negative, all characters up to the first null character are used (up to the end of string because current string implementation has null character after the end). When string length will be more than UINT_MAX, always only part of string will be converted.

I propose explicitly check a string length and raise an exception when the length overflows C int range.
History
Date User Action Args
2013-02-03 19:35:39serhiy.storchakasetrecipients: + serhiy.storchaka
2013-02-03 19:35:39serhiy.storchakasetmessageid: <1359920139.05.0.774798858282.issue17119@psf.upfronthosting.co.za>
2013-02-03 19:35:39serhiy.storchakalinkissue17119 messages
2013-02-03 19:35:38serhiy.storchakacreate