aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen
diff options
context:
space:
mode:
authorJ08nY2023-10-05 20:28:00 +0200
committerJ08nY2023-10-05 20:28:00 +0200
commit32f036970f88b38af44c75053e3486a66537f520 (patch)
tree03793da2e3f697141ce9542e9f8d4a0f66461d87 /pyecsca/codegen
parent62ec24bb56e6be82b3cf4840d547aaf9130b197b (diff)
downloadpyecsca-codegen-32f036970f88b38af44c75053e3486a66537f520.tar.gz
pyecsca-codegen-32f036970f88b38af44c75053e3486a66537f520.tar.zst
pyecsca-codegen-32f036970f88b38af44c75053e3486a66537f520.zip
More space?
Diffstat (limited to 'pyecsca/codegen')
-rw-r--r--pyecsca/codegen/bn/bn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/codegen/bn/bn.c b/pyecsca/codegen/bn/bn.c
index 2cced3f..c3f6d63 100644
--- a/pyecsca/codegen/bn/bn.c
+++ b/pyecsca/codegen/bn/bn.c
@@ -540,8 +540,8 @@ wsliding_t *bn_wsliding_rtl(const bn_t *bn, int w) {
wsliding_t *result = NULL;
int blen = bn_bit_length(bn);
- uint8_t arr[blen + 1];
- memset(arr, 0, (blen + 1) * sizeof(uint8_t));
+ uint8_t arr[blen + 2];
+ memset(arr, 0, (blen + 2) * sizeof(uint8_t));
bn_t k;
if (mp_init(&k) != BN_OKAY) {