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:
parent
cdfabe333f
commit
53d6808794
@ -50,6 +50,7 @@
|
||||
- Fixed string not null terminated inside workaround for checking drm driver path
|
||||
- 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 not specifying --markov-hcstat
|
||||
|
||||
##
|
||||
## Technical
|
||||
|
@ -645,11 +645,11 @@ static int sp_setup_tbl (hashcat_ctx_t *hashcat_ctx)
|
||||
* Load hcstats File
|
||||
*/
|
||||
|
||||
char hcstat_tmp[256];
|
||||
|
||||
if (hcstat == NULL)
|
||||
{
|
||||
char hcstat_tmp[256] = { 0 };
|
||||
|
||||
snprintf (hcstat_tmp, sizeof (hcstat_tmp) - 1, "%s/%s", shared_dir, SP_HCSTAT);
|
||||
snprintf (hcstat_tmp, sizeof (hcstat_tmp), "%s/%s", shared_dir, SP_HCSTAT);
|
||||
|
||||
hcstat = hcstat_tmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user