Skip to content

Commit f4adf97

Browse files
author
mark.dickinson
committed
Issue #4461: Safety check in parsenumber (ast.c)
git-svn-id: http://svn.python.org/projects/python/trunk@67590 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent c2b61ee commit f4adf97

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/ast.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3184,6 +3184,7 @@ parsenumber(struct compiling *c, const char *s)
31843184
int imflag;
31853185
#endif
31863186

3187+
assert(s != NULL);
31873188
errno = 0;
31883189
end = s + strlen(s) - 1;
31893190
#ifndef WITHOUT_COMPLEX

0 commit comments

Comments
 (0)