blob: 35dd9ecd818be35b6e9a47bc6f2162271781768f [file] [log] [blame]
Devendra Singhi6bb90f02021-12-02 09:42:35 +05301/*
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 */
Bob Badour82a2ae92022-07-14 12:23:19 -070016package {
17 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "frameworks_native_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["frameworks_native_license"],
John Reck38bc8a82024-02-21 17:08:27 -050023 default_team: "trendy_team_android_core_graphics_stack",
Bob Badour82a2ae92022-07-14 12:23:19 -070024}
25
Devendra Singhi6bb90f02021-12-02 09:42:35 +053026cc_defaults {
27 name: "libgui_fuzzer_defaults",
Matt Buckleycc146422023-06-28 19:14:02 +000028 defaults: ["android.hardware.power-ndk_shared"],
Devendra Singhi6bb90f02021-12-02 09:42:35 +053029 static_libs: [
30 "android.hidl.token@1.0-utils",
31 "libbinder_random_parcel",
32 "libgui_aidl_static",
33 "libgui_window_info_static",
34 "libpdx",
35 "libgmock",
36 "libgui_mocks",
37 "libgmock_ndk",
38 "libgmock_main",
39 "libgtest_ndk_c++",
40 "libgmock_main_ndk",
41 "librenderengine_mocks",
42 "perfetto_trace_protos",
43 "libcompositionengine_mocks",
44 "perfetto_trace_protos",
45 ],
46 shared_libs: [
47 "android.hardware.configstore@1.0",
48 "android.hardware.configstore-utils",
49 "android.hardware.graphics.bufferqueue@1.0",
50 "android.hardware.graphics.bufferqueue@2.0",
Devendra Singhi6bb90f02021-12-02 09:42:35 +053051 "android.hidl.token@1.0",
52 "libSurfaceFlingerProp",
53 "libgui",
54 "libbase",
55 "liblog",
56 "libEGL",
57 "libGLESv2",
58 "libbinder",
59 "libcutils",
60 "libhidlbase",
61 "libinput",
62 "libui",
63 "libutils",
64 "libnativewindow",
65 "libvndksupport",
Devendra Singhi6bb90f02021-12-02 09:42:35 +053066 ],
67 header_libs: [
68 "libdvr_headers",
69 "libui_fuzzableDataspaces_headers",
70 ],
71 fuzz_config: {
72 cc: [
73 "android-media-fuzzing-reports@google.com",
74 ],
75 componentid: 155276,
Ayushi Khopkard0dfa172023-03-20 15:36:27 +053076 hotlists: [
77 "4593311",
78 ],
79 description: "The fuzzer targets the APIs of libgui library",
80 vector: "local_no_privileges_required",
81 service_privilege: "privileged",
82 users: "multi_user",
83 fuzzed_code_usage: "shipped",
Devendra Singhi6bb90f02021-12-02 09:42:35 +053084 },
85}
86
87cc_fuzz {
88 name: "libgui_surfaceComposer_fuzzer",
89 srcs: [
90 "libgui_surfaceComposer_fuzzer.cpp",
91 ],
92 defaults: [
93 "libgui_fuzzer_defaults",
Pawan Wagha1667e52023-07-12 20:42:35 +000094 "service_fuzzer_defaults",
Devendra Singhi6bb90f02021-12-02 09:42:35 +053095 ],
96}
Devendra Singhi0cf30452021-12-02 09:49:28 +053097
98cc_fuzz {
99 name: "libgui_surfaceComposerClient_fuzzer",
100 srcs: [
101 "libgui_surfaceComposerClient_fuzzer.cpp",
102 ],
103 defaults: [
104 "libgui_fuzzer_defaults",
Pawan Wagha1667e52023-07-12 20:42:35 +0000105 "service_fuzzer_defaults",
Devendra Singhi0cf30452021-12-02 09:49:28 +0530106 ],
107}
Devendra Singhi447a9e62021-12-02 09:54:31 +0530108
109cc_fuzz {
110 name: "libgui_parcelable_fuzzer",
111 srcs: [
112 "libgui_parcelable_fuzzer.cpp",
113 ],
114 defaults: [
115 "libgui_fuzzer_defaults",
116 ],
117}
Devendra Singhi42cb44a2021-12-02 09:58:34 +0530118
119cc_fuzz {
120 name: "libgui_bufferQueue_fuzzer",
121 srcs: [
122 "libgui_bufferQueue_fuzzer.cpp",
123 ],
124 defaults: [
125 "libgui_fuzzer_defaults",
126 ],
127}
Devendra Singhie387a122021-12-02 10:13:52 +0530128
129cc_fuzz {
130 name: "libgui_consumer_fuzzer",
131 srcs: [
132 "libgui_consumer_fuzzer.cpp",
133 ],
134 defaults: [
135 "libgui_fuzzer_defaults",
136 ],
137}
Devendra Singhibecdc802021-12-02 10:16:07 +0530138
139cc_fuzz {
140 name: "libgui_displayEvent_fuzzer",
141 srcs: [
142 "libgui_displayEvent_fuzzer.cpp",
143 ],
144 defaults: [
145 "libgui_fuzzer_defaults",
146 ],
147}