Searched refs:alloc_vector (Results 1 – 3 of 3) sorted by relevance
/system/bt/osi/test/fuzzers/allocation_tracker/ |
D | fuzz_allocation_tracker.cc | 35 void freeAllocationVector(std::vector<alloc_struct>* alloc_vector) { in freeAllocationVector() argument 37 for (const auto& alloc : *alloc_vector) { in freeAllocationVector() 43 alloc_vector->clear(); in freeAllocationVector() 46 void callArbitraryFunction(std::vector<alloc_struct>* alloc_vector, in callArbitraryFunction() argument 82 alloc_vector->push_back(alloc); in callArbitraryFunction() 90 if (!alloc_vector->empty()) { in callArbitraryFunction() 92 0, alloc_vector->size() - 1); in callArbitraryFunction() 93 alloc_struct alloc = alloc_vector->at(index); in callArbitraryFunction() 99 alloc_vector->erase(alloc_vector->begin() + index); in callArbitraryFunction() 114 freeAllocationVector(alloc_vector); in callArbitraryFunction() [all …]
|
/system/bt/osi/test/fuzzers/allocator/ |
D | fuzz_allocator.cc | 24 void callArbitraryFunction(std::vector<void*>* alloc_vector, in callArbitraryFunction() argument 49 alloc_vector->push_back(ptr); in callArbitraryFunction() 56 if (alloc_vector->size() == 0) { in callArbitraryFunction() 60 0, alloc_vector->size() - 1); in callArbitraryFunction() 61 void* ptr = alloc_vector->at(index); in callArbitraryFunction() 69 alloc_vector->erase(alloc_vector->begin() + index); in callArbitraryFunction() 90 alloc_vector->push_back(str); in callArbitraryFunction() 104 std::vector<void*> alloc_vector; in LLVMFuzzerTestOneInput() local 109 callArbitraryFunction(&alloc_vector, &dataProvider); in LLVMFuzzerTestOneInput() 112 for (const auto& alloc : alloc_vector) { in LLVMFuzzerTestOneInput() [all …]
|
/system/bt/osi/test/fuzzers/list/ |
D | fuzz_list.cc | 72 std::vector<void*>* alloc_vector, in callArbitraryFunction() argument 113 void* search_buf = getArbitraryElement(alloc_vector, dataProvider); in callArbitraryFunction() 154 alloc_vector->push_back(buf); in callArbitraryFunction() 165 alloc_vector->push_back(buf); in callArbitraryFunction() 175 alloc_vector->push_back(buf); in callArbitraryFunction() 185 void* buf = getArbitraryElement(alloc_vector, dataProvider); in callArbitraryFunction() 254 std::vector<void*> alloc_vector; in LLVMFuzzerTestOneInput() local 260 callArbitraryFunction(&list_vector, &alloc_vector, &dataProvider); in LLVMFuzzerTestOneInput() 269 for (const auto& alloc : alloc_vector) { in LLVMFuzzerTestOneInput()
|