1
mirror of https://github.com/hashcat/hashcat synced 2024-11-24 14:27:14 +01:00

Merge pull request #261 from philsmd/master

added additional check for max. ESSID length to prevent possible crashes
This commit is contained in:
Jens Steube 2016-03-09 13:58:25 +01:00
commit 8d83493f33

View File

@ -10023,6 +10023,13 @@ int wpa_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf)
uint salt_len = strlen (in.essid);
if (salt_len > 36)
{
log_info ("WARNING: the length of the ESSID is too long. The hccap file may be invalid or corrupted");
return (PARSER_SALT_LENGTH);
}
memcpy (salt->salt_buf, in.essid, salt_len);
salt->salt_len = salt_len;