From a3ee4d71889401c922945ca28fae3f26bed34b8f Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 24 Aug 2018 12:59:28 +0200 Subject: [PATCH] Do not allocate memory segments for bitmap tables if we dont need it, for example in benchmark mode --- docs/changes.txt | 1 + src/user_options.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index a3811be16..2c4756843 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -9,6 +9,7 @@ - Getting rid of OPTS_TYPE_HASH_COPY for Ansible Vault - Add a tracker for salts, amplifier and iterations to status screen - Add option --markov-hcstat2 to make it clear that the new hcstat2 format (compressed hcstat2gen output) must be used +- Do not allocate memory segments for bitmap tables if we dont need it, for example in benchmark mode ## ## Bugs diff --git a/src/user_options.c b/src/user_options.c index 60215d106..81f39ebd7 100644 --- a/src/user_options.c +++ b/src/user_options.c @@ -1237,6 +1237,8 @@ void user_options_preprocess (hashcat_ctx_t *hashcat_ctx) user_options->show = false; user_options->status = false; user_options->status_timer = 0; + user_options->bitmap_min = 1; + user_options->bitmap_max = 1; } if (user_options->benchmark == true) @@ -1256,6 +1258,8 @@ void user_options_preprocess (hashcat_ctx_t *hashcat_ctx) user_options->speed_only = true; user_options->status = false; user_options->status_timer = 0; + user_options->bitmap_min = 1; + user_options->bitmap_max = 1; if (user_options->workload_profile_chgd == false) {