mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-28 19:58:47 +00:00
Fix EAPOL temporary buffer overflow in -m 22000 and -m 22001
This commit is contained in:
parent
c9b4e796b0
commit
81903e95ee
@ -433,7 +433,7 @@ int module_hash_binary_save (MAYBE_UNUSED const hashes_t *hashes, MAYBE_UNUSED c
|
|||||||
eapol_swapped[64] = 0;
|
eapol_swapped[64] = 0;
|
||||||
eapol_swapped[65] = 0;
|
eapol_swapped[65] = 0;
|
||||||
|
|
||||||
char tmp2_buf[384];
|
char tmp2_buf[1024];
|
||||||
|
|
||||||
const int tmp2_len = hex_encode ((const u8 *) eapol_swapped, wpa->eapol_len, (u8 *) tmp2_buf);
|
const int tmp2_len = hex_encode ((const u8 *) eapol_swapped, wpa->eapol_len, (u8 *) tmp2_buf);
|
||||||
|
|
||||||
|
@ -434,7 +434,7 @@ int module_hash_binary_save (MAYBE_UNUSED const hashes_t *hashes, MAYBE_UNUSED c
|
|||||||
eapol_swapped[64] = 0;
|
eapol_swapped[64] = 0;
|
||||||
eapol_swapped[65] = 0;
|
eapol_swapped[65] = 0;
|
||||||
|
|
||||||
char tmp2_buf[384];
|
char tmp2_buf[1024];
|
||||||
|
|
||||||
const int tmp2_len = hex_encode ((const u8 *) eapol_swapped, wpa->eapol_len, (u8 *) tmp2_buf);
|
const int tmp2_len = hex_encode ((const u8 *) eapol_swapped, wpa->eapol_len, (u8 *) tmp2_buf);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user