1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Fixed integer overflow for large masks in -a 6 attack mode

This commit is contained in:
Jens Steube 2020-07-21 14:12:55 +02:00
parent 8eaaad1536
commit 91b663b14d
2 changed files with 11 additions and 0 deletions

View File

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

View File

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