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.
2 parents 3b55f0c + d33491e commit 25ff287Copy full SHA for 25ff287
2 files changed
Misc/NEWS
@@ -24,6 +24,8 @@ Core and Builtins
24
Library
25
-------
26
27
+- Issue #20515: Fix NULL pointer dereference introduced by issue #20368.
28
+
29
- Issue #19186: Restore namespacing of expat symbols inside the pyexpat module.
30
31
- Issue #20053: ensurepip (and hence venv) are no longer affected by the
Modules/_tkinter.c
@@ -1397,6 +1397,9 @@ varname_converter(PyObject *in, void *_out)
1397
if (PyUnicode_Check(in)) {
1398
Py_ssize_t size;
1399
s = PyUnicode_AsUTF8AndSize(in, &size);
1400
+ if (s == NULL) {
1401
+ return 0;
1402
+ }
1403
if (size > INT_MAX) {
1404
PyErr_SetString(PyExc_OverflowError, "string is too long");
1405
return 0;
0 commit comments