1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 08:38:09 +00:00

Initialize both 32bit CrcGenerateTable() and 64bit Crc64GenerateTable()

This commit is contained in:
Jukka Ojanen 2021-08-29 01:31:56 +03:00
parent b2870dadfd
commit 8324d3cd07

View File

@ -13,6 +13,7 @@
#include <7zCrc.h>
#include <7zFile.h>
#include <Xz.h>
#include <XzCrc64.h>
/* Maybe _LZMA_NO_SYSTEM_SIZE_T defined? */
#if defined (__clang__) || defined (__GNUC__)
@ -157,9 +158,11 @@ bool hc_fopen (HCFILE *fp, const char *path, const char *mode)
}
else if (is_xz)
{
/* thread safe on little endian */
if (xz_initialized == false)
{
CrcGenerateTable ();
Crc64GenerateTable ();
Sha256Prepare ();
xz_initialized = true;
}