Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7507dd

Browse files
committed
Issue #27830: Fix _PyObject_FastCallKeywords()
Pass stack, not unrelated and uninitialized args!
1 parent b98b927 commit f7507dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/abstract.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,7 @@ _PyObject_FastCallKeywords(PyObject *func, PyObject **stack, Py_ssize_t nargs,
23652365
}
23662366

23672367
if (PyCFunction_Check(func) && nkwargs == 0) {
2368-
return _PyCFunction_FastCallDict(func, args, nargs, NULL);
2368+
return _PyCFunction_FastCallDict(func, stack, nargs, NULL);
23692369
}
23702370

23712371
/* Slow-path: build temporary tuple and/or dict */

0 commit comments

Comments
 (0)