Skip to content

Commit 0629dcf

Browse files
committed
Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux
Pull crypto library fix from Eric Biggers: "Fix another KMSAN warning that made it in while KMSAN wasn't working reliably" * tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux: lib/crypto: tests: Fix KMSAN warning in test_sha256_finup_2x()
2 parents 89edd36 + 141fbbe commit 0629dcf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/crypto/tests/sha256_kunit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ static void test_sha256_finup_2x(struct kunit *test)
6868
rand_bytes(data1_buf, max_data_len);
6969
rand_bytes(data2_buf, max_data_len);
7070
rand_bytes(salt, sizeof(salt));
71+
memset(ctx, 0, sizeof(*ctx));
7172

7273
for (size_t i = 0; i < 500; i++) {
7374
size_t salt_len = rand_length(sizeof(salt));

0 commit comments

Comments
 (0)