diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-27 17:10:29 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-27 17:10:29 (GMT) |
commit | c44af337ce1c0d23c8862fcc1e95d257c593dd70 (patch) | |
tree | cb49914cf84dad315fa6023d7fcfd36483f2f8d9 /Parser | |
parent | e7bb9188f431b3d5c5c1b53188db33565bcaea2b (diff) | |
download | cpython-c44af337ce1c0d23c8862fcc1e95d257c593dd70.zip cpython-c44af337ce1c0d23c8862fcc1e95d257c593dd70.tar.gz cpython-c44af337ce1c0d23c8862fcc1e95d257c593dd70.tar.bz2 |
Add assertion that we do not blow out newl
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/tokenizer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 257ef1c..1314f5f 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; |