[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-14 Thread Lin Tian
Lin Tian added the comment: Reactive this issue as to let you know that libexpat has confirmed and fixed the bug and they are interested in porting the fix to python. Reactive this in case you want to know what's going on and make a decision accordingly. (Sorry, I'm not very familiar

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-09 Thread Lin Tian
New submission from Lin Tian: utf8_toUtf8(const ENCODING *UNUSED_P(enc), const char **fromP, const char *fromLim, char **toP, const char *toLim) { char *to; const char *from; const char *fromLimInitial = fromLim; /* Avoid copying partial characters