mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Fixed out-of-boundary reads in attack mode 9 that were caused by a missing work item limit in the refactored autotune engine
This commit is contained in:
parent
5769c99686
commit
534bfd3172
@ -1,5 +1,12 @@
|
||||
* changes v6.2.4 -> v6.2.x
|
||||
|
||||
##
|
||||
## Bugs
|
||||
##
|
||||
|
||||
- Fixed out-of-boundary reads in attack mode 9 that were caused by a missing work item limit in the refactored autotune engine
|
||||
|
||||
|
||||
* changes v6.2.3 -> v6.2.4
|
||||
|
||||
##
|
||||
|
@ -198,7 +198,19 @@ static int autotune (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
|
||||
|
||||
const u32 hardware_power_max = ((hashconfig->opts_type & OPTS_TYPE_MP_MULTI_DISABLE) ? 1 : device_param->device_processors) * kernel_threads_max;
|
||||
|
||||
const u32 kernel_power_max = hardware_power_max * kernel_accel_max;
|
||||
u32 kernel_power_max = hardware_power_max * kernel_accel_max;
|
||||
|
||||
if (user_options->attack_mode == ATTACK_MODE_ASSOCIATION)
|
||||
{
|
||||
hashes_t *hashes = hashcat_ctx->hashes;
|
||||
|
||||
const u32 salts_cnt = hashes->salts_cnt;
|
||||
|
||||
if (kernel_power_max > salts_cnt)
|
||||
{
|
||||
kernel_power_max = salts_cnt;
|
||||
}
|
||||
}
|
||||
|
||||
if (device_param->is_cuda == true)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user