/external/oss-fuzz/projects/zlib/ |
D | checksum_fuzzer.c | 10 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t dataLen) { in LLVMFuzzerTestOneInput() argument 24 if (dataLen < 1 || dataLen > kMaxSize) in LLVMFuzzerTestOneInput() 33 for (offset = 0; offset + buffSize <= dataLen; offset += buffSize) { in LLVMFuzzerTestOneInput() 39 crc1 = crc32_z(crc1, data + offset, dataLen % buffSize); in LLVMFuzzerTestOneInput() 41 crc2 = crc32(crc2, data, (uint32_t) dataLen); in LLVMFuzzerTestOneInput() 44 assert(crc32_combine(crc1, crc2, dataLen) == in LLVMFuzzerTestOneInput() 45 crc32_combine(crc1, crc1, dataLen)); in LLVMFuzzerTestOneInput() 48 op = crc32_combine_gen(dataLen); in LLVMFuzzerTestOneInput() 51 assert(crc32_combine(crc1, crc2, dataLen) == in LLVMFuzzerTestOneInput() 55 for (offset = 0; offset + buffSize <= dataLen; offset += buffSize) in LLVMFuzzerTestOneInput() [all …]
|
D | example_dict_fuzzer.c | 18 static size_t dataLen; variable 69 *comprLen = 100 + 2 * deflateBound(&c_stream, dataLen); in test_dict_deflate() 77 c_stream.avail_in = dataLen; in test_dict_deflate() 106 uncompr = (uint8_t *)calloc(1, dataLen); in test_dict_inflate() 108 d_stream.avail_out = (unsigned int)dataLen; in test_dict_inflate() 128 if (memcmp(uncompr, data, dataLen)) { in test_dict_inflate() 147 dataLen = size; in LLVMFuzzerTestOneInput() 153 if (dictionaryLen > dataLen) in LLVMFuzzerTestOneInput() 154 dictionaryLen = dataLen; in LLVMFuzzerTestOneInput()
|
D | compress_fuzzer.c | 11 static size_t dataLen; variable 16 compress2(compr, &comprLen, data, dataLen, level); in check_compress_level() 20 assert(dataLen == uncomprLen); in check_compress_level() 21 assert(0 == memcmp(data, uncompr, dataLen)); in check_compress_level() 43 size_t copyLen = dataLen + 2; in check_decompress() 45 memcpy(copy + 2, data, dataLen); in check_decompress() 65 dataLen = size; in LLVMFuzzerTestOneInput()
|
D | example_small_fuzzer.c | 18 static size_t dataLen; variable 28 unsigned long len = dataLen; in test_deflate() 88 if (memcmp(uncompr, data, dataLen)) { in test_inflate() 106 dataLen = size; in LLVMFuzzerTestOneInput()
|
D | example_flush_fuzzer.c | 18 static size_t dataLen; variable 28 unsigned int len = dataLen; in test_flush() 108 dataLen = size; in LLVMFuzzerTestOneInput()
|
D | minigzip_fuzzer.c | 442 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t dataLen) { in LLVMFuzzerTestOneInput() argument 452 if (dataLen < 1 || dataLen > kMaxSize) in LLVMFuzzerTestOneInput() 456 if (fwrite(data, 1, (unsigned)dataLen, in) != dataLen) in LLVMFuzzerTestOneInput()
|
/external/rust/crates/libz-sys/src/zlib-ng/test/fuzz/ |
D | checksum_fuzzer.c | 16 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t dataLen) { in LLVMFuzzerTestOneInput() argument 31 if (dataLen < 1 || dataLen > kMaxSize) in LLVMFuzzerTestOneInput() 40 for (offset = 0; offset + buffSize <= dataLen; offset += buffSize) { in LLVMFuzzerTestOneInput() 48 crc1 = PREFIX(crc32_z)(crc1, data + offset, dataLen % buffSize); in LLVMFuzzerTestOneInput() 50 crc2 = PREFIX(crc32_z)(crc2, data, dataLen); in LLVMFuzzerTestOneInput() 55 combine1 = PREFIX(crc32_combine)(crc1, crc2, (z_off_t)dataLen); in LLVMFuzzerTestOneInput() 56 combine2 = PREFIX(crc32_combine)(crc1, crc1, (z_off_t)dataLen); in LLVMFuzzerTestOneInput() 60 PREFIX(crc32_combine_gen)(op, (z_off_t)dataLen); in LLVMFuzzerTestOneInput() 64 combine1 = PREFIX(crc32_combine)(crc1, crc2, (z_off_t)dataLen); in LLVMFuzzerTestOneInput() 69 for (offset = 0; offset + buffSize <= dataLen; offset += buffSize) in LLVMFuzzerTestOneInput() [all …]
|
D | example_dict_fuzzer.c | 24 static size_t dataLen; variable 75 *comprLen = 100 + 2 * PREFIX(deflateBound)(&c_stream, (unsigned long)dataLen); in test_dict_deflate() 83 c_stream.avail_in = (uint32_t)dataLen; in test_dict_deflate() 112 uncompr = (uint8_t *)calloc(1, dataLen); in test_dict_inflate() 114 d_stream.avail_out = (unsigned int)dataLen; in test_dict_inflate() 134 if (memcmp(uncompr, data, dataLen)) { in test_dict_inflate() 153 dataLen = size; in LLVMFuzzerTestOneInput() 159 if (dictionaryLen > dataLen) in LLVMFuzzerTestOneInput() 160 dictionaryLen = (unsigned int)dataLen; in LLVMFuzzerTestOneInput()
|
D | compress_fuzzer.c | 17 static size_t dataLen; variable 22 PREFIX(compress2)(compr, &comprLen, data, dataLen, level); in check_compress_level() 26 assert(dataLen == uncomprLen); in check_compress_level() 27 assert(0 == memcmp(data, uncompr, dataLen)); in check_compress_level() 49 size_t copyLen = dataLen + 2; in check_decompress() 51 memcpy(copy + 2, data, dataLen); in check_decompress() 71 dataLen = size; in LLVMFuzzerTestOneInput()
|
D | example_small_fuzzer.c | 24 static size_t dataLen; variable 34 unsigned long len = (unsigned long)dataLen; in test_deflate() 93 if (memcmp(uncompr, data, dataLen)) { in test_inflate() 111 dataLen = size; in LLVMFuzzerTestOneInput()
|
D | minigzip_fuzzer.c | 248 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t dataLen) { in LLVMFuzzerTestOneInput() argument 258 if (dataLen < 1 || dataLen > kMaxSize) in LLVMFuzzerTestOneInput() 262 if (fwrite(data, 1, (unsigned)dataLen, in) != dataLen) in LLVMFuzzerTestOneInput()
|
D | example_flush_fuzzer.c | 24 static size_t dataLen; variable 34 unsigned int len = (unsigned int)dataLen; in test_flush() 112 dataLen = size; in LLVMFuzzerTestOneInput()
|
/external/skqp/src/pdf/ |
D | SkPDFConvertType1FontStream.cpp | 42 size_t* dataLen, size_t* trailerLen) { in parsePFB() argument 47 parsePFBSection(&srcPtr, &remaining, 2, dataLen) && in parsePFB() 61 size_t* hexDataLen, size_t* dataLen, size_t* trailerLen) { in parsePFA() argument 108 *dataLen = (nibbles + 1) / 2; in parsePFA() 128 size_t* dataLen, size_t* trailerLen) { in SkPDFConvertType1FontStream() argument 141 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) { in SkPDFConvertType1FontStream() 143 const size_t length = *headerLen + *dataLen + *trailerLen; in SkPDFConvertType1FontStream() 157 uint8_t* const resultTrailer = resultData + *dataLen; in SkPDFConvertType1FontStream() 162 memcpy(resultData, srcData, *dataLen); in SkPDFConvertType1FontStream() 170 if (!parsePFA((const char*)src, srcLen, headerLen, &hexDataLen, dataLen, in SkPDFConvertType1FontStream() [all …]
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | C_B_D_T_.py | 42 (dataLen,) = struct.unpack(">L", data[:4]) 46 assert dataLen <= len(data), "Data overun in format 17" 47 self.imageData = data[:dataLen] 61 (dataLen,) = struct.unpack(">L", data[:4]) 65 assert dataLen <= len(data), "Data overun in format 18" 66 self.imageData = data[:dataLen] 78 (dataLen,) = struct.unpack(">L", self.data[:4]) 81 assert dataLen <= len(data), "Data overun in format 19" 82 self.imageData = data[:dataLen]
|
/external/skia/src/pdf/ |
D | SkPDFType1Font.cpp | 49 size_t* dataLen, size_t* trailerLen) { in parsePFB() argument 54 parsePFBSection(&srcPtr, &remaining, 2, dataLen) && in parsePFB() 68 size_t* hexDataLen, size_t* dataLen, size_t* trailerLen) { in parsePFA() argument 115 *dataLen = (nibbles + 1) / 2; in parsePFA() 135 size_t* dataLen, in convert_type1_font_stream() argument 149 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) { in convert_type1_font_stream() 151 const size_t length = *headerLen + *dataLen + *trailerLen; in convert_type1_font_stream() 165 uint8_t* const resultTrailer = resultData + *dataLen; in convert_type1_font_stream() 170 memcpy(resultData, srcData, *dataLen); in convert_type1_font_stream() 178 if (!parsePFA((const char*)src, srcLen, headerLen, &hexDataLen, dataLen, in convert_type1_font_stream() [all …]
|
/external/pdfium/core/fxcrt/ |
D | string_data_template.h | 100 StringDataTemplate(size_t dataLen, size_t allocLen) in StringDataTemplate() argument 101 : m_nRefs(0), m_nDataLength(dataLen), m_nAllocLength(allocLen) { in StringDataTemplate() 102 ASSERT(dataLen >= 0); in StringDataTemplate() 103 ASSERT(dataLen <= allocLen); in StringDataTemplate() 104 m_String[dataLen] = 0; in StringDataTemplate()
|
/external/mesa3d/include/android_stub/log/ |
D | log_safetynet.h | 28 #define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \ argument 29 __android_log_error_write(tag, subTag, uid, data, dataLen) 32 const char* data, uint32_t dataLen);
|
/external/perfetto/ui/src/controller/ |
D | adb.ts | 333 if (msg.dataLen > 0) { 334 const resp = await this.recvRaw(msg.dataLen); 373 recvRaw(dataLen: number): Promise<USBInTransferResult> { 375 return this.dev.transferIn(this.usbReadEndpoint, dataLen); 493 dataLen: number; property in AdbMsgImpl 499 cmd: CmdType, arg0: number, arg1: number, dataLen: number, 505 this.dataLen = dataLen; 506 this.data = new Uint8Array(dataLen); 549 const dataLen = dv.getUint32(12, true); constant 553 return new AdbMsgImpl(cmd, arg0, arg1, dataLen, dataChecksum);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/pem/ |
D | PemWriter.java | 67 int dataLen = ((obj.getContent().length + 2) / 3) * 4; in getOutputSize() local 69 size += dataLen + (((dataLen + LINE_LENGTH - 1) / LINE_LENGTH) * nlLength); in getOutputSize()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/io/pem/ |
D | PemWriter.java | 69 int dataLen = ((obj.getContent().length + 2) / 3) * 4; in getOutputSize() local 71 size += dataLen + (((dataLen + LINE_LENGTH - 1) / LINE_LENGTH) * nlLength); in getOutputSize()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/io/pem/ |
D | PemWriter.java | 69 int dataLen = ((obj.getContent().length + 2) / 3) * 4; in getOutputSize() local 71 size += dataLen + (((dataLen + LINE_LENGTH - 1) / LINE_LENGTH) * nlLength); in getOutputSize()
|
/external/oboe/samples/drumthumper/src/main/java/com/plausibleaudio/drumthumper/ |
D | DrumPlayer.kt | 91 val dataLen = assetFD.getLength().toInt() in loadWavAsset() constant 92 val dataBytes = ByteArray(dataLen) in loadWavAsset() 93 dataStream.read(dataBytes, 0, dataLen) in loadWavAsset()
|
/external/fastrpc/src/ |
D | listener_android.c | 194 if(bufs->inbufs[ii].dataLen < bufs->inbufLenReqs[ii]) { in listener() 196 …= rpcmem_realloc(heapid, flags, bufs->inbufs[ii].data, bufs->inbufs[ii].dataLen, bufs->inbufLenRe… in listener() 198 bufs->inbufs[ii].dataLen = 0; in listener() 203 bufs->inbufs[ii].dataLen = bufs->inbufLenReqs[ii]; in listener() 211 if(bufs->outbufs[ii].dataLen < bufs->outbufLenReqs[ii]) { in listener() 213 … rpcmem_realloc(heapid, flags, bufs->outbufs[ii].data, bufs->outbufs[ii].dataLen, bufs->outbufLenR… in listener() 219 bufs->outbufs[ii].dataLen = bufs->outbufLenReqs[ii]; in listener()
|
/external/libese/apps/boot/ |
D | boot.c | 323 const uint8_t *data, uint16_t dataLen) { in ese_boot_meta_append() argument 330 if (dataLen > kMaxMetadataLoadSize) { in ese_boot_meta_append() 341 uint8_t apdu_len[] = {0x0, (dataLen >> 8), (dataLen & 0xff)}; in ese_boot_meta_append() 345 tx[3].len = dataLen; in ese_boot_meta_append() 373 uint16_t dataLen) { in ese_boot_lock_xset() argument 383 if (dataLen < 1 || dataLen > kEseBootOwnerKeyMax + 1) { in ese_boot_lock_xset() 384 ALOGE("ese_boot_lock_xset: too much data: %hu > %d", dataLen, in ese_boot_lock_xset() 398 uint16_t remaining = dataLen - 1; in ese_boot_lock_xset()
|
/external/libese/apps/boot/include/ese/app/ |
D | boot.h | 127 uint16_t maxSize, uint16_t *dataLen); 144 …t(struct EseBootSession *session, EseBootLockId lockId, const uint8_t *lockData, uint16_t dataLen);
|