22 size_t const smallDictSize =
size + 1;
23 size_t const largeDictSize = 64 * 1024 - 1;
24 size_t const dictSize =
MAX(smallDictSize, largeDictSize);
25 char*
const dst = (
char*)
malloc(dstCapacity);
26 char*
const dict = (
char*)
malloc(dictSize +
size);
27 char*
const largeDict = dict;
28 char*
const dataAfterDict = dict + dictSize;
29 char*
const smallDict = dataAfterDict - smallDictSize;
41 dstCapacity,
NULL, 0);
44 dstCapacity, smallDict, smallDictSize);
47 dstCapacity, largeDict, largeDictSize);
50 dstCapacity, smallDict, smallDictSize);
53 dstCapacity, largeDict, largeDictSize);
56 dstCapacity, dstCapacity);
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
void FUZZ_dataProducer_free(FUZZ_dataProducer_t *producer)
uint32_t FUZZ_getRange_from_uint32(uint32_t seed, uint32_t min, uint32_t max)
size_t FUZZ_dataProducer_remainingBytes(FUZZ_dataProducer_t *producer)
FUZZ_dataProducer_t * FUZZ_dataProducer_create(const uint8_t *data, size_t size)
uint32_t FUZZ_dataProducer_retrieve32(FUZZ_dataProducer_t *producer)
#define FUZZ_ASSERT(cond)
RZ_API void Ht_() free(HtName_(Ht) *ht)
return memset(p, 0, total)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * malloc(size_t size)
int LZ4_decompress_safe_usingDict(const char *source, char *dest, int compressedSize, int maxOutputSize, const char *dictStart, int dictSize)
LZ4_FORCE_O2 int LZ4_decompress_safe_partial(const char *src, char *dst, int compressedSize, int targetOutputSize, int dstCapacity)