git.samba.org
/
gd
/
nettle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eb23ca
)
eccdata: Add assert.
author
Niels Möller
<nisse@lysator.liu.se>
Wed, 26 Dec 2018 18:49:56 +0000
(19:49 +0100)
committer
Niels Möller
<nisse@lysator.liu.se>
Wed, 26 Dec 2018 18:49:56 +0000
(19:49 +0100)
eccdata.c
patch
|
blob
|
history
diff --git
a/eccdata.c
b/eccdata.c
index 8aa57e06214b0ac43f504ef39869defe1c9b77d3..d67ca0df9229b136dc3236c2319a1ea9eaf02642 100644
(file)
--- a/
eccdata.c
+++ b/
eccdata.c
@@
-664,6
+664,7
@@
ecc_pippenger_precompute (struct ecc_curve *ecc, unsigned k, unsigned c)
ecc->pippenger_k = k;
ecc->pippenger_c = c;
ecc->table_size = M << c;
+ assert (ecc->table_size >= 2);
ecc->table = ecc_alloc (ecc->table_size);
/* Compute the first 2^c entries */