1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-17 21:59:06 +00:00

Fix use of calloc() in backend.c

This commit is contained in:
Jens Steube 2019-11-17 19:59:23 +01:00
parent 5dc6954b55
commit f7c3ced548

View File

@ -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; 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++) 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; 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++) for (int i = 0; i < hook_threads; i++)
{ {