/external/libbrillo/brillo/http/ |
D | http_form_data_fuzzer.cc | 21 FuzzedDataProvider* data_provider) { in CreateTextFormField() argument 23 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateTextFormField() 24 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateTextFormField() 25 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateTextFormField() 26 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength)); in CreateTextFormField() 30 FuzzedDataProvider* data_provider) { in CreateFileFormField() argument 32 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), nullptr); in CreateFileFormField() 34 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateFileFormField() 36 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateFileFormField() 37 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateFileFormField() [all …]
|
/external/libbrillo/brillo/dbus/ |
D | data_serialization_fuzzer.cc | 59 void GenerateIntAndAppendValue(FuzzedDataProvider* data_provider, in GenerateIntAndAppendValue() argument 62 AppendValue(writer, variant, data_provider->ConsumeIntegral<T>()); in GenerateIntAndAppendValue() 73 std::string GenerateValidUTF8(FuzzedDataProvider* data_provider) { in GenerateValidUTF8() argument 79 data_provider->ConsumeRandomLengthString(kRandomMaxDataLength); in GenerateValidUTF8() 104 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 114 static_cast<int>(data_provider.ConsumeProbability<float>() * size); in LLVMFuzzerTestOneInput() 115 while (data_provider.remaining_bytes() > bytes_left_for_read) { in LLVMFuzzerTestOneInput() 116 DataType curr_type = data_provider.ConsumeEnum<DataType>(); in LLVMFuzzerTestOneInput() 117 bool variant = data_provider.ConsumeBool(); in LLVMFuzzerTestOneInput() 120 GenerateIntAndAppendValue<uint8_t>(&data_provider, &writer, variant); in LLVMFuzzerTestOneInput() [all …]
|
/external/pdfium/testing/fuzzers/ |
D | pdf_nametree_fuzzer.cc | 23 FuzzedDataProvider* data_provider) { in GetNames() argument 29 std::string str = data_provider->ConsumeRandomLengthString(kMaxNameLen); in GetNames() 37 Params GetParams(FuzzedDataProvider* data_provider) { in GetParams() argument 39 params.delete_backwards = data_provider->ConsumeBool(); in GetParams() 40 params.count = data_provider->ConsumeIntegralInRange(1, 255); in GetParams() 41 params.names = GetNames(params.count, data_provider); in GetParams() 46 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 47 Params params = GetParams(&data_provider); in LLVMFuzzerTestOneInput() 51 data_provider.ConsumeRemainingBytes<uint8_t>(); in LLVMFuzzerTestOneInput()
|
/external/oss-fuzz/projects/sentencepiece/ |
D | sample_encode_fuzzer.cc | 26 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 27 const int nbest_size = data_provider.ConsumeIntegral<int>(); in LLVMFuzzerTestOneInput() 28 const float alpha = data_provider.ConsumeFloatingPoint<float>(); in LLVMFuzzerTestOneInput() 29 const std::string in_string = data_provider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
|
/external/adhd/cras/src/fuzz/ |
D | cras_hfp_slc.cc | 29 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 30 bool is_hsp = data_provider.ConsumeIntegralInRange(0, 1); in LLVMFuzzerTestOneInput() 31 int ag_supported_features = data_provider.ConsumeIntegral<int>(); in LLVMFuzzerTestOneInput() 32 std::string command = data_provider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
|
D | rclient_message.cc | 31 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 33 int num_fds = data_provider.ConsumeIntegralInRange(0, 1); in LLVMFuzzerTestOneInput() 34 std::vector<uint8_t> msg = data_provider.ConsumeRemainingBytes<uint8_t>(); in LLVMFuzzerTestOneInput()
|
/external/libbrillo/brillo/ |
D | data_encoding_fuzzer.cc | 67 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 68 FuzzUrlEncodeDecode(&data_provider); in LLVMFuzzerTestOneInput() 69 FuzzWebParamsEncodeDecode(&data_provider); in LLVMFuzzerTestOneInput() 70 FuzzBase64EncodeDecode(&data_provider); in LLVMFuzzerTestOneInput()
|
/external/perfetto/src/android_internal/ |
D | power_stats.cc | 99 static std::unique_ptr<PowerStatsDataProvider> data_provider; in GetDataProvider() local 100 if (data_provider == nullptr) { in GetDataProvider() 105 data_provider = std::make_unique<PowerStatsAidlDataProvider>(); in GetDataProvider() 107 data_provider = std::make_unique<PowerStatsHalDataProvider>(); in GetDataProvider() 110 return data_provider.get(); in GetDataProvider()
|
/external/oss-fuzz/projects/lzo/ |
D | all_lzo_compress.cc | 244 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 247 data_provider.ConsumeIntegralInRange<size_t>(0, algorithms.size() - 1); in LLVMFuzzerTestOneInput() 249 const auto second_level_index = data_provider.ConsumeIntegralInRange<size_t>( in LLVMFuzzerTestOneInput() 252 data_provider.ConsumeRemainingBytes<uint8_t>(); in LLVMFuzzerTestOneInput()
|