gh-117376: Fix off-by-ones in conversion functions (GH-124301)
Fix off-by-ones in conversion function
This commit is contained in:
4
Python/executor_cases.c.h
generated
4
Python/executor_cases.c.h
generated
@@ -4596,7 +4596,7 @@
|
||||
int nargs = total_args - 1;
|
||||
PyCFunctionFastWithKeywords cfunc =
|
||||
(PyCFunctionFastWithKeywords)(void(*)(void))meth->ml_meth;
|
||||
STACKREFS_TO_PYOBJECTS(args, nargs, args_o);
|
||||
STACKREFS_TO_PYOBJECTS(args, total_args, args_o);
|
||||
if (CONVERSION_FAILED(args_o)) {
|
||||
PyStackRef_CLOSE(callable);
|
||||
PyStackRef_CLOSE(self_or_null[0]);
|
||||
@@ -4713,7 +4713,7 @@
|
||||
PyCFunctionFast cfunc =
|
||||
(PyCFunctionFast)(void(*)(void))meth->ml_meth;
|
||||
int nargs = total_args - 1;
|
||||
STACKREFS_TO_PYOBJECTS(args, nargs, args_o);
|
||||
STACKREFS_TO_PYOBJECTS(args, total_args, args_o);
|
||||
if (CONVERSION_FAILED(args_o)) {
|
||||
PyStackRef_CLOSE(callable);
|
||||
PyStackRef_CLOSE(self_or_null[0]);
|
||||
|
||||
Reference in New Issue
Block a user