/third_party/lz4/ossfuzz/ |
D | decompress_fuzzer.c | 21 size_t const dstCapacity = FUZZ_getRange_from_uint32(dstCapacitySeed, 0, 4 * size); in LLVMFuzzerTestOneInput() local 25 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput() 41 dstCapacity, NULL, 0); in LLVMFuzzerTestOneInput() 44 dstCapacity, smallDict, smallDictSize); in LLVMFuzzerTestOneInput() 47 dstCapacity, largeDict, largeDictSize); in LLVMFuzzerTestOneInput() 50 dstCapacity, smallDict, smallDictSize); in LLVMFuzzerTestOneInput() 53 dstCapacity, largeDict, largeDictSize); in LLVMFuzzerTestOneInput() 56 dstCapacity, dstCapacity); in LLVMFuzzerTestOneInput()
|
D | decompress_frame_fuzzer.c | 18 static void decompress(LZ4F_dctx* dctx, void* dst, size_t dstCapacity, in decompress() argument 25 LZ4F_decompress(dctx, dst, &dstCapacity, src, &srcSize, opts); in decompress() 27 LZ4F_decompress_usingDict(dctx, dst, &dstCapacity, src, &srcSize, in decompress() 38 size_t const dstCapacity = FUZZ_getRange_from_uint32( in LLVMFuzzerTestOneInput() local 44 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput() 61 decompress(dctx, dst, dstCapacity, data, size, NULL, 0, &opts); in LLVMFuzzerTestOneInput() 63 decompress(dctx, dst, dstCapacity, data, size, NULL, 0, &opts); 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()
|
D | compress_fuzzer.c | 23 size_t const dstCapacity = FUZZ_getRange_from_uint32(dstCapacitySeed, 0, compressBound); in LLVMFuzzerTestOneInput() local 25 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput() 34 size, dstCapacity); in LLVMFuzzerTestOneInput() 42 if (dstCapacity > 0) { in LLVMFuzzerTestOneInput() 46 &compressedSize, dstCapacity); in LLVMFuzzerTestOneInput()
|
D | compress_hc_fuzzer.c | 24 size_t const dstCapacity = FUZZ_getRange_from_uint32(dstCapacitySeed, 0, size); in LLVMFuzzerTestOneInput() local 27 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput() 36 dstCapacity, level); in LLVMFuzzerTestOneInput() 44 if (dstCapacity > 0) { in LLVMFuzzerTestOneInput() 51 dstCapacity, level); in LLVMFuzzerTestOneInput()
|
D | round_trip_stream_fuzzer.c | 106 int const dstCapacity = state->roundTrip.size - state->roundTrip.pos; in state_decompress() local 108 srcSize, dstCapacity); in state_decompress() 146 int const dstCapacity = state->compressed.size - state->compressed.pos; in state_prefixRoundTrip() local 148 srcSize, dstCapacity, 0); in state_prefixRoundTrip() 167 int const dstCapacity = state->compressed.size - state->compressed.pos; in state_extDictRoundTrip() local 169 srcSize, dstCapacity, 0); in state_extDictRoundTrip() 216 int const dstCapacity = state->compressed.size - state->compressed.pos; in state_prefixHCRoundTrip() local 218 srcSize, dstCapacity); in state_prefixHCRoundTrip() 238 int const dstCapacity = state->compressed.size - state->compressed.pos; in state_extDictHCRoundTrip() local 240 srcSize, dstCapacity); in state_extDictHCRoundTrip()
|
D | round_trip_hc_fuzzer.c | 23 size_t const dstCapacity = LZ4_compressBound(size); in LLVMFuzzerTestOneInput() local 24 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput() 32 dstCapacity, level); in LLVMFuzzerTestOneInput()
|
D | round_trip_frame_fuzzer.c | 23 size_t const dstCapacity = LZ4F_compressFrameBound(LZ4_compressBound(size), &prefs); in LLVMFuzzerTestOneInput() local 24 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput() 32 LZ4F_compressFrame(dst, dstCapacity, data, size, &prefs); in LLVMFuzzerTestOneInput()
|
D | compress_frame_fuzzer.c | 26 size_t const dstCapacity = FUZZ_getRange_from_uint32(dstCapacitySeed, 0, compressBound); in LLVMFuzzerTestOneInput() local 28 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput() 36 LZ4F_compressFrame(dst, dstCapacity, data, size, &prefs); in LLVMFuzzerTestOneInput()
|
D | round_trip_fuzzer.c | 22 size_t const dstCapacity = LZ4_compressBound(size); in LLVMFuzzerTestOneInput() local 24 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput() 32 size, dstCapacity); in LLVMFuzzerTestOneInput()
|
D | lz4_helpers.c | 30 size_t FUZZ_decompressFrame(void* dst, const size_t dstCapacity, in FUZZ_decompressFrame() argument 40 size_t dstSize = dstCapacity; in FUZZ_decompressFrame()
|
D | lz4_helpers.h | 10 size_t FUZZ_decompressFrame(void* dst, const size_t dstCapacity,
|
/third_party/lz4/lib/ |
D | lz4.h | 148 LZ4LIB_API int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 164 LZ4LIB_API int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity… 192 LZ4LIB_API int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acc… 202 …st_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int accelerati… 265 …ress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 336 …(LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int accelerati… 409 …e (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int srcSize, int dstCapacity); 471 …e_fastReset (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int accelerati…
|
D | lz4frame.h | 224 LZ4FLIB_API size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, 279 void* dstBuffer, size_t dstCapacity, 311 void* dstBuffer, size_t dstCapacity, 325 void* dstBuffer, size_t dstCapacity, 339 void* dstBuffer, size_t dstCapacity, 588 void* dst, size_t dstCapacity, 603 void* dstBuffer, size_t dstCapacity,
|
D | lz4hc.c | 789 int* srcSizePtr, int dstCapacity, 801 int const dstCapacity, in LZ4HC_compress_generic_internal() argument 832 if (limit == fillOutput && dstCapacity < 1) return 0; /* Impossible to store anything */ in LZ4HC_compress_generic_internal() 844 src, dst, srcSizePtr, dstCapacity, in LZ4HC_compress_generic_internal() 849 src, dst, srcSizePtr, dstCapacity, in LZ4HC_compress_generic_internal() 867 int const dstCapacity, in LZ4HC_compress_generic_noDictCtx() argument 873 …return LZ4HC_compress_generic_internal(ctx, src, dst, srcSizePtr, dstCapacity, cLevel, limit, noDi… in LZ4HC_compress_generic_noDictCtx() 882 int const dstCapacity, in LZ4HC_compress_generic_dictCtx() argument 891 … return LZ4HC_compress_generic_noDictCtx(ctx, src, dst, srcSizePtr, dstCapacity, cLevel, limit); in LZ4HC_compress_generic_dictCtx() 896 … return LZ4HC_compress_generic_noDictCtx(ctx, src, dst, srcSizePtr, dstCapacity, cLevel, limit); in LZ4HC_compress_generic_dictCtx() [all …]
|
D | lz4frame.c | 374 void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame_usingCDict() argument 383 BYTE* const dstEnd = dstStart + dstCapacity; in LZ4F_compressFrame_usingCDict() 400 … if (dstCapacity < LZ4F_compressFrameBound(srcSize, &prefs)) /* condition to guarantee success */ in LZ4F_compressFrame_usingCDict() 403 …{ size_t const headerSize = LZ4F_compressBegin_usingCDict(cctx, dstBuffer, dstCapacity, cdict, &pr… in LZ4F_compressFrame_usingCDict() 429 size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame() argument 457 result = LZ4F_compressFrame_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressFrame() 599 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin_usingCDict() argument 608 if (dstCapacity < maxFHSize) return err0r(LZ4F_ERROR_dstMaxSize_tooSmall); in LZ4F_compressBegin_usingCDict() 711 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin() argument 714 return LZ4F_compressBegin_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressBegin() [all …]
|
D | lz4hc.h | 66 LZ4LIB_API int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compr… 376 int srcSize, int dstCapacity,
|
D | lz4.c | 1252 const int dstCapacity, in LZ4_compress_generic() argument 1260 srcSize, dstCapacity); in LZ4_compress_generic() 1264 …if (outputDirective != notLimited && dstCapacity <= 0) return 0; /* no output, can't write anythi… in LZ4_compress_generic() 1266 assert(outputDirective == notLimited || dstCapacity >= 1); in LZ4_compress_generic() 1279 dstCapacity, outputDirective, in LZ4_compress_generic() 1316 …te_fastReset(void* state, const char* src, char* dst, int srcSize, int dstCapacity, int accelerati… in LZ4_compress_fast_extState_fastReset() argument 1322 if (dstCapacity >= LZ4_compressBound(srcSize)) { in LZ4_compress_fast_extState_fastReset() 1341 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, n… in LZ4_compress_fast_extState_fastReset() 1343 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, n… in LZ4_compress_fast_extState_fastReset() 1348 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, n… in LZ4_compress_fast_extState_fastReset() [all …]
|
/third_party/skia/src/utils/ |
D | SkUTF.cpp | 255 int SkUTF::UTF8ToUTF16(uint16_t dst[], int dstCapacity, const char src[], size_t srcByteLength) { in UTF8ToUTF16() argument 257 dstCapacity = 0; in UTF8ToUTF16() 261 uint16_t* endDst = dst + dstCapacity; in UTF8ToUTF16() 287 int SkUTF::UTF16ToUTF8(char dst[], int dstCapacity, const uint16_t src[], size_t srcLength) { in UTF16ToUTF8() argument 289 dstCapacity = 0; in UTF16ToUTF8() 293 const char* endDst = dst + dstCapacity; in UTF16ToUTF8()
|
D | SkUTF.h | 72 SK_SPI int UTF8ToUTF16(uint16_t dst[], int dstCapacity, const char src[], size_t srcByteLength); 78 SK_SPI int UTF16ToUTF8(char dst[], int dstCapacity, const uint16_t src[], size_t srcLength);
|
/third_party/lz4/examples/ |
D | frameCompress.c | 174 void* dst, size_t dstCapacity) in decompress_file_internal() argument 182 assert(dst != NULL); assert(dstCapacity > 0); in decompress_file_internal() 201 size_t dstSize = dstCapacity; in decompress_file_internal() 269 size_t const dstCapacity = get_block_size(&info); in decompress_file_allocDst() local 270 void* const dst = malloc(dstCapacity); in decompress_file_allocDst() 277 dst, dstCapacity); in decompress_file_allocDst()
|
/third_party/lz4/tests/ |
D | frametest.c | 438 { size_t const dstCapacity = LZ4F_compressFrameBound(testSize, &prefs); in basicTests() local 439 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity) in basicTests() 440 … CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests() 446 { size_t const dstCapacity = LZ4F_compressFrameBound(testSize, &prefs); in basicTests() local 447 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity) in basicTests() 448 … CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests() 539 size_t const dstCapacity = LZ4F_compressFrameBound(dictSize, NULL); in basicTests() local 547 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests() 556 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests() 588 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | uniset_props.cpp | 750 static UBool mungeCharName(char* dst, const char* src, int32_t dstCapacity) { in mungeCharName() argument 754 --dstCapacity; /* make room for term. zero */ in mungeCharName() 759 if (j >= dstCapacity) return FALSE; in mungeCharName()
|
/third_party/icu/icu4c/source/common/ |
D | uniset_props.cpp | 750 static UBool mungeCharName(char* dst, const char* src, int32_t dstCapacity) { in mungeCharName() argument 754 --dstCapacity; /* make room for term. zero */ in mungeCharName() 759 if (j >= dstCapacity) return FALSE; in mungeCharName()
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | uniset_props.cpp | 782 static UBool mungeCharName(char* dst, const char* src, int32_t dstCapacity) { in mungeCharName() argument 786 --dstCapacity; /* make room for term. zero */ in mungeCharName() 791 if (j >= dstCapacity) return FALSE; in mungeCharName()
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | uniset_props.cpp | 750 static UBool mungeCharName(char* dst, const char* src, int32_t dstCapacity) { in mungeCharName() argument 754 --dstCapacity; /* make room for term. zero */ in mungeCharName() 759 if (j >= dstCapacity) return FALSE; in mungeCharName()
|