summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-12-05 18:10:46 +0000
committerMark Dickinson <dickinsm@gmail.com>2008-12-05 18:10:46 +0000
commitab233280e16c7320eae09a01761cd9c12f845dfe (patch)
tree50e72a1679fe2ff08e3c10337cf3350b8a0468a0 /Python/ast.c
parent40f777b58da83f1212d3cc25cdee234b3419d453 (diff)
downloadcpython-ab233280e16c7320eae09a01761cd9c12f845dfe.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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 424b601418..aaf158f5c5 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3137,6 +3137,7 @@ parsenumber(struct compiling *c, const char *s)
int imflag;
#endif
+ assert(s != NULL);
errno = 0;
end = s + strlen(s) - 1;
#ifndef WITHOUT_COMPLEX