From d2527d142adbdc6bb1292dda73c8478f89689f09 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Tue, 10 Mar 2020 15:49:02 +0100 Subject: [PATCH] Fixed missing to copy the dictfile to dictfile_padded buffer --- src/wordlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wordlist.c b/src/wordlist.c index 651ff4d80..deda8afd2 100644 --- a/src/wordlist.c +++ b/src/wordlist.c @@ -383,6 +383,8 @@ int count_words (hashcat_ctx_t *hashcat_ctx, HCFILE *fp, const char *dictfile, u u32 *dictfile_padded = (u32 *) hcmalloc (dictfile_len + 64); // padding required for sha1_update() + memcpy (dictfile_padded, dictfile, dictfile_len); + sha1_ctx_t sha1_ctx; sha1_init (&sha1_ctx); sha1_update (&sha1_ctx, dictfile_padded, dictfile_len);