1
0
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:
Herman Semenov 2024-07-04 13:34:47 -05:00
parent 6716447dfc
commit d54b99f86a
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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