Home
last modified time | relevance | path

Searched refs:buffSize (Results 1 – 13 of 13) sorted by relevance

/external/oss-fuzz/projects/zlib/
Dchecksum_fuzzer.c18 uint32_t buffSize = data[0]; in LLVMFuzzerTestOneInput() local
28 if (buffSize == 0) in LLVMFuzzerTestOneInput()
29 ++buffSize; in LLVMFuzzerTestOneInput()
32 op = crc32_combine_gen(buffSize); in LLVMFuzzerTestOneInput()
33 for (offset = 0; offset + buffSize <= dataLen; offset += buffSize) { in LLVMFuzzerTestOneInput()
34 uint32_t crc3 = crc32_z(crc0, data + offset, buffSize); in LLVMFuzzerTestOneInput()
36 crc1 = crc32_z(crc1, data + offset, buffSize); in LLVMFuzzerTestOneInput()
39 crc1 = crc32_z(crc1, data + offset, dataLen % buffSize); in LLVMFuzzerTestOneInput()
55 for (offset = 0; offset + buffSize <= dataLen; offset += buffSize) in LLVMFuzzerTestOneInput()
56 adler1 = adler32_z(adler1, data + offset, buffSize); in LLVMFuzzerTestOneInput()
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/test/fuzz/
Dchecksum_fuzzer.c25 uint32_t buffSize = data[0]; in LLVMFuzzerTestOneInput() local
35 if (buffSize == 0) in LLVMFuzzerTestOneInput()
36 ++buffSize; in LLVMFuzzerTestOneInput()
39 PREFIX(crc32_combine_gen)(op, buffSize); in LLVMFuzzerTestOneInput()
40 for (offset = 0; offset + buffSize <= dataLen; offset += buffSize) { in LLVMFuzzerTestOneInput()
41 uint32_t crc3 = PREFIX(crc32_z)(crc0, data + offset, buffSize); in LLVMFuzzerTestOneInput()
43 crc1 = PREFIX(crc32_z)(crc1, data + offset, buffSize); in LLVMFuzzerTestOneInput()
48 crc1 = PREFIX(crc32_z)(crc1, data + offset, dataLen % buffSize); in LLVMFuzzerTestOneInput()
69 for (offset = 0; offset + buffSize <= dataLen; offset += buffSize) in LLVMFuzzerTestOneInput()
70 adler1 = PREFIX(adler32_z)(adler1, data + offset, buffSize); in LLVMFuzzerTestOneInput()
[all …]
/external/lz4/programs/
Ddatagen.c102 void RDG_genBlock(void* buffer, size_t buffSize, size_t prefixSize, double matchProba, litDistribTa… in RDG_genBlock() argument
114 if (buffSize < pos + size0) { in RDG_genBlock()
115 memset(buffPtr+pos, 0, buffSize-pos); in RDG_genBlock()
130 while (pos < buffSize) { in RDG_genBlock()
141 if (d > buffSize) d = buffSize; in RDG_genBlock()
148 if (d > buffSize) d = buffSize; in RDG_genBlock()
/external/zstd/tests/fuzz/
Dfse_read_ncount.c73 … size_t const buffSize = (size_t)FUZZ_dataProducer_uint32Range(producer, dataSize, sizeof(data)); in LLVMFuzzerTestOneInput() local
74 BYTE* const buff = FUZZ_malloc(buffSize); in LLVMFuzzerTestOneInput()
79 for (b = dataSize; b < buffSize; ++b) { in LLVMFuzzerTestOneInput()
84 rtDataSize = FSE_readNCount(rtNcount, &rtMaxSymbolValue, &rtTableLog, buff, buffSize); in LLVMFuzzerTestOneInput()
/external/zstd/programs/
Ddatagen.c96 static void RDG_genBlock(void* buffer, size_t buffSize, size_t prefixSize, in RDG_genBlock() argument
109 if (buffSize < pos + size0) { in RDG_genBlock()
110 memset(buffPtr+pos, 0, buffSize-pos); in RDG_genBlock()
123 while (pos < buffSize) { in RDG_genBlock()
128 U32 const d = (U32) MIN(pos + length , buffSize); in RDG_genBlock()
138 U32 const d = (U32) MIN(pos + length, buffSize); in RDG_genBlock()
Ddibio.c214 const void* buff, size_t buffSize) in DiB_saveDict() argument
219 { size_t const n = fwrite(buff, 1, buffSize, f); in DiB_saveDict()
220 if (n!=buffSize) EXM_THROW(4, "%s : write error", dictFileName) } in DiB_saveDict()
/external/zstd/examples/
Dcommon.h220 static void saveFile_orDie(const char* fileName, const void* buff, size_t buffSize) in saveFile_orDie() argument
223 size_t const wSize = fwrite(buff, 1, buffSize, oFile); in saveFile_orDie()
224 if (wSize != (size_t)buffSize) { in saveFile_orDie()
/external/lz4/tests/
DroundTripTest.c61 static size_t checkBuffers(const void* buff1, const void* buff2, size_t buffSize) in checkBuffers() argument
67 for (pos=0; pos<buffSize; pos++) in checkBuffers()
/external/zstd/tests/
DroundTripCrash.c112 static size_t checkBuffers(const void* buff1, const void* buff2, size_t buffSize) in checkBuffers() argument
118 for (pos=0; pos<buffSize; pos++) in checkBuffers()
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/
Dtest_write_2D_array.cpp706 cl_ulong size, buffSize; in test_write_image_2D_array_set() local
720 buffSize = size * get_explicit_type_size( inputType ); in test_write_image_2D_array_set()
740buffSize = (cl_ulong)imageInfo.width * (cl_ulong)imageInfo.height * imageInfo.arraySize * get_expl… in test_write_image_2D_array_set()
742 } while( size > maxAllocSize || buffSize > maxAllocSize || ( size * 3 ) > memSize ); in test_write_image_2D_array_set()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothHidFacade.java286 Integer buffSize) throws Exception { in bluetoothHidGetReport()
291 device, (byte) (int) type, (byte) (int) reportId, buffSize); in bluetoothHidGetReport()
/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp1871 int32_t i = 0, j = 0, k = 0, buffSize = 0, skSize = 0, lowerSize = 0, upperSize = 0; in TestBounds() local
1878 buffSize = u_unescape(tests[i].original, buffer, 512); in TestBounds()
1879 skSize = coll->getSortKey(buffer, buffSize, tests[i].key, 512); in TestBounds()
1901 buffSize = u_unescape(test[i], buffer, 512); in TestBounds()
1902 skSize = coll->getSortKey(buffer, buffSize, sortkey, 512); in TestBounds()
1906 buffSize = u_unescape(test[j], buffer, 512); in TestBounds()
1907 skSize = coll->getSortKey(buffer, buffSize, sortkey, 512); in TestBounds()
/external/icu/icu4c/source/test/cintltst/
Dcapitst.c1610 int32_t i = 0, j = 0, k = 0, buffSize = 0, skSize = 0, lowerSize = 0, upperSize = 0; in TestBounds() local
1615 buffSize = u_unescape(tests[i].original, buffer, 512); in TestBounds()
1616 skSize = ucol_getSortKey(coll, buffer, buffSize, tests[i].key, 512); in TestBounds()
1663 buffSize = u_unescape(test[i], buffer, 512); in TestBounds()
1664 skSize = ucol_getSortKey(coll, buffer, buffSize, sortkey, 512); in TestBounds()
1668 buffSize = u_unescape(test[j], buffer, 512); in TestBounds()
1669 skSize = ucol_getSortKey(coll, buffer, buffSize, sortkey, 512); in TestBounds()