[issue31626] Crash in _PyUnicode_DecodeUnicodeEscape on OpenBSD

STINNER Victor report at bugs.python.org
Fri Sep 29 03:58:08 EDT 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

"_PyUnicodeWriter_Finish() calls resize_compact() for truncating the result, but the latter fills the last 15 bytes with \xdb. Since the string is tagged as ASCII, thus crashing in _PyUnicode_CheckConsistency."

Cool. My code works as expected to catch bugs :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31626>
_______________________________________


More information about the Python-bugs-list mailing list