Fixed a race condition in status view leading to out-of-bound reads
This commit is contained in:
@@ -2267,6 +2267,8 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
|
||||
fast_iteration = 1;
|
||||
}
|
||||
|
||||
hc_thread_mutex_lock (status_ctx->mux_display);
|
||||
|
||||
device_param->innerloop_pos = innerloop_pos;
|
||||
device_param->innerloop_left = innerloop_left;
|
||||
|
||||
@@ -2274,6 +2276,8 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
|
||||
|
||||
device_param->outerloop_multi = (double) innerloop_cnt / (double) (innerloop_pos + innerloop_left);
|
||||
|
||||
hc_thread_mutex_unlock (status_ctx->mux_display);
|
||||
|
||||
if (hashes->salts_shown[salt_pos] == 1)
|
||||
{
|
||||
status_ctx->words_progress_done[salt_pos] += (u64) pws_cnt * innerloop_left;
|
||||
|
||||
Reference in New Issue
Block a user