Skip to content

Commit

Permalink
Fix possible infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
aido committed May 4, 2023
1 parent 84e1e76 commit 96916db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ static int combine_shards_internal(
uint8_t group_shares[secret_len * (group_threshold + 1)];
uint8_t *group_share = group_shares;

for(uint8_t i = 0; !error && i < next_group; ++i) {
for(uint8_t i = 0; !error && i < (uint8_t) next_group; ++i) {
sskr_group* g = &groups[i];

gx[i] = g->group_index;
Expand Down

0 comments on commit 96916db

Please sign in to comment.