Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3c827b

Browse files
committed
Merged revisions 67590 via svnmerge from
svn+ssh://[email protected]/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 fed7d80 commit d3c827b

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
@@ -3137,6 +3137,7 @@ parsenumber(struct compiling *c, const char *s)
31373137
int imflag;
31383138
#endif
31393139

3140+
assert(s != NULL);
31403141
errno = 0;
31413142
end = s + strlen(s) - 1;
31423143
#ifndef WITHOUT_COMPLEX

0 commit comments

Comments
 (0)