/system/core/libunwindstack/tests/fuzz/ |
D | UnwinderFuzz.cpp | 35 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 …]
|
D | UnwinderComponentCreator.cpp | 53 ArchEnum GetArch(FuzzedDataProvider* data_provider) { in GetArch() argument 54 uint8_t arch = data_provider->ConsumeIntegralInRange<uint8_t>(1, kArchCount); in GetArch() 68 void ElfPushFakeFunctionData(FuzzedDataProvider* data_provider, ElfInterfaceFake* elf) { in ElfPushFakeFunctionData() argument 69 uint8_t func_count = data_provider->ConsumeIntegralInRange<uint>(0, kMaxFuncCount); in ElfPushFakeFunctionData() 71 std::string func_name = data_provider->ConsumeRandomLengthString(kMaxFuncNameLen); in ElfPushFakeFunctionData() 72 bool global = data_provider->ConsumeBool(); in ElfPushFakeFunctionData() 74 elf->FakeSetGlobalVariable(func_name, data_provider->ConsumeIntegral<uint64_t>()); in ElfPushFakeFunctionData() 80 void ElfPushFakeStepData(FuzzedDataProvider* data_provider) { in ElfPushFakeStepData() argument 81 uint8_t step_count = data_provider->ConsumeIntegralInRange<uint>(0, kMaxStepCount); in ElfPushFakeStepData() 83 uint64_t pc = data_provider->ConsumeIntegral<uint64_t>(); in ElfPushFakeStepData() [all …]
|
D | UnwinderComponentCreator.h | 71 std::unique_ptr<unwindstack::Maps> GetMaps(FuzzedDataProvider* data_provider); 72 std::vector<std::string> GetStringList(FuzzedDataProvider* data_provider, uint max_str_len, 74 unwindstack::ArchEnum GetArch(FuzzedDataProvider* data_provider); 78 void PutElfFilesInMemory(MemoryFake* memory, FuzzedDataProvider* data_provider); 80 std::unique_ptr<unwindstack::DexFiles> GetDexFiles(FuzzedDataProvider* data_provider,
|
/system/update_engine/payload_consumer/ |
D | delta_performer_fuzzer.cc | 53 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/bt/packet/tests/fuzzers/ |
D | get_capabilities_res_fuzzer.cc | 31 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 33 data_provider.ConsumeIntegral<uint32_t>()); in LLVMFuzzerTestOneInput() 34 builder->AddCompanyId(data_provider.ConsumeIntegral<uint32_t>()); in LLVMFuzzerTestOneInput() 35 builder->AddCompanyId(data_provider.ConsumeIntegral<uint32_t>()); in LLVMFuzzerTestOneInput()
|
D | get_total_number_of_items_res_fuzzer.cc | 34 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 36 Status::NO_ERROR, data_provider.ConsumeIntegral<uint32_t>(), in LLVMFuzzerTestOneInput() 37 data_provider.ConsumeIntegral<uint32_t>()); in LLVMFuzzerTestOneInput()
|
D | get_play_status_req_fuzzer.cc | 33 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 36 0, data_provider.ConsumeIntegral<uint32_t>(), 0); in LLVMFuzzerTestOneInput()
|
D | get_play_status_res_fuzzer.cc | 32 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 34 0, data_provider.ConsumeIntegral<uint32_t>(), 0); in LLVMFuzzerTestOneInput()
|
D | change_path_res_fuzzer.cc | 36 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 38 Status::NO_ERROR, data_provider.ConsumeIntegral<uint32_t>()); in LLVMFuzzerTestOneInput()
|
D | get_item_attributes_res_fuzzer.cc | 33 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 34 std::string s = data_provider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
|
D | get_element_attributes_res_packet_fuzzer.cc | 31 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 32 std::string s = data_provider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
|
D | get_folder_items_res_fuzzer.cc | 34 FuzzedDataProvider data_provider(data, size); in LLVMFuzzerTestOneInput() local 35 std::string s = data_provider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
|