Issue #27830: Fix _PyObject_FastCallKeywords()

Pass stack, not unrelated and uninitialized args!
This commit is contained in:
Victor Stinner 2016-08-25 01:00:31 +02:00
parent b98b927e72
commit f7507dd3e8

View file

@ -2365,7 +2365,7 @@ _PyObject_FastCallKeywords(PyObject *func, PyObject **stack, Py_ssize_t nargs,
}
if (PyCFunction_Check(func) && nkwargs == 0) {
return _PyCFunction_FastCallDict(func, args, nargs, NULL);
return _PyCFunction_FastCallDict(func, stack, nargs, NULL);
}
/* Slow-path: build temporary tuple and/or dict */