1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-02 02:41:35 +00:00

Fixed pointer to local outside scope in case -j or -k is used

This commit is contained in:
jsteube 2017-02-14 17:13:36 +01:00
parent a3efaa219c
commit 7f3d107129

View File

@ -1906,9 +1906,11 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
char *line_buf_new = line_buf;
char rule_buf_out[BLOCK_SIZE];
if (run_rule_engine (user_options_extra->rule_len_r, user_options->rule_buf_r))
{
char rule_buf_out[BLOCK_SIZE] = { 0 };
memset (rule_buf_out, 0, sizeof (rule_buf_out));
int rule_len_out = _old_apply_rule (user_options->rule_buf_r, user_options_extra->rule_len_r, line_buf, line_len, rule_buf_out);