]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36398: Fix a possible crash in structseq_repr(). (GH-12492)
authorZackery Spytz <zspytz@gmail.com>
Fri, 22 Mar 2019 07:24:34 +0000 (01:24 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 22 Mar 2019 07:24:34 +0000 (09:24 +0200)
commit93e8012f2cabd84f30b52e19fd3dc557efa9f8af
tree14a35ffb5655903a9ca74571996c604f5debe4a2
parent9a0000d15d27361eaa47b77600c7c00a9787a894
bpo-36398: Fix a possible crash in structseq_repr(). (GH-12492)

If the first PyUnicode_DecodeUTF8() call fails in structseq_repr(),
_PyUnicodeWriter_Dealloc() will be called on an uninitialized
_PyUnicodeWriter.
Misc/NEWS.d/next/Core and Builtins/2019-03-21-22-19-38.bpo-36398.B_jXGe.rst [new file with mode: 0644]
Objects/structseq.c