[issue18509] CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error

STINNER Victor report at bugs.python.org
Sat Jul 20 00:00:47 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue18509>
_______________________________________


More information about the Python-bugs-list mailing list