1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 18:08:20 +00:00

Set GZIP internal buffer size to 256k (default 8k)

This commit is contained in:
Jukka Ojanen 2021-09-01 14:28:24 +03:00
parent bdd3f27239
commit 1b4edf879b

View File

@ -9,6 +9,10 @@
#include "shared.h"
#include "filehandling.h"
#ifndef HCFILE_BUFFER_SIZE
#define HCFILE_BUFFER_SIZE 256 * 1024
#endif
#if defined (__CYGWIN__)
// workaround for zlib with cygwin build
int _wopen (const char *path, int oflag, ...)
@ -112,6 +116,8 @@ bool hc_fopen (HCFILE *fp, const char *path, const char *mode)
if (is_gzip)
{
if ((fp->gfp = gzdopen (fp->fd, mode)) == NULL) return false;
gzbuffer (fp->gfp, HCFILE_BUFFER_SIZE);
}
else
{