blob: ae502cf4b49a83b3abc10687e1337ab58fdf4034 [file] [log] [blame]
Alec Mourib2089a32022-01-15 00:34:20 +00001/*
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
Bob Badourc26d6d52022-02-10 13:41:04 -080018package {
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"],
John Reck38bc8a82024-02-21 17:08:27 -050025 default_team: "trendy_team_android_core_graphics_stack",
Bob Badourc26d6d52022-02-10 13:41:04 -080026}
27
Alec Mourib2089a32022-01-15 00:34:20 +000028cc_defaults {
29 name: "surfaceflinger_fuzz_defaults",
Alec Mourib2089a32022-01-15 00:34:20 +000030 static_libs: [
Patrick Williams8b731c12023-10-24 09:56:24 -050031 "libc++fs",
Alec Mouri9b133ca2023-11-14 19:00:01 +000032 "libsurfaceflinger_common",
Alec Mourib2089a32022-01-15 00:34:20 +000033 ],
34 srcs: [
35 ":libsurfaceflinger_sources",
Alec Mourib2089a32022-01-15 00:34:20 +000036 ],
37 defaults: [
38 "libsurfaceflinger_defaults",
39 ],
40 header_libs: [
Alec Mourib2089a32022-01-15 00:34:20 +000041 "libsurfaceflinger_headers",
Alec Mourib2089a32022-01-15 00:34:20 +000042 ],
43 cflags: [
44 "-Wno-unused-result",
45 "-Wno-conversion",
46 "-Wno-sign-compare",
Leon Scroggins IIIbfab5052023-03-24 15:45:46 -040047 "-Wno-unused-function",
Alec Mourib2089a32022-01-15 00:34:20 +000048 ],
49 fuzz_config: {
50 cc: [
Ayushi Khopkar7bf91892023-03-17 15:45:22 +053051 "android-cogs-eng@google.com",
Alec Mourib2089a32022-01-15 00:34:20 +000052 ],
Ayushi Khopkar7bf91892023-03-17 15:45:22 +053053 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",
Alec Mourib2089a32022-01-15 00:34:20 +000062 },
63}
64
65cc_fuzz {
Pawan Wagh1dd5f382023-06-01 23:43:10 +000066 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}