mirror of
https://github.com/hashcat/hashcat
synced 2024-11-28 05:21:38 +01:00
fix tuning_db_search() bug
This commit is contained in:
parent
de953e9043
commit
04b9050af9
@ -435,7 +435,7 @@ tuning_db_entry_t *tuning_db_search (hashcat_ctx_t *hashcat_ctx, const char *dev
|
||||
|
||||
const char *NV_prefix = (const char *) "NVIDIA ";
|
||||
|
||||
if (memcmp (device_name, NV_prefix, strlen (NV_prefix)) == 0)
|
||||
if (strlen(device_name) >= strlen(NV_prefix) && memcmp (device_name, NV_prefix, strlen (NV_prefix)) == 0)
|
||||
{
|
||||
entry = tuning_db_search_real (hashcat_ctx, device_name + strlen (NV_prefix), device_type, attack_mode, hash_mode);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user