From: Neal Norwitz Date: Sun, 27 Jan 2008 17:10:29 +0000 (+0000) Subject: Add assertion that we do not blow out newl X-Git-Tag: v2.6a1~371 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c44af337ce1c0d23c8862fcc1e95d257c593dd70;p=thirdparty%2FPython%2Fcpython.git Add assertion that we do not blow out newl --- diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 257ef1c87b80..1314f5f1398b 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -605,6 +605,7 @@ decode_str(const char *str, struct tok_state *tok) for (s = str;; s++) { if (*s == '\0') break; else if (*s == '\n') { + assert(lineno < 2); newl[lineno] = s; lineno++; if (lineno == 2) break;