mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-13 19:28:56 +00:00
Backport missing boundary check to CPU
This commit is contained in:
parent
9a57c4b20e
commit
6217f11028
@ -152,6 +152,8 @@ static int mangle_prepend (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8 p1, u
|
||||
{
|
||||
const int out_len = len + 1;
|
||||
|
||||
if (out_len >= RP_PASSWORD_SIZE) return (len);
|
||||
|
||||
for (int pos = len - 1; pos >= 0; pos--)
|
||||
{
|
||||
buf[pos + 1] = buf[pos];
|
||||
|
Loading…
Reference in New Issue
Block a user