gh-117376: Fix off-by-ones in conversion functions (GH-124301)
Fix off-by-ones in conversion function
This commit is contained in:
@@ -3928,7 +3928,7 @@ dummy_func(
|
||||
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)) {
|
||||
DECREF_INPUTS();
|
||||
ERROR_IF(true, error);
|
||||
@@ -4009,7 +4009,7 @@ dummy_func(
|
||||
(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)) {
|
||||
DECREF_INPUTS();
|
||||
ERROR_IF(true, error);
|
||||
|
||||
Reference in New Issue
Block a user