diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-12-05 18:01:46 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-12-05 18:01:46 +0000 |
commit | 514624d29e04a04e211a4e7536f2ebba70ed629a (patch) | |
tree | 28b065f3b263cfe8d6301ee55f11fdef143e5a68 /Python/ast.c | |
parent | 2fcd9a27e52e2fdbd7a0f6308cfef245f6e4cc0c (diff) | |
download | cpython-git-514624d29e04a04e211a4e7536f2ebba70ed629a.tar.gz |
Merged revisions 67590 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67590 | mark.dickinson | 2008-12-05 17:59:46 +0000 (Fri, 05 Dec 2008) | 2 lines
Issue #4461: Safety check in parsenumber (ast.c)
........
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c index 9d09dfcb23..a3fdd8998d 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3177,6 +3177,7 @@ parsenumber(struct compiling *c, const char *s) int imflag; #endif + assert(s != NULL); errno = 0; end = s + strlen(s) - 1; #ifndef WITHOUT_COMPLEX |