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

Commit eecf26ae authored by Keith Mok's avatar Keith Mok Committed by Automerger Merge Worker
Browse files

Merge "Use fuzz_config to config fuzzing size" am: 0ec3118a am: eb33ff33 am: 9b754e5b

parents d14f6f44 9b754e5b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -113,6 +113,9 @@ cc_fuzz {
    },
    srcs: ["ServiceManagerFuzzer.cpp"],
    fuzz_config: {
        libfuzzer_options: [
            "max_len=50000",
        ],
        cc: [
            "smoreland@google.com",
            "waghpawan@google.com",
+1 −5
Original line number Diff line number Diff line
@@ -26,10 +26,6 @@ using ::android::ServiceManager;
using ::android::sp;

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    if (size > 50000) {
        return 0;
    }

    auto accessPtr = std::make_unique<Access>();
    auto serviceManager = sp<ServiceManager>::make(std::move(accessPtr));
    fuzzService(serviceManager, FuzzedDataProvider(data, size));