From 27d068ce203a7b1371dd28c1ce4bd8f3fad3d06f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 23 Sep 2023 09:36:25 -0400 Subject: sha3.c: k12_big_absorb_done(): fix uninitialized buffer warning --- sha3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha3.c b/sha3.c index 0e9a63d..526574d 100644 --- a/sha3.c +++ b/sha3.c @@ -2202,7 +2202,7 @@ static void k12_big_absorb_done(k12_big_t * const big) { } // absorb block count - uint8_t buf[9]; + uint8_t buf[9] = { 0 }; const size_t buf_len = k12_length_encode(buf, big->num_blocks); turboshake128_absorb(big->root, buf, buf_len); -- cgit v1.2.3