[issue23247] Crash in the reset() method of StreamWriter of CJK codecs

STINNER Victor report at bugs.python.org
Thu Jul 16 15:01:32 CEST 2015


STINNER Victor added the comment:

> Aaron: Your version of the fix immediately returns None, while Victor’s tries to encode an empty string (if I understand it correctly).

Aaron patch is better. I misunderstood the code. reset() always return None, the empty string is unused in my patch.

fix-multibytecodec-segfault.patch: please write a _new_ test mentionning this issue to check for non regression.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23247>
_______________________________________


More information about the Python-bugs-list mailing list