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

Synchronize maximum output line size with input line size

This commit is contained in:
Jens Steube 2016-03-31 16:12:13 +02:00
parent c4e6ffc346
commit 88fafeb928
3 changed files with 7 additions and 7 deletions

View File

@ -1333,7 +1333,7 @@ u32 get_random_num (const u32 min, const u32 max);
u32 mydivc32 (const u32 dividend, const u32 divisor); u32 mydivc32 (const u32 dividend, const u32 divisor);
u64 mydivc64 (const u64 dividend, const u64 divisor); u64 mydivc64 (const u64 dividend, const u64 divisor);
void ascii_digest (char out_buf[1024], uint salt_pos, uint digest_pos); void ascii_digest (char *out_buf, uint salt_pos, uint digest_pos);
void to_hccap_t (hccap_t *hccap, uint salt_pos, uint digest_pos); void to_hccap_t (hccap_t *hccap, uint salt_pos, uint digest_pos);
void format_speed_display (float val, char *buf, size_t len); void format_speed_display (float val, char *buf, size_t len);

View File

@ -1110,7 +1110,7 @@ void status_display ()
} }
else else
{ {
char out_buf[4096] = { 0 }; char out_buf[HCBUFSIZ] = { 0 };
ascii_digest (out_buf, 0, 0); ascii_digest (out_buf, 0, 0);
@ -1130,8 +1130,8 @@ void status_display ()
{ {
if (data.hash_mode == 3000) if (data.hash_mode == 3000)
{ {
char out_buf1[4096] = { 0 }; char out_buf1[32] = { 0 };
char out_buf2[4096] = { 0 }; char out_buf2[32] = { 0 };
ascii_digest (out_buf1, 0, 0); ascii_digest (out_buf1, 0, 0);
ascii_digest (out_buf2, 0, 1); ascii_digest (out_buf2, 0, 1);
@ -1873,7 +1873,7 @@ static void check_hash (hc_device_param_t *device_param, const uint salt_pos, co
// hash // hash
char out_buf[4096] = { 0 }; char out_buf[HCBUFSIZ] = { 0 };
ascii_digest (out_buf, salt_pos, digest_pos); ascii_digest (out_buf, salt_pos, digest_pos);
@ -2318,7 +2318,7 @@ static void save_hash ()
if (data.hash_mode != 2500) if (data.hash_mode != 2500)
{ {
char out_buf[4096] = { 0 }; char out_buf[HCBUFSIZ] = { 0 };
if (data.username == 1) if (data.username == 1)
{ {

View File

@ -5876,7 +5876,7 @@ char *strstatus (const uint devices_status)
return ((char *) "Unknown"); return ((char *) "Unknown");
} }
void ascii_digest (char out_buf[4096], uint salt_pos, uint digest_pos) void ascii_digest (char *out_buf, uint salt_pos, uint digest_pos)
{ {
uint hash_type = data.hash_type; uint hash_type = data.hash_type;
uint hash_mode = data.hash_mode; uint hash_mode = data.hash_mode;