]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27830: Fix _PyObject_FastCallKeywords()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 24 Aug 2016 23:00:31 +0000 (01:00 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 24 Aug 2016 23:00:31 +0000 (01:00 +0200)
Pass stack, not unrelated and uninitialized args!

Objects/abstract.c

index db9f926a367ca70aa87c20b79196bfa6f1cb3a40..c41fe11e3a1ce4674cae47a89069b4e8d4168bf1 100644 (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 */