Skip to content

Commit 6566914

Browse files
committed
Merged revisions 67590 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r67590 | mark.dickinson | 2008-12-05 17:59:46 +0000 (Fri, 05 Dec 2008) | 2 lines Issue #4461: Safety check in parsenumber (ast.c) ........
1 parent e9f8bdf commit 6566914

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
@@ -3177,6 +3177,7 @@ parsenumber(struct compiling *c, const char *s)
31773177
int imflag;
31783178
#endif
31793179

3180+
assert(s != NULL);
31803181
errno = 0;
31813182
end = s + strlen(s) - 1;
31823183
#ifndef WITHOUT_COMPLEX

0 commit comments

Comments
 (0)