Skip to content

Commit

Permalink
test: Fix crypto_test to initialise its plain text buffer.
Browse files Browse the repository at this point in the history
msan caught this.
  • Loading branch information
iphydf committed Dec 4, 2024
1 parent 0204db6 commit c660bbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto_tests/crypto_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ static void test_very_large_data(void)
ck_assert(plain != nullptr);
ck_assert(encrypted != nullptr);

memset(plain, 0, plain_size);

encrypt_data(mem, pk, sk, nonce, plain, plain_size, encrypted);

free(encrypted);
Expand Down

0 comments on commit c660bbe

Please sign in to comment.