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

This commit is contained in:
Mark Dickinson 2008-12-05 17:59:46 +00:00
parent f7f1fb68da
commit 422ce06b9c
1 changed files with 1 additions and 0 deletions

View File

@ -3184,6 +3184,7 @@ parsenumber(struct compiling *c, const char *s)
int imflag; int imflag;
#endif #endif
assert(s != NULL);
errno = 0; errno = 0;
end = s + strlen(s) - 1; end = s + strlen(s) - 1;
#ifndef WITHOUT_COMPLEX #ifndef WITHOUT_COMPLEX