1
0
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:
philsmd 2022-03-13 14:41:34 +01:00 committed by GitHub
parent 5d9d3c7eb7
commit b51f536ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;