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 ezio.melotti, serhiy.storchaka
Date 2013-06-10.21:00:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370898013.19.0.579439947433.issue18184@psf.upfronthosting.co.za>
In-reply-to
Content
Currently PyUnicode_FromFormat doesn't check an argument for %c and can raise SystemError only due maxchar check in PyUnicode_New. On 2.7 an error doesn't raised, but %c argument can be silently wrapped (on narrow build) or illegal Unicode string can be created (on wide build). The proposed patch adds explicit range check for %c argument.
History
Date User Action Args
2013-06-10 21:00:13serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti
2013-06-10 21:00:13serhiy.storchakasetmessageid: <1370898013.19.0.579439947433.issue18184@psf.upfronthosting.co.za>
2013-06-10 21:00:13serhiy.storchakalinkissue18184 messages
2013-06-10 21:00:13serhiy.storchakacreate