1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fix mangle_dupeword_times() in OpenCL/inc_rp.cl

This commit is contained in:
Jens Steube 2020-02-11 12:23:51 +01:00
parent a74cbe3461
commit f5527bb937

View File

@ -298,15 +298,13 @@ DECLSPEC int mangle_dupeword_times (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const
if (out_len >= RP_PASSWORD_SIZE) return (len);
u8 *out = buf + len;
int out_pos = len;
for (int t = 0; t < p0; t++)
{
for (int i = 0; i < len; i++)
{
out[out_pos] = buf[i];
buf[out_pos] = buf[i];
out_pos++;
}