diff Python/ast.c @ 50027:57b5c4639a5d legacy-trunk

Issue #4461: Safety check in parsenumber (ast.c)
author Mark Dickinson <dickinsm@gmail.com>
date Fri, 05 Dec 2008 17:59:46 +0000
parents ffad6c0f252e
children e158c70511fe
line wrap: on
line diff
--- a/Python/ast.c	Fri Dec 05 16:14:18 2008 +0000
+++ b/Python/ast.c	Fri Dec 05 17:59:46 2008 +0000
@@ -3184,6 +3184,7 @@
         int imflag;
 #endif
 
+        assert(s != NULL);
         errno = 0;
         end = s + strlen(s) - 1;
 #ifndef WITHOUT_COMPLEX