Skip to content

Commit

Permalink
Merge pull request hashcat#3727 from matrix/fix_module_501
Browse files Browse the repository at this point in the history
added missing memset for token2 in module_hash_decode(), module_00501.c
  • Loading branch information
jsteube authored May 20, 2023
2 parents c100ad7 + 546b94f commit cb36114
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/module_00501.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit cb36114

Please sign in to comment.