~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sigh. Since Mailman breakage means we won't be releasing 0.54 today
[sgt/putty]
/
sshbn.c
diff --git
a/sshbn.c
b/sshbn.c
index
2d8359e
..
7fe0309
100644
(file)
--- a/
sshbn.c
+++ b/
sshbn.c
@@
-133,7
+133,7
@@
static void internal_add_shifted(BignumInt *number,
int bshift = shift % BIGNUM_INT_BITS;
BignumDblInt addend;
int bshift = shift % BIGNUM_INT_BITS;
BignumDblInt addend;
- addend = n << bshift;
+ addend =
(BignumDblInt)
n << bshift;
while (addend) {
addend += number[word];
while (addend) {
addend += number[word];
@@
-729,6
+729,7
@@
Bignum bigmuladd(Bignum a, Bignum b, Bignum addend)
}
ret[0] = maxspot;
}
ret[0] = maxspot;
+ sfree(workspace);
return ret;
}
return ret;
}
@@
-908,6
+909,7
@@
Bignum modinv(Bignum number, Bignum modulus)
x = bigmuladd(q, xp, t);
sign = -sign;
freebn(t);
x = bigmuladd(q, xp, t);
sign = -sign;
freebn(t);
+ freebn(q);
}
freebn(b);
}
freebn(b);
@@
-1009,5
+1011,6
@@
char *bignum_decimal(Bignum x)
/*
* Done.
*/
/*
* Done.
*/
+ sfree(workspace);
return ret;
}
return ret;
}