[issue39113] PyUnicode_AsUTF8AndSize Sometimes Segfaults With Incomplete Surrogate Pair
Serhiy Storchaka
report at bugs.python.org
Sat Dec 21 00:40:56 EST 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Your function returns a borrowed reference. It xiuld cause ceash even without calling PyUnicode_AsUTF8AndSize. Add Py_INCREF(str)
----------
nosy: +serhiy.storchaka
resolution: -> not a bug
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39113>
_______________________________________
More information about the Python-bugs-list
mailing list