Skip to content

Commit

Permalink
Issue python#29507: Fix _PyObject_CallFunctionVa()
Browse files Browse the repository at this point in the history
is_size_t test was reversed. Bug spotted by INADA Naoki.
  • Loading branch information
vstinner committed Feb 9, 2017
1 parent 331bbe6 commit fe4ff83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Objects/abstract.c
Original file line number Diff line number Diff line change
Expand Up @@ -2616,10 +2616,12 @@ _PyObject_CallFunctionVa(PyObject *callable, const char *format,
}

if (is_size_t) {
stack = _Py_VaBuildStack(small_stack, small_stack_len, format, va, &nargs);
stack = _Py_VaBuildStack_SizeT(small_stack, small_stack_len,
format, va, &nargs);
}
else {
stack = _Py_VaBuildStack_SizeT(small_stack, small_stack_len, format, va, &nargs);
stack = _Py_VaBuildStack(small_stack, small_stack_len,
format, va, &nargs);
}
if (stack == NULL) {
return NULL;
Expand Down

0 comments on commit fe4ff83

Please sign in to comment.