[Python-checkins] r67590 - python/trunk/Python/ast.c

mark.dickinson python-checkins at python.org
Fri Dec 5 18:59:46 CET 2008


Author: mark.dickinson
Date: Fri Dec  5 18:59:46 2008
New Revision: 67590

Log:
Issue #4461: Safety check in parsenumber (ast.c)


Modified:
   python/trunk/Python/ast.c

Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c	(original)
+++ python/trunk/Python/ast.c	Fri Dec  5 18:59:46 2008
@@ -3184,6 +3184,7 @@
         int imflag;
 #endif
 
+        assert(s != NULL);
         errno = 0;
         end = s + strlen(s) - 1;
 #ifndef WITHOUT_COMPLEX


More information about the Python-checkins mailing list