blob: 579bc0d8469233a29b7a5355b8ce45d2a1a4193c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
$NetBSD: patch-cb,v 1.2 2008/02/13 14:16:43 kefren Exp $
--- mcs/class/corlib/Mono.Math/BigInteger.cs.orig 2008-02-05 14:20:27.000000000 +0200
+++ mcs/class/corlib/Mono.Math/BigInteger.cs 2008-02-05 14:20:57.000000000 +0200
@@ -1607,7 +1607,7 @@ namespace Mono.Math {
uint j = 1;
// Multiply and add
- for (; j < m.length; j++) {
+ for (; j < m.length && j < A.length; j++) {
c += (ulong)u_i * (ulong)*(mP++) + *(aSP++);
*(aDP++) = (uint)c;
c >>= 32;
|