[issue34087] int(s), float(s) and others may cause segmentation fault

STINNER Victor report at bugs.python.org
Fri Jul 13 10:52:34 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> I don't think this can be tested with Python code, unless you can make sure the target buffer _PyUnicode_TransformDecimalAndSpaceToASCII operates on is initialised with garbage bytes.

We just have to call float() with a non-ASCII string, no? An assertion must fail without the fix when Python is compiled in debug mode.

----------

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


More information about the Python-bugs-list mailing list