Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > main-release-src > by-pkgid > c4f0959008f6b5ea68b120aaf32eb908 > files > 4

mono-2.6.4-4mdv2010.1.src.rpm

Index: mcs/class/corlib/Mono.Math/BigInteger.cs
===================================================================
--- mcs/class/corlib/Mono.Math/BigInteger.cs	(revision 86048)
+++ mcs/class/corlib/Mono.Math/BigInteger.cs	(working copy)
@@ -1574,7 +1574,7 @@
 						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;
Index: mcs/class/Mono.Security/Mono.Math/BigInteger.cs
===================================================================
--- mcs/class/Mono.Security/Mono.Math/BigInteger.cs	(revision 86048)
+++ mcs/class/Mono.Security/Mono.Math/BigInteger.cs	(working copy)
@@ -1574,7 +1574,7 @@
 						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;