mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 23:48:39 +00:00
Fix some code in wordlist.c to make cppcheck happy
This commit is contained in:
parent
907fb52c7b
commit
67d0ca055f
@ -204,13 +204,13 @@ void get_next_word (hashcat_ctx_t *hashcat_ctx, FILE *fd, char **out_buf, u32 *o
|
|||||||
|
|
||||||
if (run_rule_engine (user_options_extra->rule_len_l, user_options->rule_buf_l))
|
if (run_rule_engine (user_options_extra->rule_len_l, user_options->rule_buf_l))
|
||||||
{
|
{
|
||||||
char rule_buf_out[BLOCK_SIZE] = { 0 };
|
|
||||||
|
|
||||||
int rule_len_out = -1;
|
int rule_len_out = -1;
|
||||||
|
|
||||||
if (len < BLOCK_SIZE)
|
if (len < BLOCK_SIZE)
|
||||||
{
|
{
|
||||||
rule_len_out = _old_apply_rule (user_options->rule_buf_l, user_options_extra->rule_len_l, ptr, len, rule_buf_out);
|
char unused[BLOCK_SIZE] = { 0 };
|
||||||
|
|
||||||
|
rule_len_out = _old_apply_rule (user_options->rule_buf_l, user_options_extra->rule_len_l, ptr, len, unused);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rule_len_out < 0)
|
if (rule_len_out < 0)
|
||||||
@ -357,13 +357,13 @@ u64 count_words (hashcat_ctx_t *hashcat_ctx, FILE *fd, const char *dictfile)
|
|||||||
|
|
||||||
if (run_rule_engine (user_options_extra->rule_len_l, user_options->rule_buf_l))
|
if (run_rule_engine (user_options_extra->rule_len_l, user_options->rule_buf_l))
|
||||||
{
|
{
|
||||||
char rule_buf_out[BLOCK_SIZE] = { 0 };
|
|
||||||
|
|
||||||
int rule_len_out = -1;
|
int rule_len_out = -1;
|
||||||
|
|
||||||
if (len < BLOCK_SIZE)
|
if (len < BLOCK_SIZE)
|
||||||
{
|
{
|
||||||
rule_len_out = _old_apply_rule (user_options->rule_buf_l, user_options_extra->rule_len_l, wl_data->buf + i, len, rule_buf_out);
|
char unused[BLOCK_SIZE] = { 0 };
|
||||||
|
|
||||||
|
rule_len_out = _old_apply_rule (user_options->rule_buf_l, user_options_extra->rule_len_l, wl_data->buf + i, len, unused);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rule_len_out < 0)
|
if (rule_len_out < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user