From 9684d8793a23fc8dd80935732d6c14392fc9659f Mon Sep 17 00:00:00 2001 From: philsmd Date: Sat, 5 Dec 2015 08:48:00 +0100 Subject: [PATCH] fixes issue #1: cuMemsetD8() 1 error (nvidia only, problem did not affect mask attacks) --- docs/changes.txt | 7 +++++++ src/oclHashcat.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index e166143da..6f81a6df3 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -1,3 +1,10 @@ +* changes v2.00 -> v2.01: + +Type.: Bug +File.: Host +Desc.: Fix for a cuMemsetD8() 1 error in attacks different from mask attacks +Issue: 1 + * changes v1.37 -> v2.00: Type: Project diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 3aa4d46b7..d55c3cf69 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -2695,7 +2695,10 @@ static void run_copy (hc_device_param_t *device_param, const uint pws_cnt) // clear some leftovers from previous run (maskfiles, etc) #ifdef _CUDA - hc_cuMemsetD8 (device_param->c_bfs, 0, device_param->c_bytes); + if (device_param->c_bfs != 0) // should be only true in this specific case: if (data.attack_kern == ATTACK_KERN_BF) + { + hc_cuMemsetD8 (device_param->c_bfs, 0, device_param->c_bytes); + } #endif if (data.attack_kern == ATTACK_KERN_STRAIGHT)