$NetBSD: patch-ca,v 1.2 2008/02/13 14:16:43 kefren Exp $ --- mcs/class/Mono.Security/Mono.Math/BigInteger.cs.orig 2008-02-05 14:19:30.000000000 +0200 +++ mcs/class/Mono.Security/Mono.Math/BigInteger.cs 2008-02-05 14:19:44.000000000 +0200 @@ -1607,7 +1607,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;