From a2584fc4febb53831da6fe7d716086e072cd0e8b Mon Sep 17 00:00:00 2001 From: Aido Date: Thu, 4 May 2023 14:12:39 +0100 Subject: [PATCH] Fix possible infinite loop Fixes #42 --- src/shamir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shamir.c b/src/shamir.c index 890f4c4..1e4b716 100644 --- a/src/shamir.c +++ b/src/shamir.c @@ -76,7 +76,7 @@ int32_t split_secret( // just return share_count copies of the secret uint8_t *share = result; for(uint8_t i=0; i< share_count; ++i, share += secret_length) { - for(uint8_t j=0; j