1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 00:28:11 +00:00

Let is_hexify() call is_valid_hex_string() for better verification

This commit is contained in:
Jens Steube 2017-02-19 14:51:45 +01:00
parent dd55c1eb66
commit 5ec763fa20

View File

@ -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;
} }