Searched refs:fdp_ (Results 1 – 3 of 3) sorted by relevance
/system/core/init/fuzzer/ |
D | init_parser_fuzzer.cpp | 41 InitParserFuzzer(const uint8_t* data, size_t size) : fdp_(data, size){}; in InitParserFuzzer() 51 FuzzedDataProvider fdp_; member in InitParserFuzzer 55 if (fdp_.ConsumeBool()) { in InvokeLimitParser() 58 input.push_back(fdp_.ConsumeRandomLengthString(kMaxBytes)); in InvokeLimitParser() 59 input.push_back(fdp_.ConsumeRandomLengthString(kMaxBytes)); in InvokeLimitParser() 60 input.push_back(fdp_.ConsumeRandomLengthString(kMaxBytes)); in InvokeLimitParser() 63 ParseRlimit(fdp_.PickValueInArray(kValidInputs)); in InvokeLimitParser() 69 for (size_t idx = 0; idx < fdp_.ConsumeIntegral<size_t>(); ++idx) { in GenerateInterfaceMetadata() 71 metadata.name = fdp_.ConsumeRandomLengthString(kMaxBytes); in GenerateInterfaceMetadata() 72 for (size_t idx1 = 0; idx1 < fdp_.ConsumeIntegral<size_t>(); ++idx1) { in GenerateInterfaceMetadata() [all …]
|
D | init_property_fuzzer.cpp | 41 InitPropertyFuzzer(const uint8_t* data, size_t size) : fdp_(data, size){}; in InitPropertyFuzzer() 49 FuzzedDataProvider fdp_; member in InitPropertyFuzzer 55 int type = fdp_.ConsumeEnum<PropertyType>(); in InvokeCheckType() 58 value = fdp_.ConsumeRandomLengthString(kMaxPropertyLength); in InvokeCheckType() 62 value = fdp_.ConsumeBool(); in InvokeCheckType() 66 value = fdp_.ConsumeIntegral<int>(); in InvokeCheckType() 70 value = fdp_.ConsumeIntegral<uint_t>(); in InvokeCheckType() 74 value = fdp_.ConsumeFloatingPoint<double>(); in InvokeCheckType() 78 value = fdp_.ConsumeIntegral<uint_t>(); in InvokeCheckType() 79 value = value.append(fdp_.PickValueInArray(kSizeSuffix)); in InvokeCheckType() [all …]
|
/system/core/fastboot/fuzzer/ |
D | fastboot_fuzzer.cpp | 63 unique_ptr<FuzzedDataProvider> fdp_ = nullptr; member in FastbootFuzzer 70 int32_t year = fdp_->ConsumeIntegralInRange<int32_t>(kYearMin, kYearMax); in InvokeParseApi() 71 int32_t month = fdp_->ConsumeIntegralInRange<int32_t>(kMonthMin, kMonthMax); in InvokeParseApi() 72 int32_t day = fdp_->ConsumeIntegralInRange<int32_t>(kDayMin, kDayMax); in InvokeParseApi() 76 int32_t major = fdp_->ConsumeIntegralInRange<int32_t>(kVersionMin, kVersionMax); in InvokeParseApi() 77 int32_t minor = fdp_->ConsumeIntegralInRange<int32_t>(kVersionMin, kVersionMax); in InvokeParseApi() 78 int32_t patch = fdp_->ConsumeIntegralInRange<int32_t>(kVersionMin, kVersionMax); in InvokeParseApi() 82 fastBoot.ParseFsOption(fdp_->PickValueInArray(kFsOptionsArray)); in InvokeParseApi() 110 string message = fdp_->ConsumeRandomLengthString(kMaxStringSize); in InvokeSocket() 113 if (fdp_->ConsumeBool()) { in InvokeSocket() [all …]
|