1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fixed a race condition in status view leading to out-of-bound reads

This commit is contained in:
Jens Steube 2018-08-30 21:31:05 +02:00
parent 891347845b
commit a134ea52b3
3 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit 42e7afe066a67107c2236b86c9864a472f8eead8
Subproject commit bf0f43b76f4556c3d5717f8ba8a01216b27f4af7

View File

@ -22,6 +22,7 @@
- Fixed the ciphertext max length in Ansible Vault parser
- Fixed detection of unique ESSID in WPA-PMKID-* parser
- Fixed speed/delay problem when quitting while the outfile folder is being scanned
- Fixed a race condition in status view leading to out-of-bound reads
* changes v4.2.0 -> v4.2.1

View File

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