1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-10 15:51:10 +00:00

Fix some variable initializationg warnings in older GCC

This commit is contained in:
jsteube 2017-02-16 10:10:38 +01:00
parent 0a2e629f0f
commit ef004e85f0
2 changed files with 10 additions and 3 deletions

View File

@ -14206,10 +14206,14 @@ void seven_zip_hook_func (hc_device_param_t *device_param, hashes_t *hashes, con
// init AES
AES_KEY aes_key = { 0 };
AES_KEY aes_key;
memset (&aes_key, 0, sizeof (aes_key));
AES_set_decrypt_key (ukey, 256, &aes_key);
AES_KEY aes_key_copied;
memcpy (&aes_key_copied, &aes_key, sizeof (AES_KEY));
if (padding_check_fast == true) // use part of the data as initialization vector

View File

@ -1565,8 +1565,11 @@ int user_options_check_files (hashcat_ctx_t *hashcat_ctx)
char *outfile = outfile_ctx->filename;
hc_stat_t tmpstat_outfile = { 0 };
hc_stat_t tmpstat_hashfile = { 0 };
hc_stat_t tmpstat_outfile;
hc_stat_t tmpstat_hashfile;
memset (&tmpstat_outfile, 0, sizeof (tmpstat_outfile));
memset (&tmpstat_hashfile, 0, sizeof (tmpstat_hashfile));
int do_check = 0;