Commit 6ca8a05f authored by Christian Heimes's avatar Christian Heimes

Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL.

CID 486199
parent 704e2d37
...@@ -54,6 +54,8 @@ Core and Builtins ...@@ -54,6 +54,8 @@ Core and Builtins
Library Library
------- -------
- Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL.
- Issue #18559: Fix NULL pointer dereference error in _pickle module - Issue #18559: Fix NULL pointer dereference error in _pickle module
- Issue #18556: Check the return value of a PyUnicode_AsWideChar() call in - Issue #18556: Check the return value of a PyUnicode_AsWideChar() call in
......
...@@ -3453,7 +3453,7 @@ _get_arg(int *pindex, PyObject *name, PyObject *defval, PyObject *inargs, PyObje ...@@ -3453,7 +3453,7 @@ _get_arg(int *pindex, PyObject *name, PyObject *defval, PyObject *inargs, PyObje
Py_INCREF(v); Py_INCREF(v);
return v; return v;
} }
if (kwds && (v = PyDict_GetItem(kwds, name))) { if (kwds && name && (v = PyDict_GetItem(kwds, name))) {
++*pindex; ++*pindex;
Py_INCREF(v); Py_INCREF(v);
return v; return v;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment