homepage

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, twouters
Date 2016年10月25日.08:42:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477384958.56.0.348226525615.issue28526@psf.upfronthosting.co.za>
In-reply-to
Content
PyUnicode_AsEncodedObject() can return an object of arbitrary type, while PyUnicode_AsEncodedString() always returns bytes. The code that uses PyUnicode_AsEncodedObject() in the _curses module expects bytes, but does not check the type of the result. This can cause undefined behavior, including a crash. Using PyUnicode_AsEncodedString() is more correct in this case.
History
Date User Action Args
2016年10月25日 08:42:38serhiy.storchakasetrecipients: + serhiy.storchaka, twouters
2016年10月25日 08:42:38serhiy.storchakasetmessageid: <1477384958.56.0.348226525615.issue28526@psf.upfronthosting.co.za>
2016年10月25日 08:42:38serhiy.storchakalinkissue28526 messages
2016年10月25日 08:42:38serhiy.storchakacreate

AltStyle によって変換されたページ (->オリジナル) /