From: Mark Dickinson Date: Fri, 5 Dec 2008 17:59:46 +0000 (+0000) Subject: Issue #4461: Safety check in parsenumber (ast.c) X-Git-Tag: v2.7a1~2571 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=422ce06b9caea42b297a1d49d62c4f9755f8a122;p=thirdparty%2FPython%2Fcpython.git Issue #4461: Safety check in parsenumber (ast.c) --- diff --git a/Python/ast.c b/Python/ast.c index 389fedd63317..9e8df8644bd1 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3184,6 +3184,7 @@ parsenumber(struct compiling *c, const char *s) int imflag; #endif + assert(s != NULL); errno = 0; end = s + strlen(s) - 1; #ifndef WITHOUT_COMPLEX