From 0f697fd668d8740f447069013c85f2600c1b3b2d Mon Sep 17 00:00:00 2001 From: Chick3nman Date: Thu, 26 Jan 2023 10:48:30 -0600 Subject: [PATCH] Fixes #3596: bug in --stdout w/ rules Changes BUF_SZ to PW_MAX to correctly memset the pw buffer to 0 between candidates. --- src/stdout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdout.c b/src/stdout.c index 2572832a7..429836793 100644 --- a/src/stdout.c +++ b/src/stdout.c @@ -223,7 +223,7 @@ int process_stdout (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, out_push (&out, plain_ptr, plain_len); - memset (plain_ptr, 0, BUF_SZ); + memset (plain_ptr, 0, PW_MAX); } pw_idx++;