Merge "fix the Thread Network fuzz testing error" into main

This commit is contained in:
Zhanglong Xia
2023-07-11 08:10:50 +00:00
committed by Gerrit Code Review
2 changed files with 1 additions and 2 deletions

View File

@@ -79,7 +79,6 @@ cc_fuzz {
"fuzzer.cpp",
],
required: ["ot-rcp"],
fuzz_config: {
cc: [
"zhanglongxia@google.com",

View File

@@ -22,7 +22,7 @@ using aidl::android::hardware::threadnetwork::ThreadChip;
using android::fuzzService;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
char url[] = "spinel+hdlc+forkpty:///vendor/bin/ot-rcp?forkpty-arg=2";
char url[] = "spinel+hdlc+null:///dev/null";
auto service = ndk::SharedRefBase::make<ThreadChip>(url);
fuzzService(service->asBinder().get(), FuzzedDataProvider(data, size));