1
mirror of https://github.com/hashcat/hashcat synced 2024-11-20 23:27:31 +01:00

added missing memset for token2 in module_hash_decode(), module_00501.c

This commit is contained in:
Gabriele Gristina 2023-05-14 00:26:43 +02:00
parent 18639745ef
commit 546b94f3d2

View File

@ -273,6 +273,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
hc_token_t token2;
memset (&token2, 0, sizeof (hc_token_t));
token2.token_cnt = 3;
token2.signatures_cnt = 1;
@ -286,6 +288,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token2.len[1] = 8;
token2.attr[1] = TOKEN_ATTR_FIXED_LENGTH;
token2.sep[2] = '$';
token2.len[2] = 22;
token2.attr[2] = TOKEN_ATTR_FIXED_LENGTH
| TOKEN_ATTR_VERIFY_BASE64B;