Message103741
| 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: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 |
|