mirror of
https://github.com/hashcat/hashcat
synced 2025-03-30 04:09:05 +02:00
rule engine: add zero-length check for rule 'z'
This commit is contained in:
parent
323e7463b8
commit
1e2bc78fd0
@ -518,6 +518,7 @@ DECLSPEC int mangle_dupechar_first (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const
|
|||||||
{
|
{
|
||||||
const int out_len = len + p0;
|
const int out_len = len + p0;
|
||||||
|
|
||||||
|
if (len == 0) return (len);
|
||||||
if (out_len >= RP_PASSWORD_SIZE) return (len);
|
if (out_len >= RP_PASSWORD_SIZE) return (len);
|
||||||
|
|
||||||
const u8 c = buf[0];
|
const u8 c = buf[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user