chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c1ccba
)
ec.c (ecpt_pymul): Don't leak the scalar value.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 18 Oct 2019 20:57:12 +0000
(21:57 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 17 Nov 2019 02:50:40 +0000
(
02:50
+0000)
ec.c
patch
|
blob
|
blame
|
history
diff --git
a/ec.c
b/ec.c
index 3cd52bc3df1cdeab5cd245d8dc14bb68d39e477c..c8cdebe64b2e9e22ae754151b99c773f12bc908a 100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-188,6
+188,7
@@
static PyObject *ecpt_pymul(PyObject *x, PyObject *y)
if (ECPT_PYCHECK(x)) { PyObject *t; t = x; x = y; y = t; }
if (!ECPT_PYCHECK(y) || (xx = tomp(x)) == 0) RETURN_NOTIMPL;
ec_imul(ECPT_C(y), &zz, ECPT_P(y), xx);
if (ECPT_PYCHECK(x)) { PyObject *t; t = x; x = y; y = t; }
if (!ECPT_PYCHECK(y) || (xx = tomp(x)) == 0) RETURN_NOTIMPL;
ec_imul(ECPT_C(y), &zz, ECPT_P(y), xx);
+ MP_DROP(xx);
return (ecpt_pywrap(ECPT_COBJ(y), &zz));
}
return (ecpt_pywrap(ECPT_COBJ(y), &zz));
}