1
0
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:
jsteube 2017-09-17 12:14:52 +02:00
parent 8802b12644
commit 7a278ef035
2 changed files with 2 additions and 2 deletions

View File

@ -1396,7 +1396,7 @@ typedef struct out
{
FILE *fp;
char buf[BUFSIZ];
char buf[HCBUFSIZ_TINY];
int len;
} out_t;

View File

@ -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);
}