summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-12-05 17:59:46 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-12-05 17:59:46 (GMT)
commit422ce06b9caea42b297a1d49d62c4f9755f8a122 (patch)
tree7a28d528cd16d1859b02f0d06b3aecbb7161b185 /Python
parentf7f1fb68da4ff36fd2bb85d5d7ee1d91a7e5e0d4 (diff)
downloadcpython-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.c1
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