mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-02 02:41:35 +00:00
Fix overflow in out_push()
This commit is contained in:
parent
8802b12644
commit
7a278ef035
@ -1396,7 +1396,7 @@ typedef struct out
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
char buf[BUFSIZ];
|
||||
char buf[HCBUFSIZ_TINY];
|
||||
int len;
|
||||
|
||||
} out_t;
|
||||
|
@ -44,7 +44,7 @@ static void out_push (out_t *out, const u8 *pw_buf, const int pw_len)
|
||||
|
||||
#endif
|
||||
|
||||
if (out->len >= BUFSIZ - 100)
|
||||
if (out->len >= HCBUFSIZ_TINY - 300)
|
||||
{
|
||||
out_flush (out);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user