Message158758
| Author |
serhiy.storchaka |
| Recipients |
ezio.melotti, pitrou, serhiy.storchaka, vstinner |
| Date |
2012年04月19日.21:29:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334870979.22.0.322558024344.issue14579@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here is the bugs in the utf-16 decoder:
1. `aligned_end` is not updated after calling error handler.
2. Possible silent reading of one byte over the bytes array limit when decoding of a surrogate pair. b'\xD8\x00\xDC'.decode('utf-16be')
3. Error handlers receive data without last byte.
4. After handling truncate data error it is impossible to continue decoding (unlike all the other decoders). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月19日 21:29:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner, ezio.melotti |
| 2012年04月19日 21:29:39 | serhiy.storchaka | set | messageid: <1334870979.22.0.322558024344.issue14579@psf.upfronthosting.co.za> |
| 2012年04月19日 21:29:38 | serhiy.storchaka | link | issue14579 messages |
| 2012年04月19日 21:29:38 | serhiy.storchaka | create |
|