~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/ec-raw.[ch] (ec_ec2osp): Check that the requested flags are sane.
[catacomb]
/
math
/
mpmont.c
diff --git
a/math/mpmont.c
b/math/mpmont.c
index
88efaca
..
1f9143b
100644
(file)
--- a/
math/mpmont.c
+++ b/
math/mpmont.c
@@
-160,6
+160,7
@@
mp *mpmont_reduce(mpmont *mm, mp *d, mp *a)
u->vl = u->v + n;
u = mp_mul(u, u, mm->m);
d = mp_add(d, a, u);
u->vl = u->v + n;
u = mp_mul(u, u, mm->m);
d = mp_add(d, a, u);
+ MP_ENSURE(d, n);
mp_drop(u);
}
mp_drop(u);
}