New submission from STINNER Victor: I modified CJK codecs to reuse the new PyUnicodeWriter API (to use the PEP 393 instead of Py_UNICODE*). The problem is that PyUnicodeWriter error is not handled correctly: the decoder should return MBERR_EXCEPTION, whereas the error is not handled at all currently.
I found this issue while working on issue #18408, using the pyfailmalloc tool to inject faults (memory allocation error). ---------- messages: 193381 nosy: haypo priority: normal severity: normal status: open title: CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18509> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com