mirror of
https://github.com/hashcat/hashcat
synced 2024-11-20 23:27:31 +01:00
Fixed integer overflow for large masks in -a 6 attack mode
This commit is contained in:
parent
8eaaad1536
commit
91b663b14d
@ -11,6 +11,7 @@
|
||||
## Bugs
|
||||
##
|
||||
|
||||
- Fixed integer overflow for large masks in -a 6 attack mode
|
||||
- Fixed alias detection with additional processor core count check
|
||||
- Fixed maximum password length in modules of hash-modes 600, 7800, 7801 and 9900
|
||||
- Fixed non-zero status code when using --stdout
|
||||
|
10
src/mpsp.c
10
src/mpsp.c
@ -1261,6 +1261,16 @@ int mask_ctx_update_loop (hashcat_ctx_t *hashcat_ctx)
|
||||
return -1;
|
||||
}
|
||||
|
||||
// do not allow modifier count > 32 bit
|
||||
// https://github.com/hashcat/hashcat/issues/2482
|
||||
|
||||
if (combinator_ctx->combs_cnt > 0xffffffff)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "Integer overflow detected in keyspace of mask: %s", mask_ctx->mask);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (backend_session_update_mp (hashcat_ctx) == -1) return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user