Fix overflow in out_push()

pull/1361/head
jsteube 7 years ago
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…
Cancel
Save