[issue23247] Crash in the reset() method of StreamWriter of CJK codecs
STINNER Victor
report at bugs.python.org
Thu Jul 16 01:00:54 CEST 2015
STINNER Victor added the comment:
> Happens for all the multibyte codecs: (...)
All these codecs share the same C implementation: the "CJK" codecs.
The bug was introduced in Python 3.4 by my huge changeset d621bdaed7c3: Issue "#17693: CJK encoders now use the new Unicode API (PEP 393)".
It looks like there was no test for this specific bug :-/ Calling reset() just after creating a StreamReader object.
Attached patch should fix the crash.
@Aaron1011: Can you please try to write a patch adding a unit test to test_codecs reproducing the crash?
----------
keywords: +patch
title: Multibyte codec StreamWriter.reset() crashes -> Crash in the reset() method of StreamWriter of CJK codecs
versions: +Python 3.5
Added file: http://bugs.python.org/file39932/cjk_codecs_reset.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23247>
_______________________________________
More information about the Python-bugs-list
mailing list