mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-10 15:51:10 +00:00
Fixed clEnqueueNDRangeKernel(): CL_UNKNOWN_ERROR caused by an invalid work-item count during weak-hash-check
This commit is contained in:
parent
778b64b680
commit
9005b66626
@ -40,6 +40,7 @@
|
||||
- Fixed use of option --keyspace in combination with -m 2500 (WPA)
|
||||
- Fixed rule 'O' (RULE_OP_MANGLE_OMIT) in host mode in case the offset + length parameter equals the length of the input word
|
||||
- Fixed duplicate detection for WPA handshakes with the same ESSID
|
||||
- Fixed clEnqueueNDRangeKernel(): CL_UNKNOWN_ERROR caused by an invalid work-item count during weak-hash-check
|
||||
|
||||
##
|
||||
## Technical
|
||||
|
@ -34,6 +34,7 @@
|
||||
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
||||
|
||||
#define CEIL(a) ((a - (int) (a)) > 0 ? a + 1 : a)
|
||||
#define CEILDIV(a,b) (((a) + (b) - 1) / (b))
|
||||
|
||||
#if defined (__APPLE__)
|
||||
#define __stdcall
|
||||
|
@ -1366,7 +1366,7 @@ int run_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, con
|
||||
{
|
||||
if (hashconfig->opti_type & OPTI_TYPE_SLOW_HASH_SIMD)
|
||||
{
|
||||
num_elements = CEIL (num_elements / device_param->vector_width);
|
||||
num_elements = CEILDIV (num_elements, device_param->vector_width);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user