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 doerwalter, lemburg, loewis, vstinner
Date 2010-04-20.19:38:46
SpamBayes Score 0.0041256067
Marked as misclassified No
Message-id <1271792329.1.0.52560935148.issue8092@psf.upfronthosting.co.za>
In-reply-to
Content
New version without the hardcoded limit: don't use goto encodeUCS4;, chain if to limit indentation depth: it only costs one copy of the UCS4 (5 lines are duplicated).

The buffer is now reallocated each time a surrogate escape is longer than 4 bytes.

I don't know if "nallocated += repsize - 4;" can overflow or not. If yes, how can I detect the overflow? I added: /* FIXME: check integer overflow? */
History
Date User Action Args
2010-04-20 19:38:49vstinnersetrecipients: + vstinner, lemburg, loewis, doerwalter
2010-04-20 19:38:49vstinnersetmessageid: <1271792329.1.0.52560935148.issue8092@psf.upfronthosting.co.za>
2010-04-20 19:38:47vstinnerlinkissue8092 messages
2010-04-20 19:38:47vstinnercreate