mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-09 15:20:59 +00:00
Fix current password length check in y/Y rules in pure kernel mode
This commit is contained in:
parent
0454175568
commit
27df7429ce
@ -651,7 +651,7 @@ DECLSPEC int mangle_replace_nm1 (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8
|
|||||||
|
|
||||||
DECLSPEC int mangle_dupeblock_first (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8 p1, u8 *buf, const int len)
|
DECLSPEC int mangle_dupeblock_first (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8 p1, u8 *buf, const int len)
|
||||||
{
|
{
|
||||||
if (p0 >= len) return (len);
|
if (p0 > len) return (len);
|
||||||
|
|
||||||
const int out_len = len + p0;
|
const int out_len = len + p0;
|
||||||
|
|
||||||
@ -669,7 +669,7 @@ DECLSPEC int mangle_dupeblock_first (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED cons
|
|||||||
|
|
||||||
DECLSPEC int mangle_dupeblock_last (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8 p1, u8 *buf, const int len)
|
DECLSPEC int mangle_dupeblock_last (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8 p1, u8 *buf, const int len)
|
||||||
{
|
{
|
||||||
if (p0 >= len) return (len);
|
if (p0 > len) return (len);
|
||||||
|
|
||||||
const int out_len = len + p0;
|
const int out_len = len + p0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user