Skip to content
Merged
Prev Previous commit
Next Next commit
Fix validate_code_object().
  • Loading branch information
ericsnowcurrently committed Oct 3, 2023
commit 5b3f4e8e4cb4acf79a4dab4584a5e0dca3fab771
3 changes: 2 additions & 1 deletion Modules/_xxsubinterpretersmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ validate_code_object(PyCodeObject *code)
{
if (code->co_argcount > 0
|| code->co_posonlyargcount > 0
|| code->co_kwonlyargcount > 0)
|| code->co_kwonlyargcount > 0
|| code->co_flags & (CO_VARARGS | CO_VARKEYWORDS))
{
PyErr_SetString(PyExc_ValueError, "arguments not supported");
return -1;
Expand Down