bpo-36398: Fix a possible crash in structseq_repr() by ZackerySpytz · Pull Request #12492 · python/cpython

Conversation

@ZackerySpytz

If the first PyUnicode_DecodeUTF8() call fails in structseq_repr(),
_PyUnicodeWriter_Dealloc() will be called on an uninitialized
_PyUnicodeWriter.

https://bugs.python.org/issue36398

If the first PyUnicode_DecodeUTF8() call fails in structseq_repr(),
_PyUnicodeWriter_Dealloc() will be called on an uninitialized
_PyUnicodeWriter.