Skip to content

Commit

Permalink
merge revision(s) 16570:
Browse files Browse the repository at this point in the history
	* object.c (rb_cstr_to_dbl): should clear errno before calling
	  strtod(3).  [ruby-dev:34834]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Jun 15, 2008
1 parent 9a1effa commit 340f07e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sun Jun 15 23:19:53 2008 Yukihiro Matsumoto <matz@ruby-lang.org>

* object.c (rb_cstr_to_dbl): should clear errno before calling
strtod(3). [ruby-dev:34834]

Sun Jun 15 23:18:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>

* marshal.c (marshal_load): should initialize arg.data used for
Expand Down
1 change: 1 addition & 0 deletions object.c
Original file line number Diff line number Diff line change
Expand Up @@ -2281,6 +2281,7 @@ rb_cstr_to_dbl(p, badcheck)
else {
while (ISSPACE(*p) || *p == '_') p++;
}
errno = 0;
d = strtod(p, &end);
if (errno == ERANGE) {
OutOfRange();
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2008-06-15"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20080615
#define RUBY_PATCHLEVEL 215
#define RUBY_PATCHLEVEL 216

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Expand Down

0 comments on commit 340f07e

Please sign in to comment.