Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6068b6c commit d33491eCopy full SHA for d33491e
2 files changed
Misc/NEWS
@@ -45,6 +45,8 @@ Core and Builtins
45
Library
46
-------
47
48
+- Issue #20515: Fix NULL pointer dereference introduced by issue #20368.
49
+
50
- Issue #19186: Restore namespacing of expat symbols inside the pyexpat module.
51
52
- Issue #20426: When passing the re.DEBUG flag, re.compile() displays the
Modules/_tkinter.c
@@ -1568,6 +1568,9 @@ varname_converter(PyObject *in, void *_out)
1568
if (PyUnicode_Check(in)) {
1569
Py_ssize_t size;
1570
s = PyUnicode_AsUTF8AndSize(in, &size);
1571
+ if (s == NULL) {
1572
+ return 0;
1573
+ }
1574
if (size > INT_MAX) {
1575
PyErr_SetString(PyExc_OverflowError, "string is too long");
1576
return 0;
0 commit comments