diff --git a/ChangeLog b/ChangeLog index 90290c0766..ca20360635 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 10 16:00:29 2008 wanabe + + * util.c (ruby_strtod): ruby_strtod don't allow a trailing + decimal point like "7.". [ruby-dev:34835] [ruby-dev:35009] + Tue Jun 10 13:48:38 2008 Yukihiro Matsumoto * rational.c (nurat_s_convert): need not to initialize optional diff --git a/util.c b/util.c index b058f8b8b4..9e9d95ef63 100644 --- a/util.c +++ b/util.c @@ -2263,6 +2263,8 @@ break2: } #endif if (c == '.') { + if (!ISDIGIT(s[1])) + goto dig_done; c = *++s; if (!nd) { for (; c == '0'; c = *++s)