1. Armin Rigo
  2. cpython-withatomic

Commits

Jeremy Hylton  committed 883cb0e

prevent symtable_params() from dereferencing off the end of the
varagslist node. based on fix from Thomas Wouters.

  • Participants
  • Parent commits fa9ef0e
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Python/compile.c

View file
  • Ignore whitespace
 			symtable_add_def(st, STR(CHILD(n, i)), 
 					 DEF_PARAM | DEF_STAR);
 			i += 2;
+			if (i >= NCH(n))
+				return;
 			c = CHILD(n, i);
 		}
 		if (TYPE(c) == DOUBLESTAR) {