Message279377
| 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:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, twouters |
| 2016年10月25日 08:42:38 | serhiy.storchaka | set | messageid: <1477384958.56.0.348226525615.issue28526@psf.upfronthosting.co.za> |
| 2016年10月25日 08:42:38 | serhiy.storchaka | link | issue28526 messages |
| 2016年10月25日 08:42:38 | serhiy.storchaka | create |
|