Fix use-after-free of hash_name

This commit is contained in:
jsteube
2019-01-21 10:00:44 +01:00
parent de690abfa6
commit b2154b7ed9
5 changed files with 16 additions and 12 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ double status_get_guess_mod_percent (const hashcat_ctx_t *hash
char *status_get_guess_charset (const hashcat_ctx_t *hashcat_ctx);
int status_get_guess_mask_length (const hashcat_ctx_t *hashcat_ctx);
char *status_get_guess_candidates_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
const char *status_get_hash_type (const hashcat_ctx_t *hashcat_ctx);
const char *status_get_hash_target (const hashcat_ctx_t *hashcat_ctx);
char *status_get_hash_name (const hashcat_ctx_t *hashcat_ctx);
char *status_get_hash_target (const hashcat_ctx_t *hashcat_ctx);
int status_get_digests_done (const hashcat_ctx_t *hashcat_ctx);
int status_get_digests_cnt (const hashcat_ctx_t *hashcat_ctx);
double status_get_digests_percent (const hashcat_ctx_t *hashcat_ctx);
+2 -2
View File
@@ -2056,8 +2056,8 @@ typedef struct device_info
typedef struct hashcat_status
{
const char *hash_target;
const char *hash_type;
char *hash_target;
char *hash_name;
int guess_mode;
char *guess_base;
int guess_base_offset;