mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "fix the Thread Network fuzz testing error" into main
This commit is contained in:
@@ -79,7 +79,6 @@ cc_fuzz {
|
||||
"fuzzer.cpp",
|
||||
],
|
||||
|
||||
required: ["ot-rcp"],
|
||||
fuzz_config: {
|
||||
cc: [
|
||||
"zhanglongxia@google.com",
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user