Message279377
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. |
|
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 | |
|