[前][次][番号順一覧][スレッド一覧]

ruby-changes:36141

From: akr <ko1@a...>
Date: Sat, 1 Nov 2014 17:13:37 +0900 (JST)
Subject: [ruby-changes:36141] akr:r48222 (trunk): * bignum.c (bary_mul_balance_with_mulfunc): Fix free work area

akr	2014-11-01 17:13:30 +0900 (Sat, 01 Nov 2014)

  New Revision: 48222

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48222

  Log:
    * bignum.c (bary_mul_balance_with_mulfunc): Fix free work area
      location.
      [ruby-dev:48723] [Bug #10464]
      [ruby-core:66044] [Bug #10465]
      Reported by Kohji Nishihama.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48221)
+++ ChangeLog	(revision 48222)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Nov  1 17:09:32 2014  Tanaka Akira  <akr@f...>
+
+	* bignum.c (bary_mul_balance_with_mulfunc): Fix free work area
+	  location.
+	  [ruby-dev:48723] [Bug #10464]
+	  [ruby-core:66044] [Bug #10465]
+	  Reported by Kohji Nishihama.
+
 Sat Nov  1 15:45:15 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (parse_atmark): mere atmark and two atmarks without
Index: bignum.c
===================================================================
--- bignum.c	(revision 48221)
+++ bignum.c	(revision 48222)
@@ -1650,7 +1650,7 @@ bary_mul_balance_with_mulfunc(BDIGIT *zd https://github.com/ruby/ruby/blob/trunk/bignum.c#L1650
             }
             tds = zds + n;
             MEMCPY(wds, zds + n, BDIGIT, xn);
-            mulfunc(tds, tn, xds, xn, yds + n, r, wds-xn, wn-xn);
+            mulfunc(tds, tn, xds, xn, yds + n, r, wds+xn, wn-xn);
             bary_add(zds + n, tn,
                      zds + n, tn,
                      wds, xn);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]