Message103741
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? */ |
|
Date |
User |
Action |
Args |
2010-04-20 19:38:49 | vstinner | set | recipients:
+ vstinner, lemburg, loewis, doerwalter |
2010-04-20 19:38:49 | vstinner | set | messageid: <1271792329.1.0.52560935148.issue8092@psf.upfronthosting.co.za> |
2010-04-20 19:38:47 | vstinner | link | issue8092 messages |
2010-04-20 19:38:47 | vstinner | create | |
|