1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Merge pull request #2447 from philsmd/master

rule engine: add zero-length check for rule 'z'
This commit is contained in:
Jens Steube 2020-06-15 10:01:20 +02:00 committed by GitHub
commit 5c3a3137b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -518,6 +518,7 @@ DECLSPEC int mangle_dupechar_first (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const
{
const int out_len = len + p0;
if (len == 0) return (len);
if (out_len >= RP_PASSWORD_SIZE) return (len);
const u8 c = buf[0];