mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 16:18:09 +00:00
sanity check for u32 cast for combs_cnt, bfs_cnt
This commit is contained in:
parent
5d9d3c7eb7
commit
b51f536ac5
@ -3599,11 +3599,11 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
|
||||
|
||||
if (user_options_extra->attack_kern == ATTACK_KERN_COMBI)
|
||||
{
|
||||
if (combinator_ctx->combs_cnt >> 32) != 0) return -1;
|
||||
if ((combinator_ctx->combs_cnt >> 32) != 0) return -1;
|
||||
}
|
||||
else if (user_options_extra->attack_kern == ATTACK_KERN_BF)
|
||||
{
|
||||
if (mask_ctx->bfs_cnt >> 32) != 0) return -1;
|
||||
if ((mask_ctx->bfs_cnt >> 32) != 0) return -1;
|
||||
}
|
||||
|
||||
if (hashconfig->attack_exec == ATTACK_EXEC_INSIDE_KERNEL) innerloop_step = device_param->kernel_loops;
|
||||
|
Loading…
Reference in New Issue
Block a user