aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-09-23 09:36:25 -0400
committerPaul Duncan <pabs@pablotron.org>2023-09-23 09:36:25 -0400
commit27d068ce203a7b1371dd28c1ce4bd8f3fad3d06f (patch)
tree94827e7fe0abca278ea89ef2aa323aeffd3a635f
parent9414c5b86c864ccc9753f4713b6f58d47ce4538b (diff)
downloadsha3-27d068ce203a7b1371dd28c1ce4bd8f3fad3d06f.tar.bz2
sha3-27d068ce203a7b1371dd28c1ce4bd8f3fad3d06f.zip
sha3.c: k12_big_absorb_done(): fix uninitialized buffer warning
-rw-r--r--sha3.c2
1 files changed, 1 insertions, 1 deletions
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);