]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #4461: Safety check in parsenumber (ast.c)
authorMark Dickinson <dickinsm@gmail.com>
Fri, 5 Dec 2008 17:59:46 +0000 (17:59 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 5 Dec 2008 17:59:46 +0000 (17:59 +0000)
Python/ast.c

index 389fedd6331749baa5f351fefb973e692ab0e7ca..9e8df8644bd14374dcaf6a85fc27fa03270d919a 100644 (file)
@@ -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