Exploit databaseDownload repository ZIP
GH-1917e82ea4e17d91152ad921475048a4
automateforceai/cve-2018-0202
Sources for CVE-2018-0202
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files42
automateforceai/cve-2018-0202Revision 9964c381baf5
- ↑..Parent directory
- 7z.h
- 7zAlloc.c
- 7zAlloc.h
- 7zBuf.c
- 7zBuf.h
- 7zBuf2.c
- 7zCrc.c
- 7zCrc.h
- 7zCrcOpt.c
- 7zDec.c
- 7zFile.c
- 7zFile.h
- 7zIn.c
- 7zStream.c
- 7zVersion.h
- Alloc.h
- Bcj2.c
- Bcj2.h
- Bra.c
- Bra.h
- Bra86.c
- BraIA64.c
- CpuArch.c
- CpuArch.h
- Delta.c
- Delta.h
- Lzma2Dec.c
- Lzma2Dec.h
- LzmaDec.c
- LzmaDec.h
- Ppmd.h
- Ppmd7.c
- Ppmd7.h
- Ppmd7Dec.c
- RotateDefs.h
- Types.h
- Xz.c
- Xz.h
- XzCrc64.c
- XzCrc64.h
- XzDec.c
- XzIn.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
clamav-0.99.3/libclamav/7z/XzCrc64.c
C · 746 bytes/* XzCrc64.c -- CRC64 calculation
2010-04-16 : Igor Pavlov : Public domain */
#include "XzCrc64.h"
#define kCrc64Poly UINT64_CONST(0xC96C5795D7870F42)
UInt64 g_Crc64Table[256];
void MY_FAST_CALL Crc64GenerateTable(void)
{
UInt32 i;
for (i = 0; i < 256; i++)
{
UInt64 r = i;
int j;
for (j = 0; j < 8; j++)
r = (r >> 1) ^ ((UInt64)kCrc64Poly & ~((r & 1) - 1));
g_Crc64Table[i] = r;
}
}
UInt64 MY_FAST_CALL Crc64Update(UInt64 v, const void *data, size_t size)
{
const Byte *p = (const Byte *)data;
for (; size > 0 ; size--, p++)
v = CRC64_UPDATE_BYTE(v, *p);
return v;
}
UInt64 MY_FAST_CALL Crc64Calc(const void *data, size_t size)
{
return CRC64_GET_DIGEST(Crc64Update(CRC64_INIT_VAL, data, size));
}