1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 23:48:39 +00:00

Merge pull request #1071 from philsmd/master

precompute_salt_md5: don't allow a salt_len > 64
This commit is contained in:
Jens Steube 2017-02-14 15:32:26 +01:00 committed by GitHub
commit f49aaee414

View File

@ -3298,7 +3298,7 @@ int md5s_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSE
salt_len = parse_and_store_salt (salt_buf_ptr, salt_buf, salt_len, hashconfig); salt_len = parse_and_store_salt (salt_buf_ptr, salt_buf, salt_len, hashconfig);
if (salt_len == UINT_MAX) return (PARSER_SALT_LENGTH); if (salt_len > 64) return (PARSER_SALT_LENGTH);
salt->salt_len = salt_len; salt->salt_len = salt_len;
@ -4117,7 +4117,7 @@ int ipb2_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSE
salt_len = parse_and_store_salt (salt_buf_ptr, salt_buf, salt_len, hashconfig); salt_len = parse_and_store_salt (salt_buf_ptr, salt_buf, salt_len, hashconfig);
if (salt_len == UINT_MAX) return (PARSER_SALT_LENGTH); if (salt_len > 64) return (PARSER_SALT_LENGTH);
salt->salt_len = salt_len; salt->salt_len = salt_len;