~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
930d78e
)
ec.c: Pass a dummy length argument to `PyObject_AsReadBuffer'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 16 Nov 2019 22:42:32 +0000
(22:42 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:11 +0000
(22:18 +0000)
Otherwise it just raises a `SystemException'. So this code never
worked.
ec.c
patch
|
blob
|
blame
|
history
diff --git
a/ec.c
b/ec.c
index
e18cbb8
..
30dc50c
100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-453,7
+453,7
@@
static int ecptxl_1(ec_curve *c, ec *p, PyObject *x)
getecptout(p, x);
goto fix;
} else if (PyString_Check(x)) {
- if (PyObject_AsReadBuffer(x, &q,
0
))
+ if (PyObject_AsReadBuffer(x, &q,
&n
))
goto end;
qd.p = q;
qd.e = 0;