mirror of
https://github.com/hashcat/hashcat.git
synced 2025-08-03 12:28:07 +00:00
Limit exec_hexify() to max 32 chars
This commit is contained in:
parent
5b2b00ed7d
commit
72fdc6a527
@ -22,7 +22,9 @@ bool need_hexify (const u8 *buf, const int len)
|
|||||||
|
|
||||||
void exec_hexify (const u8 *buf, const int len, u8 *out)
|
void exec_hexify (const u8 *buf, const int len, u8 *out)
|
||||||
{
|
{
|
||||||
for (int i = len - 1, j = i * 2; i >= 0; i -= 1, j -= 2)
|
const int max_len = (len >= 32) ? 32 : len;
|
||||||
|
|
||||||
|
for (int i = max_len - 1, j = i * 2; i >= 0; i -= 1, j -= 2)
|
||||||
{
|
{
|
||||||
const u8 v = buf[i];
|
const u8 v = buf[i];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user