/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() 60 dstCapacity, dstCapacity, NULL, 0); in LLVMFuzzerTestOneInput() 63 dstCapacity, dstCapacity, smallDict, smallDictSize); in LLVMFuzzerTestOneInput() [all …]
|
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 | round_trip_frame_uncompressed_fuzzer.c | 19 size_t dstCapacity, size_t readSize) { in decompress() argument 28 size_t dstSize = dstCapacity; in decompress() 60 size_t const dstCapacity = in compress_round_trip() local 63 char *const dst = (char *) malloc(dstCapacity); in compress_round_trip() 64 size_t rtCapacity = dstCapacity; in compress_round_trip() 75 size_t const headerSize = LZ4F_compressBegin(ctx, dst, dstCapacity, &prefs); in compress_round_trip() 80 size_t lz4Return = LZ4F_compressUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip() 86 lz4Return = LZ4F_uncompressedUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip() 92 lz4Return = LZ4F_compressUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip() 99 lz4Return = LZ4F_compressEnd(ctx, dst + compressedSize, dstCapacity, NULL); in compress_round_trip()
|
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 25 char* const dstPlusLargePrefix = (char*)malloc(dstCapacity + largeSize); in LLVMFuzzerTestOneInput() 37 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 | 189 LZ4LIB_API int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 205 LZ4LIB_API int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity… 233 LZ4LIB_API int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acc… 243 …st_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int accelerati… 306 …ress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 394 …(LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int accelerati… 474 int srcSize, int dstCapacity); 487 int srcSize, int dstCapacity, 545 …e_fastReset (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int accelerati…
|
D | lz4frame.c | 421 void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame_usingCDict() argument 430 BYTE* const dstEnd = dstStart + dstCapacity; in LZ4F_compressFrame_usingCDict() 447 RETURN_ERROR_IF(dstCapacity < LZ4F_compressFrameBound(srcSize, &prefs), dstMaxSize_tooSmall); in LZ4F_compressFrame_usingCDict() 449 …{ size_t const headerSize = LZ4F_compressBegin_usingCDict(cctx, dstBuffer, dstCapacity, cdict, &pr… in LZ4F_compressFrame_usingCDict() 475 size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame() argument 502 result = LZ4F_compressFrame_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressFrame() 678 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin_usingCDict() argument 686 RETURN_ERROR_IF(dstCapacity < maxFHSize, dstMaxSize_tooSmall); in LZ4F_compressBegin_usingCDict() 796 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin() argument 799 return LZ4F_compressBegin_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressBegin() [all …]
|
D | lz4frame.h | 224 LZ4FLIB_API size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, 286 void* dstBuffer, size_t dstCapacity, 319 void* dstBuffer, size_t dstCapacity, 333 void* dstBuffer, size_t dstCapacity, 347 void* dstBuffer, size_t dstCapacity, 583 void* dstBuffer, size_t dstCapacity, 631 void* dst, size_t dstCapacity, 646 void* dstBuffer, size_t dstCapacity,
|
D | lz4hc.c | 793 int* srcSizePtr, int dstCapacity, 805 int const dstCapacity, in LZ4HC_compress_generic_internal() argument 836 if (limit == fillOutput && dstCapacity < 1) return 0; /* Impossible to store anything */ in LZ4HC_compress_generic_internal() 848 src, dst, srcSizePtr, dstCapacity, in LZ4HC_compress_generic_internal() 853 src, dst, srcSizePtr, dstCapacity, in LZ4HC_compress_generic_internal() 871 int const dstCapacity, in LZ4HC_compress_generic_noDictCtx() argument 877 …return LZ4HC_compress_generic_internal(ctx, src, dst, srcSizePtr, dstCapacity, cLevel, limit, noDi… in LZ4HC_compress_generic_noDictCtx() 886 int const dstCapacity, in LZ4HC_compress_generic_dictCtx() argument 895 … return LZ4HC_compress_generic_noDictCtx(ctx, src, dst, srcSizePtr, dstCapacity, cLevel, limit); in LZ4HC_compress_generic_dictCtx() 900 … return LZ4HC_compress_generic_noDictCtx(ctx, src, dst, srcSizePtr, dstCapacity, cLevel, limit); in LZ4HC_compress_generic_dictCtx() [all …]
|
D | lz4.c | 747 int compressedSize, int targetOutputSize, int dstCapacity, 1314 const int dstCapacity, in LZ4_compress_generic() argument 1322 srcSize, dstCapacity); in LZ4_compress_generic() 1326 …if (outputDirective != notLimited && dstCapacity <= 0) return 0; /* no output, can't write anythi… in LZ4_compress_generic() 1328 assert(outputDirective == notLimited || dstCapacity >= 1); in LZ4_compress_generic() 1341 dstCapacity, outputDirective, in LZ4_compress_generic() 1378 …te_fastReset(void* state, const char* src, char* dst, int srcSize, int dstCapacity, int accelerati… in LZ4_compress_fast_extState_fastReset() argument 1384 if (dstCapacity >= LZ4_compressBound(srcSize)) { in LZ4_compress_fast_extState_fastReset() 1403 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, n… in LZ4_compress_fast_extState_fastReset() 1405 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, n… in LZ4_compress_fast_extState_fastReset() [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,
|
/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 | 204 void* dst, size_t dstCapacity) in decompress_file_internal() argument 212 assert(dst != NULL); assert(dstCapacity > 0); in decompress_file_internal() 231 size_t dstSize = dstCapacity; in decompress_file_internal() 299 size_t const dstCapacity = get_block_size(&info); in decompress_file_allocDst() local 300 void* const dst = malloc(dstCapacity); in decompress_file_allocDst() 307 dst, dstCapacity); in decompress_file_allocDst()
|
/third_party/lz4/tests/ |
D | frametest.c | 486 { size_t const dstCapacity = LZ4F_compressFrameBound(testSize, &prefs); in basicTests() local 487 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity) in basicTests() 488 … CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests() 494 { size_t const dstCapacity = LZ4F_compressFrameBound(testSize, &prefs); in basicTests() local 495 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity) in basicTests() 496 … CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests() 590 size_t const dstCapacity = LZ4F_compressFrameBound(srcSize, NULL); in basicTests() local 605 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests() 614 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests() 649 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests() [all …]
|
/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/node/deps/icu-small/source/common/ |
D | uniset_props.cpp | 747 static UBool mungeCharName(char* dst, const char* src, int32_t dstCapacity) { in mungeCharName() argument 751 --dstCapacity; /* make room for term. zero */ in mungeCharName() 756 if (j >= dstCapacity) return false; in mungeCharName()
|
/third_party/lz4/programs/ |
D | bench.c | 312 int srcSize, int dstCapacity, 319 int srcSize, int dstCapacity, in LZ4F_decompress_binding() argument 322 size_t dstSize = (size_t)dstCapacity; in LZ4F_decompress_binding()
|