Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f5e431e authored by Zhanglong Xia's avatar Zhanglong Xia Committed by Gerrit Code Review
Browse files

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

parents 086e1384 7f7e8647
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -79,7 +79,6 @@ cc_fuzz {
        "fuzzer.cpp",
    ],

    required: ["ot-rcp"],
    fuzz_config: {
        cc: [
            "zhanglongxia@google.com",
+1 −1
Original line number Diff line number Diff line
@@ -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));