[issue29818] Py_SetStandardStreamEncoding leads to a memory error in debug mode
STINNER Victor
report at bugs.python.org
Tue May 14 22:53:12 EDT 2019
STINNER Victor <vstinner at redhat.com> added the comment:
I fixed this issue in Python 3.7. Py_SetStandardStreamEncoding() now uses:
PyMemAllocatorEx old_alloc;
_PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
... _PyMem_RawStrdup() ...
PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
----------
components: +Interpreter Core
resolution: -> fixed
stage: needs patch -> resolved
status: open -> closed
versions: -Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29818>
_______________________________________
More information about the Python-bugs-list
mailing list