1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-10 15:51:10 +00:00

Make sure not to abort entire benchmark if a mode was marked as unstable

This commit is contained in:
jsteube 2019-03-03 20:11:23 +01:00
parent dc9279c95c
commit c43ef406a9
2 changed files with 13 additions and 2 deletions

View File

@ -1051,6 +1051,7 @@ typedef struct hc_device_param
u32 platform_devices_id; // for mapping with hms devices u32 platform_devices_id; // for mapping with hms devices
bool skipped; bool skipped;
bool unstable_warning;
st_status_t st_status; st_status_t st_status;

View File

@ -4504,6 +4504,8 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
device_param->skipped = true; device_param->skipped = true;
device_param->unstable_warning = true;
continue; continue;
} }
} }
@ -6748,7 +6750,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
// Prevent exit from benchmark mode if all devices are skipped due to unstable hash-modes (macOS) // Prevent exit from benchmark mode if all devices are skipped due to unstable hash-modes (macOS)
if (hardware_power_all == 0) return -1; // if (hardware_power_all == 0) return -1;
opencl_ctx->hardware_power_all = hardware_power_all; opencl_ctx->hardware_power_all = hardware_power_all;
@ -6926,7 +6928,15 @@ void opencl_session_reset (hashcat_ctx_t *hashcat_ctx)
{ {
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
if (device_param->skipped == true) continue; if (device_param->skipped == true)
{
if (device_param->unstable_warning == true)
{
device_param->skipped = false;
}
continue;
}
device_param->speed_pos = 0; device_param->speed_pos = 0;