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

Fixed pointer to local outside scope when using not specifying --markov-hcstat

This commit is contained in:
jsteube 2017-02-14 15:19:05 +01:00
parent cdfabe333f
commit 53d6808794
2 changed files with 4 additions and 3 deletions

View File

@ -50,6 +50,7 @@
- Fixed string not null terminated inside workaround for checking drm driver path - Fixed string not null terminated inside workaround for checking drm driver path
- Fixed string not null terminated when reading maskfiles - Fixed string not null terminated when reading maskfiles
- Fixed pointer to local outside scope when using -j or -k - Fixed pointer to local outside scope when using -j or -k
- Fixed pointer to local outside scope when using not specifying --markov-hcstat
## ##
## Technical ## Technical

View File

@ -645,11 +645,11 @@ static int sp_setup_tbl (hashcat_ctx_t *hashcat_ctx)
* Load hcstats File * Load hcstats File
*/ */
char hcstat_tmp[256];
if (hcstat == NULL) if (hcstat == NULL)
{ {
char hcstat_tmp[256] = { 0 }; snprintf (hcstat_tmp, sizeof (hcstat_tmp), "%s/%s", shared_dir, SP_HCSTAT);
snprintf (hcstat_tmp, sizeof (hcstat_tmp) - 1, "%s/%s", shared_dir, SP_HCSTAT);
hcstat = hcstat_tmp; hcstat = hcstat_tmp;
} }