Allocate always MAX_SALT * 2 bytes for temporary buffers going into generic_salt_encode()

This commit is contained in:
jsteube
2019-02-16 14:07:53 +01:00
parent ba803a79ae
commit a5336ceb72
37 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
const u32 *digest = (const u32 *) digest_buf;
char tmp_salt[16];
char tmp_salt[SALT_MAX * 2];
const int salt_len = generic_salt_encode (hashconfig, (const u8 *) salt->salt_buf, (const int) salt->salt_len, (u8 *) tmp_salt);