Skip to content

Commit

Permalink
Fix memory issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Aug 12, 2024
1 parent d01bcb2 commit 6163b40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bn/relic_bn_smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ int bn_smb_jac(const bn_t a, const bn_t b) {
bi = ci = 0;

i = RLC_MAX(t0->used, t1->used);
bn_grow(t0, i);
bn_grow(t1, i);
dv_zero(t0->dp + t0->used, i - t0->used);
dv_zero(t1->dp + t1->used, i - t1->used);
if (i == 1) {
Expand Down

0 comments on commit 6163b40

Please sign in to comment.