1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-16 13:05:28 +00:00

Merge pull request #1087 from philsmd/master

minor: check for return value of sscanf () within the zip2 parse function
This commit is contained in:
Jens Steube 2017-02-14 19:08:33 +01:00 committed by GitHub
commit 670ac4aa6e

View File

@ -13157,7 +13157,12 @@ int zip2_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSE
u8 *salt_buf = param3_pos;
u32 verify_bytes; sscanf ((const char *) param4_pos, "%4x*", &verify_bytes);
u32 verify_bytes;
if (sscanf ((const char *) param4_pos, "%4x*", &verify_bytes) == EOF)
{
return (PARSER_SALT_VALUE);
}
const u32 compress_length = atoll ((const char *) param5_pos);