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

Merge pull request #3760 from matrix/check_invalid_kern_type

do not allow negative kern_type
This commit is contained in:
Jens Steube 2023-06-14 03:25:35 +02:00 committed by GitHub
commit 32517211a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9872,6 +9872,13 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
}
}
if ((int) kern_type == -1)
{
event_log_error (hashcat_ctx, "Invalid hash-mode selected: -1");
return -1;
}
// built options
const size_t build_options_sz = 4096;