From ba15fda3593b4ba8c7c64c0cf9c9e59223997611 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 18 Dec 2007 15:10:37 +0000 Subject: [PATCH] * bignum.c (rb_cstr_to_inum): wrong radix check. a patch from Yusuke ENDOH 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 --- ChangeLog | 7 +++++++ bignum.c | 4 ++-- version.h | 6 +++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 88fee26182..1c82985e4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Wed Dec 19 00:09:19 2007 Yukihiro Matsumoto + + * bignum.c (rb_cstr_to_inum): wrong radix check. a patch from + Yusuke ENDOH in [ruby-dev:32628]. + + * bignum.c (big2str_find_n1): ditto. + Tue Dec 18 23:53:53 2007 Nobuyoshi Nakada * compile.c (iseq_compile_each): fix for segfault. [ruby-dev:31372] diff --git a/bignum.c b/bignum.c index 624a4e5964..c840fe06f7 100644 --- a/bignum.c +++ b/bignum.c @@ -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); diff --git a/version.h b/version.h index 87b62e8946..aa8cb83eb0 100644 --- a/version.h +++ b/version.h @@ -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[];