Home
last modified time | relevance | path

Searched refs:dictSize (Results 1 – 16 of 16) sorted by relevance

/third_party/lz4/ossfuzz/
Ddecompress_frame_fuzzer.c20 const void* dict, size_t dictSize, in decompress() argument
24 if (dictSize == 0) in decompress()
28 dict, dictSize, opts); in decompress()
41 size_t const dictSize = FUZZ_getRange_from_uint32( in LLVMFuzzerTestOneInput() local
45 char* const dict = (char*)malloc(dictSize); in LLVMFuzzerTestOneInput()
55 memset(dict, 0, dictSize); in LLVMFuzzerTestOneInput()
65 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput()
67 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput()
Dround_trip_stream_fuzzer.c129 size_t const dictSize = FUZZ_rand32(&state->seed, 0, maxDictSize); in state_trimDict() local
130 DEBUGLOG(2, "dictSize = %zu", dictSize); in state_trimDict()
133 memcpy(state->roundTrip.buf, state->data.buf, dictSize); in state_trimDict()
134 state->data.pos += dictSize; in state_trimDict()
135 state->roundTrip.pos += dictSize; in state_trimDict()
136 return dictSize; in state_trimDict()
191 size_t const dictSize = state_trimDict(state); in state_loadDictRoundTrip() local
192 LZ4_loadDict(state->cstream, dict, dictSize); in state_loadDictRoundTrip()
193 LZ4_setStreamDecode(state->dstream, dict, dictSize); in state_loadDictRoundTrip()
200 size_t const dictSize = state_trimDict(state); in state_attachDictRoundTrip() local
[all …]
Ddecompress_fuzzer.c24 size_t const dictSize = MAX(smallDictSize, largeDictSize); in LLVMFuzzerTestOneInput() local
26 char* const dict = (char*)malloc(dictSize + size); in LLVMFuzzerTestOneInput()
28 char* const dataAfterDict = dict + dictSize; in LLVMFuzzerTestOneInput()
35 memset(dict, 0, dictSize); in LLVMFuzzerTestOneInput()
/third_party/lz4/lib/
Dlz4.c689 const void* dictStart, size_t dictSize);
842 cctx->dictSize = 0; in LZ4_prepareTable()
874 const U32 dictSize = in LZ4_compress_generic_validated() local
875 dictDirective == usingDictCtx ? dictCtx->dictSize : cctx->dictSize; in LZ4_compress_generic_validated()
879 U32 const prefixIdxLimit = startIndex - dictSize; /* used when dictDirective == dictSmall */ in LZ4_compress_generic_validated()
880 const BYTE* const dictEnd = dictionary ? dictionary + dictSize : dictionary; in LZ4_compress_generic_validated()
889 dictionary + dictSize - dictCtx->currentOffset : in LZ4_compress_generic_validated()
890 dictionary + dictSize - startIndex; in LZ4_compress_generic_validated()
907 lowLimit = (const BYTE*)source - (dictDirective == withPrefix64k ? dictSize : 0); in LZ4_compress_generic_validated()
914 cctx->dictSize = (U32)inputSize; in LZ4_compress_generic_validated()
[all …]
Dlz4frame.c490 LZ4F_CDict* LZ4F_createCDict(const void* dictBuffer, size_t dictSize) in LZ4F_createCDict() argument
496 if (dictSize > 64 KB) { in LZ4F_createCDict()
497 dictStart += dictSize - 64 KB; in LZ4F_createCDict()
498 dictSize = 64 KB; in LZ4F_createCDict()
500 cdict->dictContent = ALLOC(dictSize); in LZ4F_createCDict()
507 memcpy(cdict->dictContent, dictStart, dictSize); in LZ4F_createCDict()
508 LZ4_loadDict (cdict->fastCtx, (const char*)cdict->dictContent, (int)dictSize); in LZ4F_createCDict()
510 LZ4_loadDictHC(cdict->HCCtx, (const char*)cdict->dictContent, (int)dictSize); in LZ4F_createCDict()
1053 size_t dictSize; member
1101 dctx->dictSize = 0; in LZ4F_resetDecompressionContext()
[all …]
Dlz4hc.c1057 const char* dictionary, int dictSize) in LZ4_loadDictHC() argument
1060 …DEBUGLOG(4, "LZ4_loadDictHC(ctx:%p, dict:%p, dictSize:%d)", LZ4_streamHCPtr, dictionary, dictSize); in LZ4_loadDictHC()
1062 if (dictSize > 64 KB) { in LZ4_loadDictHC()
1063 dictionary += (size_t)dictSize - 64 KB; in LZ4_loadDictHC()
1064 dictSize = 64 KB; in LZ4_loadDictHC()
1072 ctxPtr->end = (const BYTE*)dictionary + dictSize; in LZ4_loadDictHC()
1073 if (dictSize >= 4) LZ4HC_Insert (ctxPtr, ctxPtr->end-3); in LZ4_loadDictHC()
1074 return dictSize; in LZ4_loadDictHC()
1116 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) - ctxPtr->dictLimit; in LZ4_compressHC_continue_generic() local
1117 if (dictSize > 64 KB) dictSize = 64 KB; in LZ4_compressHC_continue_generic()
[all …]
Dlz4.h311 LZ4LIB_API int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize);
368 …t LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize);
420 …ict (const char* src, char* dst, int srcSize, int dstCapcity, const char* dictStart, int dictSize);
602 LZ4_u32 dictSize; member
758 …fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize);
Dlz4frame.h572 LZ4FLIB_STATIC_API LZ4F_CDict* LZ4F_createCDict(const void* dictBuffer, size_t dictSize);
616 const void* dict, size_t dictSize,
Dlz4hc.h156 LZ4LIB_API int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize);
/third_party/lz4/programs/
Dbench.c64 int dictSize; member
98 LZ4_loadDict(pThis->LZ4_dictStream, pThis->dictBuf, pThis->dictSize); in LZ4_compressInitStream()
108 LZ4_loadDictHC(pThis->LZ4_dictStreamHC, pThis->dictBuf, pThis->dictSize); in LZ4_compressInitStreamHC()
187 int cLevel, const char* dictBuf, int dictSize) in LZ4_buildCompressionParameters() argument
191 pParams->dictSize = dictSize; in LZ4_buildCompressionParameters()
193 if (dictSize) { in LZ4_buildCompressionParameters()
322 const char* dictBuf, int dictSize) in BMK_benchMem() argument
340 LZ4_buildCompressionParameters(&compP, cLevel, dictBuf, dictSize); in BMK_benchMem()
454 dictBuf, dictSize); in BMK_benchMem()
555 const char* dictBuf, int dictSize) in BMK_benchCLevel() argument
[all …]
Dlz4io.c543 static void* LZ4IO_createDict(size_t* dictSize, const char* const dictFilename) in LZ4IO_createDict() argument
576 *dictSize = dictLen; in LZ4IO_createDict()
/third_party/lz4/tests/
Dfuzzer.c379 int const dictSize = MIN(dictSizeRand, blockStart - 1); in FUZ_test() local
382 const char* dict = block - dictSize; in FUZ_test()
685 FUZ_DISPLAYTEST("test LZ4_compress_fast_continue() with dictionary of size %i", dictSize); in FUZ_test()
688 …LZ4_compress_fast_continue (&LZ4_stream, dict, compressedBuffer, dictSize, (int)compressedBufferSi… in FUZ_test()
695 memcpy(decodedBuffer, dict, dictSize); in FUZ_test()
696 …mpress_fast_usingDict(compressedBuffer, decodedBuffer+dictSize, blockSize, decodedBuffer, dictSize in FUZ_test()
698 { U32 const crcCheck = XXH32(decodedBuffer+dictSize, (size_t)blockSize, 0); in FUZ_test()
701 … EXIT_MSG("LZ4_decompress_fast_usingDict corrupted decoded data (dict %i)", dictSize); in FUZ_test()
705 …ingDict(compressedBuffer, decodedBuffer+dictSize, blockContinueCompressedSize, blockSize, decodedB… in FUZ_test()
707 { U32 const crcCheck = XXH32(decodedBuffer+dictSize, (size_t)blockSize, 0); in FUZ_test()
[all …]
Dframetest.c538 { size_t const dictSize = 63 KB; in basicTests() local
539 size_t const dstCapacity = LZ4F_compressFrameBound(dictSize, NULL); in basicTests()
541 LZ4F_CDict* const cdict = LZ4F_createCDict(CNBuffer, dictSize); in basicTests()
548 CNBuffer, dictSize, in basicTests()
557 CNBuffer, dictSize, in basicTests()
560 (unsigned)dictSize, (unsigned)cSizeWithDict); in basicTests()
561 …if ((LZ4_DISTANCE_MAX > dictSize) && (cSizeWithDict >= cSizeNoDict)) goto _output_error; /* must … in basicTests()
562 crcOrig = XXH64(CNBuffer, dictSize, 0); in basicTests()
572 CNBuffer, dictSize, in basicTests()
575 if (decodedSize != dictSize) goto _output_error; in basicTests()
[all …]
Dfullbench.c320 …orceExtDict(const char* in, char* out, int inSize, int outSize, const void* dict, size_t dictSize);
/third_party/lz4/examples/
DdictionaryRandomAccess.c56 void test_compress(FILE* outFp, FILE* inpFp, void *dict, int dictSize) in test_compress() argument
81 LZ4_loadDict(lz4Stream, dict, dictSize); in test_compress()
105 void test_decompress(FILE* outFp, FILE* inpFp, void *dict, int dictSize, int offset, int length) in test_decompress() argument
156 LZ4_setStreamDecode(lz4StreamDecode, dict, dictSize); in test_decompress()
207 int dictSize; in main() local
231 dictSize = (int)read_bin(dictFp, dict, DICTIONARY_BYTES); in main()
241 test_compress(outFp, inpFp, dict, dictSize); in main()
/third_party/skia/third_party/externals/brotli/research/
Ddurchschlag.cc489 TextIdx dictSize = calculateDictionarySize(ranges); in durchschlagGenerateExclusive() local
491 if (dictSize > targetSize - blockLen) { in durchschlagGenerateExclusive()
591 TextIdx dictSize = calculateDictionarySize(ranges); in durchschlagGenerateCollaborative() local
592 if (dictSize > targetSize - blockLen) { in durchschlagGenerateCollaborative()