From debac6c4347c428eaae77f78e2438ed75e5d1d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 5 Apr 2021 02:15:31 +0300 Subject: [PATCH] Fix uninitialized loop variable --- puer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puer.c b/puer.c index 5bec086..4682d74 100644 --- a/puer.c +++ b/puer.c @@ -169,7 +169,7 @@ void feed_hash(struct hashstate *state, unsigned char input[], size_t length) { // Invariant: The buffer will be filled somewhere between 0 and 15 // when we enter this loop. This is because once it reaches 16, the // hash compression function is executed. - for (size_t i; i < length; i++) { + for (size_t i = 0; i < length; i++) { // Must not overflow the internat counter. In practice we will not // hit this. assert(state->totalbits <= UINT64_MAX - 8);