mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-21 23:58:07 +00:00
Fixed access outbound array if line_len=256, i=784, esalt_len=1024
This commit is contained in:
parent
6716447dfc
commit
d54b99f86a
@ -3715,7 +3715,7 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
|
||||
|
||||
line_len = convert_from_hex (hashcat_ctx, line_buf, line_len);
|
||||
|
||||
if (line_len > PW_MAX) continue;
|
||||
if (line_len >= PW_MAX) continue;
|
||||
|
||||
char *line_buf_new = line_buf;
|
||||
|
||||
|
@ -328,7 +328,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
{
|
||||
esalt_len = 1 + nonce_len + 1 + 32;
|
||||
|
||||
if (esalt_len > max_esalt_len) return (PARSER_SALT_LENGTH);
|
||||
if (esalt_len >= max_esalt_len) return (PARSER_SALT_LENGTH);
|
||||
|
||||
// init
|
||||
|
||||
|
@ -228,7 +228,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
|
||||
tmp_len -= 16;
|
||||
|
||||
if (tmp_len < 30 || tmp_len > 3136) return (PARSER_CT_LENGTH);
|
||||
if (tmp_len < 30 || tmp_len >= 3136) return (PARSER_CT_LENGTH);
|
||||
|
||||
memcpy ((u8 *) metamask->ct_buf, tmp_buf, tmp_len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user