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 vstinner
Recipients ezio.melotti, flox, georg.brandl, loewis, mark.dickinson, pepalogik, vstinner
Date 2013-02-07.16:19:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwbauwb-PDWUNWquwN--wvHQfaffzbJr6MTb-atTXztLKQ@mail.gmail.com>
In-reply-to <1360251894.01.0.235051741789.issue17137@psf.upfronthosting.co.za>
Content
Ok, it's a bug in the function resize a compact Unicode string,
resize_compact(): wstr field is not updated to the new size.

Attached patch should fix it. The bug was introduced by me in Python 3.3.

I don't think that it's possible to resize wstr buffer instead of
freeing it: it will not be refilled by PyUnicode_AsUnicodeAndSize() if
wstr is not NULL. An alternative is to create a new string (instead of
using realloc) if wstr is not NULL.

2013/2/7 Florent Xicluna <report@bugs.python.org>:
>
> Changes by Florent Xicluna <florent.xicluna@gmail.com>:
>
>
> ----------
> components:  -Windows
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue17137>
> _______________________________________
Files
File name Uploaded
pep393.patch vstinner, 2013-02-07.16:19:50
History
Date User Action Args
2013-02-07 16:19:51vstinnersetrecipients: + vstinner, loewis, georg.brandl, mark.dickinson, ezio.melotti, flox, pepalogik
2013-02-07 16:19:51vstinnerlinkissue17137 messages
2013-02-07 16:19:51vstinnercreate