1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (rb_cstr_to_inum): wrong radix check. a patch from

Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32628].

* bignum.c (big2str_find_n1): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-12-18 15:10:37 +00:00
parent 63fabd365a
commit ba15fda359
3 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,10 @@
Wed Dec 19 00:09:19 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (rb_cstr_to_inum): wrong radix check. a patch from
Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32628].
* bignum.c (big2str_find_n1): ditto.
Tue Dec 18 23:53:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_compile_each): fix for segfault. [ruby-dev:31372]

View file

@ -801,7 +801,7 @@ big2str_find_n1(VALUE x, int base)
};
long bits;
if (base < 2 && 36 < base)
if (base < 2 || 36 < base)
rb_bug("illegal radix %d", base);
if (FIXNUM_P(x)) {
@ -908,7 +908,7 @@ rb_big2str0(VALUE x, int base, int trim)
return rb_str_new2("0");
}
if (base < 2 && 36 < base)
if (base < 2 || 36 < base)
rb_raise(rb_eArgError, "illegal radix %d", base);
n2 = big2str_find_n1(x, base);

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-12-18"
#define RUBY_RELEASE_DATE "2007-12-19"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20071218
#define RUBY_RELEASE_CODE 20071219
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 12
#define RUBY_RELEASE_DAY 18
#define RUBY_RELEASE_DAY 19
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];