mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316)
This commit is contained in:
parent
feec3dc9c3
commit
5f161fd86d
2 changed files with 43 additions and 20 deletions
|
@ -1560,7 +1560,7 @@ parse_tuple_and_keywords(PyObject *self, PyObject *args)
|
|||
{
|
||||
PyObject *sub_args;
|
||||
PyObject *sub_kwargs;
|
||||
char *sub_format;
|
||||
const char *sub_format;
|
||||
PyObject *sub_keywords;
|
||||
|
||||
Py_ssize_t i, size;
|
||||
|
@ -1573,7 +1573,7 @@ parse_tuple_and_keywords(PyObject *self, PyObject *args)
|
|||
|
||||
double buffers[8][4]; /* double ensures alignment where necessary */
|
||||
|
||||
if (!PyArg_ParseTuple(args, "OOyO:parse_tuple_and_keywords",
|
||||
if (!PyArg_ParseTuple(args, "OOsO:parse_tuple_and_keywords",
|
||||
&sub_args, &sub_kwargs,
|
||||
&sub_format, &sub_keywords))
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue