From: Mark Dickinson Date: Fri, 5 Dec 2008 18:10:46 +0000 (+0000) Subject: Merged revisions 67590 via svnmerge from X-Git-Tag: v3.1a1~748 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3c827b0bd8facbe9798893c691dbcc31db20d88;p=python 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) ........ --- 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