From 7f3d107129c606d4f0cf113881cf9e8079a4e2d7 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 14 Feb 2017 17:13:36 +0100 Subject: [PATCH] Fixed pointer to local outside scope in case -j or -k is used --- src/opencl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/opencl.c b/src/opencl.c index 3797b7311..914d8b27a 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -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);