Home
last modified time | relevance | path

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

/system/unwinding/libunwindstack/tests/fuzz/
DUnwinderFuzz.cpp35 void PerformUnwind(FuzzedDataProvider* data_provider, Unwinder* unwinder) { in PerformUnwind() argument
40 uint8_t set_values = data_provider->ConsumeIntegral<uint8_t>() % 4; in PerformUnwind()
46 GetStringList(data_provider, kMaxUnwindStringLen, kMaxUnwindStrings); in PerformUnwind()
52 GetStringList(data_provider, kMaxUnwindStringLen, kMaxUnwindStrings); in PerformUnwind()
58 GetStringList(data_provider, kMaxUnwindStringLen, kMaxUnwindStrings); in PerformUnwind()
60 GetStringList(data_provider, kMaxUnwindStringLen, kMaxUnwindStrings); in PerformUnwind()
67 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local
71 std::unique_ptr<Maps> maps = GetMaps(&data_provider); in LLVMFuzzerTestOneInput()
74 uint8_t arch_val = data_provider.ConsumeIntegralInRange<uint8_t>(1, kArchCount); in LLVMFuzzerTestOneInput()
80 PutElfFilesInMemory(reinterpret_cast<MemoryFake*>(memory.get()), &data_provider); in LLVMFuzzerTestOneInput()
[all …]
DUnwinderComponentCreator.cpp50 ArchEnum GetArch(FuzzedDataProvider* data_provider) { in GetArch() argument
51 uint8_t arch = data_provider->ConsumeIntegralInRange<uint8_t>(1, kArchCount); in GetArch()
65 void ElfPushFakeFunctionData(FuzzedDataProvider* data_provider, ElfInterfaceFake* elf) { in ElfPushFakeFunctionData() argument
66 uint8_t func_count = data_provider->ConsumeIntegralInRange<uint>(0, kMaxFuncCount); in ElfPushFakeFunctionData()
68 std::string func_name = data_provider->ConsumeRandomLengthString(kMaxFuncNameLen); in ElfPushFakeFunctionData()
69 bool global = data_provider->ConsumeBool(); in ElfPushFakeFunctionData()
71 elf->FakeSetGlobalVariable(func_name, data_provider->ConsumeIntegral<uint64_t>()); in ElfPushFakeFunctionData()
77 void ElfPushFakeStepData(FuzzedDataProvider* data_provider) { in ElfPushFakeStepData() argument
78 uint8_t step_count = data_provider->ConsumeIntegralInRange<uint>(0, kMaxStepCount); in ElfPushFakeStepData()
80 uint64_t pc = data_provider->ConsumeIntegral<uint64_t>(); in ElfPushFakeStepData()
[all …]
DUnwinderComponentCreator.h69 std::unique_ptr<unwindstack::Maps> GetMaps(FuzzedDataProvider* data_provider);
70 std::vector<std::string> GetStringList(FuzzedDataProvider* data_provider, uint max_str_len,
72 unwindstack::ArchEnum GetArch(FuzzedDataProvider* data_provider);
76 void PutElfFilesInMemory(MemoryFake* memory, FuzzedDataProvider* data_provider);
78 std::unique_ptr<unwindstack::DexFiles> GetDexFiles(FuzzedDataProvider* data_provider,
/system/update_engine/payload_consumer/
Ddelta_performer_fuzzer.cc53 FuzzedDataProvider data_provider(data, size); in FuzzDeltaPerformer() local
67 .size = data_provider.ConsumeIntegralInRange<uint64_t>(0, 10000), in FuzzDeltaPerformer()
68 .metadata_size = data_provider.ConsumeIntegralInRange<uint64_t>(0, 1000), in FuzzDeltaPerformer()
69 .hash = data_provider.ConsumeBytes<uint8_t>(32), in FuzzDeltaPerformer()
71 data_provider.ConsumeIntegralInRange(0, 3)), in FuzzDeltaPerformer()
72 .already_applied = data_provider.ConsumeBool(), in FuzzDeltaPerformer()
81 data_provider.ConsumeBool()); in FuzzDeltaPerformer()
83 auto chunk_size = data_provider.ConsumeIntegralInRange<size_t>(0, 100); in FuzzDeltaPerformer()
84 auto data = data_provider.ConsumeBytes<uint8_t>(chunk_size); in FuzzDeltaPerformer()
87 } while (data_provider.remaining_bytes() > 0); in FuzzDeltaPerformer()
/system/nfc/src/fuzzers/integration/
Dnfc_integration_fuzzer_impl.cc413 reinterpret_cast<const uint8_t*>(session->data_provider().data()), in NfcIntegrationFuzzer()
414 session->data_provider().size()) { in NfcIntegrationFuzzer()
Dnfc_integration_fuzzer.proto5 optional bytes data_provider = 2; field