Home
last modified time | relevance | path

Searched refs:data_provider (Results 1 – 9 of 9) sorted by relevance

/external/libbrillo/brillo/http/
Dhttp_form_data_fuzzer.cc21 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/
Ddata_serialization_fuzzer.cc59 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/
Dpdf_nametree_fuzzer.cc23 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/
Dsample_encode_fuzzer.cc26 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/
Dcras_hfp_slc.cc29 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()
Drclient_message.cc31 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/
Ddata_encoding_fuzzer.cc67 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/
Dpower_stats.cc99 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/
Dall_lzo_compress.cc244 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()