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-fix/libclamav/7z/7zBuf.c
C · 501 bytes/* 7zBuf.c -- Byte Buffer
2008-03-28
Igor Pavlov
Public domain */
#include "7zBuf.h"
void Buf_Init(CBuf *p)
{
p->data = 0;
p->size = 0;
}
int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc)
{
p->size = 0;
if (size == 0)
{
p->data = 0;
return 1;
}
p->data = (Byte *)alloc->Alloc(alloc, size);
if (p->data != 0)
{
p->size = size;
return 1;
}
return 0;
}
void Buf_Free(CBuf *p, ISzAlloc *alloc)
{
alloc->Free(alloc, p->data);
p->data = 0;
p->size = 0;
}