Commit e15ea3d9 authored by Richard Levitte's avatar Richard Levitte
Browse files

When BN_add_word() reaches top, it shouldn't try to add the the corresponding

word, since that word may not be zero.
parent 67753262
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -123,6 +123,9 @@ int BN_add_word(BIGNUM *a, BN_ULONG w)
	i=0;
	for (;;)
		{
		if (i >= a->top)
			l=w;
		else
			l=(a->d[i]+(BN_ULONG)w)&BN_MASK2;
		a->d[i]=l;
		if (w > l)