HomeSort by: relevance | last modified time | path
    Searched defs:rBuf (Results 1 - 13 of 13) sorted by relevancy

  /src/external/bsd/zstd/dist/tests/fuzz/
block_decompress.c 26 static void* rBuf = NULL;
36 free(rBuf);
37 rBuf = FUZZ_malloc_rand(neededBufSize, producer);
45 ZSTD_decompressBlock(dctx, rBuf, neededBufSize, src, size);
dictionary_decompress.c 61 void* rBuf = FUZZ_malloc(bufSize);
63 ZSTD_decompress_usingDDict(dctx, rBuf, bufSize, src, size, ddict);
65 ZSTD_decompressDCtx(dctx, rBuf, bufSize, src, size);
67 free(rBuf);
decompress_dstSize_tooSmall.c 55 void *rBuf = FUZZ_malloc(rBufSize);
58 size_t const rSize = ZSTD_decompressDCtx(dctx, rBuf, rBufSize, cBuf, cSize);
66 free(rBuf);
simple_compress.c 48 void *rBuf = FUZZ_malloc(bufSize);
49 size_t const ret = ZSTD_compressCCtx(cctx, rBuf, bufSize, src, size, cLevel);
53 free(rBuf);
simple_decompress.c 42 void *rBuf = FUZZ_malloc(bufSize);
43 size_t const dSize = ZSTD_decompressDCtx(dctx, rBuf, bufSize, src, size);
50 free(rBuf);
block_round_trip.c 31 static void* rBuf = NULL;
72 if (neededBufSize > bufSize || !cBuf || !rBuf) {
74 free(rBuf);
76 rBuf = FUZZ_malloc(neededBufSize);
90 roundTripTest(rBuf, neededBufSize, cBuf, neededBufSize, src, size,
94 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!");
dictionary_loader.c 84 void* const rBuf = FUZZ_malloc(size);
96 decompress(rBuf, size, cBuf, cSize, src, size, dlm, dct, refPrefix);
98 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!");
102 free(rBuf);
dictionary_round_trip.c 120 void* rBuf = FUZZ_malloc(rBufSize);
141 roundTripTest(rBuf, rBufSize, cBuf, cBufSize, src, size, producer);
144 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!");
146 free(rBuf);
dictionary_stream_round_trip.c 30 static uint8_t* rBuf = NULL;
164 free(rBuf);
166 rBuf = (uint8_t*)FUZZ_malloc(neededBufSize);
195 ZSTD_decompressDCtx(dctx, rBuf, neededBufSize, cBuf, cSize);
198 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!");
huf_round_trip.c 84 void* rBuf = FUZZ_malloc(size);
117 rSize = HUF_decompress1X_usingDTable(rBuf, size, cBuf, cSize, dt, flags);
122 rSize = HUF_decompress4X_usingDTable(rBuf, size, cBuf, cSize, dt, flags);
127 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!");
130 free(rBuf);
simple_round_trip.c 146 void* rBuf = FUZZ_malloc(rBufSize);
172 roundTripTest(rBuf, rBufSize, cBuf, cBufSize, src, size, producer);
173 free(rBuf);
stream_round_trip.c 30 static uint8_t* rBuf = NULL;
171 free(rBuf);
173 rBuf = (uint8_t*)FUZZ_malloc(neededBufSize);
187 size_t const rSize = decompress(rBuf, neededBufSize, cBuf, cSize, producer);
190 FUZZ_ASSERT_MSG(!FUZZ_memcmp(src, rBuf, size), "Corruption!");
sequence_compression_api.c 269 void* rBuf;
359 rBuf = FUZZ_malloc(rBufSize);
361 { const size_t result = roundTripTest(rBuf, rBufSize,
369 free(rBuf);

Completed in 26 milliseconds