From adf1c94ffe75cea7d6b12ac10809656c15d33079 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 3 Apr 2013 07:35:35 +0000 Subject: bignum.c: hide intermediate Bignums * bignum.c (rb_big_eq): hide intermediate Bignums not just freeing memory. [ruby-core:53893] [Bug #8204] * object.c (rb_obj_hide): hide an object by clearing klass. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 6d2b25f997..b2daac75af 100644 --- a/bignum.c +++ b/bignum.c @@ -1095,6 +1095,8 @@ big2str_karatsuba(VALUE x, int base, char* ptr, b = power_cache_get_power(base, n1, &m1); bigdivmod(x, b, &q, &r); + rb_obj_hide(q); + rb_obj_hide(r); lh = big2str_karatsuba(q, base, ptr, (len - m1)/2, len - m1, hbase, trim); rb_big_resize(q, 0); -- cgit v1.2.3