Fixed out of bounds error reported by Iceman1001
This commit is contained in:
@ -295,7 +295,7 @@ index 91e595d..dc3557f 100644
|
||||
ZLIBSRCS = deflate.c adler32.c trees.c zutil.c inflate.c inffast.c inftrees.c
|
||||
ZLIB_FLAGS = -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
|
||||
diff --git a/client/cmdhfmfhard.c b/client/cmdhfmfhard.c
|
||||
index b3893ea..cd5cf9f 100644
|
||||
index b3893ea..bf71a08 100644
|
||||
--- a/client/cmdhfmfhard.c
|
||||
+++ b/client/cmdhfmfhard.c
|
||||
@@ -20,12 +20,15 @@
|
||||
@ -609,8 +609,8 @@ index b3893ea..cd5cf9f 100644
|
||||
+
|
||||
+ // enumerate states using all hardware threads, each thread handles one bucket
|
||||
+ PrintAndLog("Starting %u cracking threads to search %u buckets containing a total of %lu states...", thread_count, bucket_count, maximum_states);
|
||||
+ pthread_t threads[thread_count];
|
||||
+ thread_count = sysconf(_SC_NPROCESSORS_CONF);
|
||||
+ pthread_t threads[thread_count];
|
||||
+ for(size_t i = 0; i < thread_count; i++){
|
||||
+ pthread_create(&threads[i], NULL, crack_states_thread, (void*) i);
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user