[issue6373] SystemError in encoder

Amaury Forgeot d'Arc report at bugs.python.org
Mon Jun 29 18:17:16 CEST 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

It's a bug in unicode_encode_ucs1: the result string is resized, so 
   str = PyBytes_AS_STRING(res) + (someOffset)
is not valid anymore.

Attached patch+test.

----------
keywords: +patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file14386/issue6373.patch

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


More information about the Python-bugs-list mailing list