1
mirror of https://github.com/hashcat/hashcat synced 2024-11-24 14:27:14 +01:00

Fixes #3596: bug in --stdout w/ rules

Changes BUF_SZ to PW_MAX to correctly memset the pw buffer to 0 between candidates.
This commit is contained in:
Chick3nman 2023-01-26 10:48:30 -06:00 committed by GitHub
parent 8d044fa07f
commit 0f697fd668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++;