mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 08:38:09 +00:00
Let is_hexify() call is_valid_hex_string() for better verification
This commit is contained in:
parent
dd55c1eb66
commit
5ec763fa20
@ -98,6 +98,8 @@ bool is_hexify (const u8 *buf, const int len)
|
|||||||
if (buf[4] != '[') return (false);
|
if (buf[4] != '[') return (false);
|
||||||
if (buf[len - 1] != ']') return (false);
|
if (buf[len - 1] != ']') return (false);
|
||||||
|
|
||||||
|
if (is_valid_hex_string (buf + 5, len - 6) == false) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user