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

Commit 80272831 authored by Xuan Xing's avatar Xuan Xing Committed by Hui Peng
Browse files

Updating Bluetooth stack fuzzer configurations

This change adds the following default fuzzer settings:
1. Disable debug output for performance
2. Reducing the max corpus size to 4KB (default is 1MB)

Test: Manual build and test
Bug: 274525374
Bug: 276759518

Merged-In: I0a87bdb46bb5205dd112538e6b70954ea4c08f3b
Change-Id: I0a87bdb46bb5205dd112538e6b70954ea4c08f3b
parent 84a20dac
Loading
Loading
Loading
Loading
+22 −15
Original line number Diff line number Diff line
@@ -336,6 +336,28 @@ cc_defaults {
            ],
        },
    },
    fuzz_config: {
        // Options for performance improvement
        libfuzzer_options: [
            // This disables the stdout and stderr
            "close_fd_mask=3",
            // This limits the maximum corpus size to 4KB
            "max_len=4096",
        ],
        cc: [
            "android-bluetooth-security@google.com",
            "android-security-assurance-redteam@google.com",
        ],
        componentid: 27441, // Android > Android OS & Apps > Systems > bluetooth
        hotlists: [
            "4810445", // ASA Red Team: Bluetooth Engagement Issues
            "3705175", // ASA Red Team Discovered Issues
        ],
        acknowledgement: [
            "Android Red Team of Google",
            "Android Bluetooth Team of Google",
        ],
    },
}

cc_fuzz {
@@ -360,21 +382,6 @@ cc_fuzz {
        ":TestMockStackBtm",
        "fuzzers/sdp_fuzzer.cc",
    ],
    fuzz_config: {
        cc: [
            "android-bluetooth-security@google.com",
            "android-security-assurance-redteam@google.com",
        ],
        componentid: 27441,
        hotlists: [
            "4810445",
            "3705175",
        ],
        acknowledgement: [
            "Android Red Team of Google",
            "Android Bluetooth Team of Google",
        ],
    },
}

// Bluetooth stack unit tests for target