1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-27 00:48:13 +00:00

Fix missing boundary check in pure kernel rule engine

This commit is contained in:
jsteube 2017-08-12 13:32:05 +02:00
parent dcaa91a88f
commit 9a57c4b20e

View File

@ -148,6 +148,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];