mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-17 12:18:24 +00:00
Added missing check for in_len in _old_apply_rule function
This commit is contained in:
parent
87c9afd910
commit
17d885ffa4
@ -20372,13 +20372,13 @@ int generate_random_rule (char rule_buf[RP_RULE_BUFSIZ], u32 rp_gen_func_min, u3
|
||||
|
||||
int _old_apply_rule (char *rule, int rule_len, char in[BLOCK_SIZE], int in_len, char out[BLOCK_SIZE])
|
||||
{
|
||||
char mem[BLOCK_SIZE];
|
||||
char mem[BLOCK_SIZE] = { 0 };
|
||||
|
||||
if (in == NULL) return (RULE_RC_REJECT_ERROR);
|
||||
|
||||
if (out == NULL) return (RULE_RC_REJECT_ERROR);
|
||||
|
||||
if (in_len < 1) return (RULE_RC_REJECT_ERROR);
|
||||
if (in_len < 1 || in_len > BLOCK_SIZE) return (RULE_RC_REJECT_ERROR);
|
||||
|
||||
if (rule_len < 1) return (RULE_RC_REJECT_ERROR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user