From fb081947e15ff63ba0908623cf2a62a5eb7ce471 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sat, 1 May 2021 14:13:58 +0200 Subject: [PATCH] Fixed access to filename which is a null-pointer in benchmark mode --- docs/changes.txt | 1 + src/hashes.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index f820cb860..132f69b2b 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -40,6 +40,7 @@ ## Bugs ## +- Fixed access to filename which is a null-pointer in benchmark mode - Fixed both false negative and false positive result in -m 3000 in -a 3 (affected only NVIDIA GPU) - Fixed buffer overflow in -m 1800 in -O mode which is optimized to handle only password candidates up to length 15 - Fixed buffer overflow in -m 4710 in -P mode and only in single hash mode if salt length was larger than 32 byte diff --git a/src/hashes.c b/src/hashes.c index d83dc29ef..f1ee22334 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -629,6 +629,8 @@ int hashes_init_filename (hashcat_ctx_t *hashcat_ctx) user_options_t *user_options = hashcat_ctx->user_options; user_options_extra_t *user_options_extra = hashcat_ctx->user_options_extra; + if (user_options->benchmark == true) return 0; + /** * load hashes, part I: find input mode, count hashes */