diff Python/ast.c @ 50029:20a1ccaddcae 2.6

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) ........
author Mark Dickinson <dickinsm@gmail.com>
date Fri, 05 Dec 2008 18:01:46 +0000
parents 96f38e357194
children 032d9749047d
line wrap: on
line diff
--- a/Python/ast.c	Fri Dec 05 09:24:04 2008 +0000
+++ b/Python/ast.c	Fri Dec 05 18:01:46 2008 +0000
@@ -3177,6 +3177,7 @@
         int imflag;
 #endif
 
+        assert(s != NULL);
         errno = 0;
         end = s + strlen(s) - 1;
 #ifndef WITHOUT_COMPLEX