Searched refs:fuzzedDataProvider (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/libs/androidfw/fuzz/resxmlparser_fuzzer/ |
D | resxmlparser_fuzzer.cpp | 25 FuzzedDataProvider& fuzzedDataProvider) { in populateDynamicRefTableWithFuzzedData() argument 27 const size_t numMappings = fuzzedDataProvider.ConsumeIntegralInRange<size_t>(1, 5); in populateDynamicRefTableWithFuzzedData() 29 const uint8_t packageId = fuzzedDataProvider.ConsumeIntegralInRange<uint8_t>(0x02, 0x7F); in populateDynamicRefTableWithFuzzedData() 33 size_t packageNameLength = fuzzedDataProvider.ConsumeIntegralInRange<size_t>(1, 128); in populateDynamicRefTableWithFuzzedData() 36 char ch = fuzzedDataProvider.ConsumeIntegralInRange<char>(0x20, 0x7E); in populateDynamicRefTableWithFuzzedData() 49 FuzzedDataProvider fuzzedDataProvider(data, size); in LLVMFuzzerTestOneInput() local 54 populateDynamicRefTableWithFuzzedData(*dynamic_ref_table, fuzzedDataProvider); in LLVMFuzzerTestOneInput() 55 std::vector<uint8_t> xmlData = fuzzedDataProvider.ConsumeRemainingBytes<uint8_t>(); in LLVMFuzzerTestOneInput()
|
/frameworks/av/services/medialog/fuzzer/ |
D | media_log_fuzzer.cpp | 47 FuzzedDataProvider fuzzedDataProvider(data, size); in process() local 49 fuzzedDataProvider.ConsumeIntegralInRange<size_t>(0, std::size(kWriterNames) - 1); in process() 50 bool shouldDumpBeforeUnregister = fuzzedDataProvider.ConsumeBool(); in process() 51 size_t logSize = fuzzedDataProvider.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process() 54 size_t numberOfLines = fuzzedDataProvider.ConsumeIntegralInRange<size_t>(0, kMaxNumLines); in process() 56 args.add(static_cast<String16>(fuzzedDataProvider.ConsumeRandomLengthString().c_str())); in process() 60 fuzzedDataProvider.ConsumeData(logBuffer->unsecurePointer(), logBuffer->size()); in process()
|