• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18package {
19    // See: http://go/android-license-faq
20    // A large-scale-change added 'default_applicable_licenses' to import
21    // all of the 'license_kinds' from "frameworks_native_license"
22    // to get the below license kinds:
23    //   SPDX-license-identifier-Apache-2.0
24    default_applicable_licenses: ["frameworks_native_license"],
25    default_team: "trendy_team_android_core_graphics_stack",
26}
27
28cc_defaults {
29    name: "surfaceflinger_fuzz_defaults",
30    static_libs: [
31        "libc++fs",
32        "libsurfaceflinger_common",
33    ],
34    srcs: [
35        ":libsurfaceflinger_sources",
36    ],
37    defaults: [
38        "libsurfaceflinger_defaults",
39    ],
40    header_libs: [
41        "libsurfaceflinger_headers",
42    ],
43    cflags: [
44        "-Wno-unused-result",
45        "-Wno-conversion",
46        "-Wno-sign-compare",
47        "-Wno-unused-function",
48    ],
49    fuzz_config: {
50        cc: [
51            "android-cogs-eng@google.com",
52        ],
53        componentid: 1075131,
54        hotlists: [
55            "4593311",
56        ],
57        description: "The fuzzer targets the APIs of libsurfaceflinger library",
58        vector: "local_no_privileges_required",
59        service_privilege: "privileged",
60        users: "multi_user",
61        fuzzed_code_usage: "shipped",
62    },
63}
64
65cc_fuzz {
66    name: "surfaceflinger_service_fuzzer",
67    defaults: [
68        "surfaceflinger_fuzz_defaults",
69        "service_fuzzer_defaults",
70        "fuzzer_disable_leaks",
71    ],
72    srcs: [
73        "surfaceflinger_service_fuzzer.cpp",
74    ],
75    fuzz_config: {
76        triage_assignee: "waghpawan@google.com",
77    },
78}
79