mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_EvalCodeEx() (#2919)
k + 1 was calculated with k = NULL.
This commit is contained in:
parent
a568e52733
commit
c6ea8974e2
2 changed files with 3 additions and 2 deletions
|
@ -4220,7 +4220,8 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
|
|||
{
|
||||
return _PyEval_EvalCodeWithName(_co, globals, locals,
|
||||
args, argcount,
|
||||
kws, kws + 1, kwcount, 2,
|
||||
kws, kws != NULL ? kws + 1 : NULL,
|
||||
kwcount, 2,
|
||||
defs, defcount,
|
||||
kwdefs, closure,
|
||||
NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue