From e15169bd49592e7afed4ed2c64073eb6f7291fef Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 26 Nov 2023 07:31:18 +0000 Subject: [PATCH] Fix allocation buffer for --dynamic-x in hashes_init_stage2() --- src/hashes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hashes.c b/src/hashes.c index 6c2ac7608..9de7a95a3 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -2020,7 +2020,7 @@ int hashes_init_stage2 (hashcat_ctx_t *hashcat_ctx) hashinfo_t **hash_info = NULL; - if ((user_options->username == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT)) + if ((user_options->username == true) || (user_options->dynamic_x == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT)) { hash_info = (hashinfo_t **) hccalloc (hashes_cnt, sizeof (hashinfo_t *)); }