1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 00:28:11 +00:00

Avoid -Waddress-of-packed-member warnings

This commit is contained in:
Awais Chishti 2019-08-01 21:28:48 +05:00
parent e74396d5aa
commit c40473416a
5 changed files with 11 additions and 21 deletions

View File

@ -284,12 +284,10 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
hex_to_binary (p, strlen (p), (char *) &(pkzip->hash.data));
// fake salt
u32 *ptr = (u32 *) pkzip->hash.data;
salt->salt_buf[0] = ptr[0];
salt->salt_buf[1] = ptr[1];
salt->salt_buf[2] = ptr[2];
salt->salt_buf[3] = ptr[3];
salt->salt_buf[0] = pkzip->hash.data[0];
salt->salt_buf[1] = pkzip->hash.data[1];
salt->salt_buf[2] = pkzip->hash.data[2];
salt->salt_buf[3] = pkzip->hash.data[3];
salt->salt_len = 16;

View File

@ -283,12 +283,10 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
hex_to_binary (p, strlen (p), (char *) &(pkzip->hash.data));
// fake salt
u32 *ptr = (u32 *) pkzip->hash.data;
salt->salt_buf[0] = ptr[0];
salt->salt_buf[1] = ptr[1];
salt->salt_buf[2] = ptr[2];
salt->salt_buf[3] = ptr[3];
salt->salt_buf[0] = pkzip->hash.data[0];
salt->salt_buf[1] = pkzip->hash.data[1];
salt->salt_buf[2] = pkzip->hash.data[2];
salt->salt_buf[3] = pkzip->hash.data[3];
salt->salt_len = 16;

View File

@ -285,9 +285,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
hex_to_binary (p, strlen (p), (char *) &(pkzip->hashes[i].data));
// fake salt
u32 *ptr = (u32 *) pkzip->hashes[i].data;
salt->salt_buf[i] = ptr[0];
salt->salt_buf[i] = pkzip->hashes[i].data[0];
if (i == 0) digest[i] = pkzip->hashes[i].checksum_from_crc;
}

View File

@ -285,9 +285,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
hex_to_binary (p, strlen (p), (char *) &(pkzip->hashes[i].data));
// fake salt
u32 *ptr = (u32 *) pkzip->hashes[i].data;
salt->salt_buf[i] = ptr[0];
salt->salt_buf[i] = pkzip->hashes[i].data[0];
if (i == 0) digest[i] = pkzip->hashes[i].checksum_from_crc;
}

View File

@ -286,9 +286,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
hex_to_binary (p, strlen (p), (char *) &(pkzip->hashes[i].data));
// fake salt
u32 *ptr = (u32 *) pkzip->hashes[i].data;
salt->salt_buf[i] = ptr[0];
salt->salt_buf[i] = pkzip->hashes[i].data[0];
if (i == 0) digest[i] = pkzip->hashes[i].checksum_from_crc;
}