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

More correct calculation size for copying full memory buffers

This commit is contained in:
Herman Semenov 2024-07-04 16:28:46 -05:00
parent 6716447dfc
commit 0cefb9167c
73 changed files with 75 additions and 75 deletions

View File

@ -198,7 +198,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (rc_tokenizer != PARSER_OK) return (rc_tokenizer);
memcpy ((u8 *) salt->salt_sign, line_buf, 4);
memcpy ((u8 *) salt->salt_sign, line_buf, sizeof(salt->salt_sign));
const u8 *iter_pos = token.buf[1];

View File

@ -236,7 +236,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -236,7 +236,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -218,7 +218,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// salt
memcpy (salt->salt_buf, line_buf, TC_SALT_LEN);
memcpy (salt->salt_buf, line_buf, sizeof(salt->salt_buf));
salt->salt_len = TC_SALT_LEN;
@ -236,7 +236,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -248,7 +248,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -248,7 +248,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -248,7 +248,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -246,7 +246,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -246,7 +246,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -246,7 +246,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -251,7 +251,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -251,7 +251,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -251,7 +251,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -283,7 +283,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -283,7 +283,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -283,7 +283,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -296,7 +296,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -296,7 +296,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -296,7 +296,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -278,7 +278,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// salt
memcpy (salt->salt_buf, line_buf, VC_SALT_LEN);
memcpy (salt->salt_buf, line_buf, sizeof(salt->salt_buf));
salt->salt_len = VC_SALT_LEN;
@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -285,7 +285,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -285,7 +285,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -285,7 +285,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -304,7 +304,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -304,7 +304,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -304,7 +304,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -288,7 +288,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -288,7 +288,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -288,7 +288,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -290,7 +290,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -290,7 +290,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -290,7 +290,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -343,7 +343,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest:
memcpy (digest, bitlocker->data, 16);
memcpy (digest, bitlocker->data, sizeof(bitlocker->data));
return (PARSER_OK);
}

View File

@ -178,7 +178,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -178,7 +178,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -178,7 +178,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -179,7 +179,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -179,7 +179,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -179,7 +179,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -164,7 +164,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -164,7 +164,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -164,7 +164,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -191,7 +191,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -191,7 +191,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -191,7 +191,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, tc->data_buf, TC_DATA_LEN / 4);
memcpy (digest, tc->data_buf, sizeof(tc->data_buf));
return (PARSER_OK);
}

View File

@ -220,7 +220,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -220,7 +220,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -220,7 +220,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -231,7 +231,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -231,7 +231,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -231,7 +231,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -207,7 +207,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -207,7 +207,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -221,7 +221,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -222,7 +222,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -222,7 +222,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -222,7 +222,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -239,7 +239,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -239,7 +239,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -239,7 +239,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -241,7 +241,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -241,7 +241,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -241,7 +241,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -230,7 +230,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -230,7 +230,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -236,7 +236,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -232,7 +232,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -232,7 +232,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}

View File

@ -232,7 +232,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// fake digest
memcpy (digest, vc->data_buf, 112);
memcpy (digest, vc->data_buf, sizeof(vc->data_buf));
return (PARSER_OK);
}