1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-14 03:39:09 +00:00

Fixed buffer overflow in mp_add_cs_buf() function

This commit is contained in:
Jens Steube 2020-02-19 18:50:50 +01:00
parent 9957422191
commit 189bbb2661
2 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,7 @@
##
- Fixed buffer overflow in build_plain() function
- Fixed buffer overflow in mp_add_cs_buf() function
- Fixed copy/paste error leading to invalid "Integer overflow detected in keyspace of mask" in attack-mode 6 and 7
- Fixed cracking multiple Office hashes (modes 9500, 9600) with the same salt
- Fixed cracking of Blockchain, My Wallet (V1 and V2) hashes with unexpected decrypted data

View File

@ -217,6 +217,13 @@ static int mp_add_cs_buf (hashcat_ctx_t *hashcat_ctx, const u32 *in_buf, size_t
{
const hashconfig_t *hashconfig = hashcat_ctx->hashconfig;
if (css_cnt == 256)
{
event_log_error (hashcat_ctx, "Invalid mask length.");
return -1;
}
cs_t *cs = &css[css_cnt];
size_t css_uniq_sz = CHARSIZ * sizeof (u32);