1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-11 08:10:59 +00:00

Fixed pointer to local outside scope when using -j or -k

This commit is contained in:
jsteube 2017-02-14 14:27:08 +01:00
parent 05230bd7f9
commit dc2ecc9dae
2 changed files with 5 additions and 4 deletions

View File

@ -49,6 +49,7 @@
- Fixed WPA/WPA2 cracking in case eapol frame is >= 248 byte - Fixed WPA/WPA2 cracking in case eapol frame is >= 248 byte
- Fixed string not null terminated inside workaround for checking drm driver path - Fixed string not null terminated inside workaround for checking drm driver path
- Fixed string not null terminated when reading maskfiles - Fixed string not null terminated when reading maskfiles
- Fixed pointer to local outside scope when using -j or -k
## ##
## Technical ## Technical

View File

@ -150,10 +150,10 @@ static int calc_stdin (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_par
// post-process rule engine // post-process rule engine
if (run_rule_engine ((int) user_options_extra->rule_len_l, user_options->rule_buf_l))
{
char rule_buf_out[BLOCK_SIZE] = { 0 }; char rule_buf_out[BLOCK_SIZE] = { 0 };
if (run_rule_engine ((int) user_options_extra->rule_len_l, user_options->rule_buf_l))
{
int rule_len_out = -1; int rule_len_out = -1;
if (line_len < BLOCK_SIZE) if (line_len < BLOCK_SIZE)
@ -453,10 +453,10 @@ static int calc (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param)
// post-process rule engine // post-process rule engine
if (run_rule_engine ((int) user_options_extra->rule_len_l, user_options->rule_buf_l))
{
char rule_buf_out[BLOCK_SIZE] = { 0 }; char rule_buf_out[BLOCK_SIZE] = { 0 };
if (run_rule_engine ((int) user_options_extra->rule_len_l, user_options->rule_buf_l))
{
int rule_len_out = -1; int rule_len_out = -1;
if (line_len < BLOCK_SIZE) if (line_len < BLOCK_SIZE)