diff --git a/src/backend.c b/src/backend.c index 901e0b810..6fa9bb4e6 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1327,7 +1327,7 @@ int hc_cuModuleLoadDataExLog (hashcat_ctx_t *hashcat_ctx, CUmodule *module, cons int opts_cnt = 6; - if (threads_per_block) + if ((threads_per_block > 0) && (threads_per_block < 1024)) { opts[6] = CU_JIT_THREADS_PER_BLOCK; vals[6] = (void *) threads_per_block;