1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 07:08:19 +00:00

Fixed buffer overflow on module_26600.c / module_hash_encode()

This commit is contained in:
Gabriele Gristina 2023-04-15 23:25:50 +02:00
parent 9b96649672
commit f08448f802

View File

@ -291,7 +291,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if ((ct_len % 4) > 0) j++; if ((ct_len % 4) > 0) j++;
u32 tmp_buf[784] = { 0 }; u32 tmp_buf[788] = { 0 };
for (u32 i = 0; i < j; i++) tmp_buf[i] = byte_swap_32 (metamask->ct_buf[i]); for (u32 i = 0; i < j; i++) tmp_buf[i] = byte_swap_32 (metamask->ct_buf[i]);