From f7c3ced548a4700761aabfb7b388efb7d585f756 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sun, 17 Nov 2019 19:59:23 +0100 Subject: [PATCH] Fix use of calloc() in backend.c --- src/backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend.c b/src/backend.c index 4ba4aef86..2236c5a11 100644 --- a/src/backend.c +++ b/src/backend.c @@ -2902,7 +2902,7 @@ int choose_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, hook_thread_param->pws_cnt = pws_cnt; } - hc_thread_t *c_threads = (hc_thread_t *) calloc (hook_threads, sizeof (hc_thread_t)); + hc_thread_t *c_threads = (hc_thread_t *) hccalloc (hook_threads, sizeof (hc_thread_t)); for (int i = 0; i < hook_threads; i++) { @@ -3018,7 +3018,7 @@ int choose_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, hook_thread_param->pws_cnt = pws_cnt; } - hc_thread_t *c_threads = (hc_thread_t *) calloc (hook_threads, sizeof (hc_thread_t)); + hc_thread_t *c_threads = (hc_thread_t *) hccalloc (hook_threads, sizeof (hc_thread_t)); for (int i = 0; i < hook_threads; i++) {