1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_native_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_native_license"],
8}
9
10cc_fuzz {
11    name: "libsensorserviceaidl_fuzzer",
12    defaults: [
13        "service_fuzzer_defaults",
14        "fuzzer_disable_leaks",
15    ],
16    host_supported: true,
17    static_libs: [
18        "libsensorserviceaidl",
19        "libpermission",
20        "android.companion.virtual.virtualdevice_aidl-cpp",
21        "android.frameworks.sensorservice-V1-ndk",
22        "android.hardware.sensors-V1-convert",
23        "android.hardware.sensors-V2-ndk",
24        "android.hardware.common-V2-ndk",
25        "libsensor",
26        "libfakeservicemanager",
27        "libcutils",
28        "liblog",
29    ],
30    srcs: [
31        "fuzzer.cpp",
32    ],
33    fuzz_config: {
34        cc: [
35            "android-sensors@google.com",
36            "devinmoore@google.com",
37        ],
38    },
39    sanitize: {
40        misc_undefined: [
41            "signed-integer-overflow",
42            "unsigned-integer-overflow",
43        ],
44        diag: {
45            misc_undefined: [
46                "signed-integer-overflow",
47                "unsigned-integer-overflow",
48            ],
49        },
50        integer_overflow: true,
51    },
52
53}
54