summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/ceval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 7a97771..7a0895f 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1636,6 +1636,14 @@ eval_code2(co, globals, locals,
break;
}
nstar = PySequence_Length(stararg);
+ if (nstar < 0) {
+ if (!PyErr_Occurred)
+ PyErr_SetString(
+ PyExc_TypeError,
+ "len() of unsized object");
+ x = NULL;
+ break;
+ }
}
if (nk > 0) {
if (kwdict == NULL) {