* 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.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-11-01 08:13:30 +00:00
Родитель 119afd7531
Коммит 905b52217c
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,11 @@
Sat Nov 1 17:09:32 2014 Tanaka Akira <akr@fsij.org>
* 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@ruby-lang.org>
* parse.y (parse_atmark): mere atmark and two atmarks without

Просмотреть файл

@ -1650,7 +1650,7 @@ bary_mul_balance_with_mulfunc(BDIGIT *zds, size_t zn, const BDIGIT *xds, size_t
}
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);