diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-12-05 17:59:46 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-12-05 17:59:46 (GMT) |
commit | 422ce06b9caea42b297a1d49d62c4f9755f8a122 (patch) | |
tree | 7a28d528cd16d1859b02f0d06b3aecbb7161b185 /Python | |
parent | f7f1fb68da4ff36fd2bb85d5d7ee1d91a7e5e0d4 (diff) | |
download | cpython-422ce06b9caea42b297a1d49d62c4f9755f8a122.zip cpython-422ce06b9caea42b297a1d49d62c4f9755f8a122.tar.gz cpython-422ce06b9caea42b297a1d49d62c4f9755f8a122.tar.bz2 |
Issue #4461: Safety check in parsenumber (ast.c)
Diffstat (limited to 'Python')
-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 389fedd..9e8df86 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 |