Searched refs:exec_spec (Results 1 – 4 of 4) sorted by relevance
/test/vts-testcase/fuzz/iface_fuzzer/ |
D | ProtoFuzzerMain.cpp | 131 ExecSpec exec_spec{}; in LLVMFuzzerCustomMutator() local 136 if (!FromArray(data, size, &exec_spec) || runner->UntouchedIfaces()) { in LLVMFuzzerCustomMutator() 137 exec_spec = in LLVMFuzzerCustomMutator() 140 mutator->Mutate(runner->GetOpenedIfaces(), &exec_spec); in LLVMFuzzerCustomMutator() 143 if (static_cast<size_t>(exec_spec.ByteSize()) > max_size) { in LLVMFuzzerCustomMutator() 146 cerr << static_cast<size_t>(exec_spec.ByteSize()) << endl; in LLVMFuzzerCustomMutator() 149 return ToArray(data, max_size, &exec_spec); in LLVMFuzzerCustomMutator() 192 ExecSpec exec_spec{}; in LLVMFuzzerTestOneInput() local 193 if (!FromArray(data, size, &exec_spec)) { in LLVMFuzzerTestOneInput() 199 runner->Execute(exec_spec); in LLVMFuzzerTestOneInput()
|
D | ProtoFuzzerUtils.cpp | 185 bool FromArray(const uint8_t *data, size_t size, ExecSpec *exec_spec) { in FromArray() argument 187 return exec_spec->ParseFromArray(data, size) && exec_spec->has_valid() && in FromArray() 188 exec_spec->valid(); in FromArray() 191 size_t ToArray(uint8_t *data, size_t size, ExecSpec *exec_spec) { in ToArray() argument 192 exec_spec->set_valid(true); in ToArray() 193 size_t exec_size = exec_spec->ByteSize(); in ToArray() 194 exec_spec->SerializeToArray(data, exec_size); in ToArray()
|
D | ProtoFuzzerMutator.cpp | 131 void ProtoFuzzerMutator::Mutate(const IfaceDescTbl &tbl, ExecSpec *exec_spec) { in Mutate() argument 140 size_t idx = rand_(exec_spec->function_call_size()); in Mutate() 141 const FuncSpec &rand_api = exec_spec->function_call(idx).api(); in Mutate() 142 *exec_spec->mutable_function_call(idx)->mutable_api() = Mutate(rand_api); in Mutate() 150 size_t func_idx = rand_(exec_spec->function_call_size()); in Mutate() 152 FuncCall *func_call = exec_spec->mutable_function_call(func_idx); in Mutate()
|
D | ProtoFuzzerRunner.cpp | 179 void ProtoFuzzerRunner::Execute(const ExecSpec &exec_spec) { in Execute() argument 180 for (const auto &func_call : exec_spec.function_call()) { in Execute()
|