Message312038
Based on discussion in PR 660.
_PyUnicodeWriter_Prepare() is used incorrectly in unicode_decode_call_errorhandler_writer(), _PyUnicode_DecodeUnicodeEscape() and PyUnicode_DecodeRawUnicodeEscape() in Objects/unicodeobject.c. The second argument is the number of characters that should be reserved after the current position. But in these places the total minimal size is passed to _PyUnicodeWriter_Prepare(). This can lead to allocating more memory than necessary. |
|
| Date |
User |
Action |
Args |
| 2018-02-12 11:47:03 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, ezio.melotti, xiang.zhang |
| 2018-02-12 11:47:03 | serhiy.storchaka | set | messageid: <1518436023.7.0.467229070634.issue32827@psf.upfronthosting.co.za> |
| 2018-02-12 11:47:03 | serhiy.storchaka | link | issue32827 messages |
| 2018-02-12 11:47:03 | serhiy.storchaka | create | |
|