Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 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 | */ |
Bob Badour | 82a2ae9 | 2022-07-14 12:23:19 -0700 | [diff] [blame] | 16 | package { |
| 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"], |
| 23 | } |
| 24 | |
Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 25 | cc_defaults { |
| 26 | name: "libgui_fuzzer_defaults", |
Matt Buckley | cc14642 | 2023-06-28 19:14:02 +0000 | [diff] [blame] | 27 | defaults: ["android.hardware.power-ndk_shared"], |
Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 28 | static_libs: [ |
| 29 | "android.hidl.token@1.0-utils", |
| 30 | "libbinder_random_parcel", |
| 31 | "libgui_aidl_static", |
| 32 | "libgui_window_info_static", |
| 33 | "libpdx", |
| 34 | "libgmock", |
| 35 | "libgui_mocks", |
| 36 | "libgmock_ndk", |
| 37 | "libgmock_main", |
| 38 | "libgtest_ndk_c++", |
| 39 | "libgmock_main_ndk", |
| 40 | "librenderengine_mocks", |
| 41 | "perfetto_trace_protos", |
| 42 | "libcompositionengine_mocks", |
| 43 | "perfetto_trace_protos", |
| 44 | ], |
| 45 | shared_libs: [ |
| 46 | "android.hardware.configstore@1.0", |
| 47 | "android.hardware.configstore-utils", |
| 48 | "android.hardware.graphics.bufferqueue@1.0", |
| 49 | "android.hardware.graphics.bufferqueue@2.0", |
Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 50 | "android.hidl.token@1.0", |
| 51 | "libSurfaceFlingerProp", |
| 52 | "libgui", |
| 53 | "libbase", |
| 54 | "liblog", |
| 55 | "libEGL", |
| 56 | "libGLESv2", |
| 57 | "libbinder", |
| 58 | "libcutils", |
| 59 | "libhidlbase", |
| 60 | "libinput", |
| 61 | "libui", |
| 62 | "libutils", |
| 63 | "libnativewindow", |
| 64 | "libvndksupport", |
Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 65 | ], |
| 66 | header_libs: [ |
| 67 | "libdvr_headers", |
| 68 | "libui_fuzzableDataspaces_headers", |
| 69 | ], |
| 70 | fuzz_config: { |
| 71 | cc: [ |
| 72 | "android-media-fuzzing-reports@google.com", |
| 73 | ], |
| 74 | componentid: 155276, |
Ayushi Khopkar | d0dfa17 | 2023-03-20 15:36:27 +0530 | [diff] [blame] | 75 | hotlists: [ |
| 76 | "4593311", |
| 77 | ], |
| 78 | description: "The fuzzer targets the APIs of libgui library", |
| 79 | vector: "local_no_privileges_required", |
| 80 | service_privilege: "privileged", |
| 81 | users: "multi_user", |
| 82 | fuzzed_code_usage: "shipped", |
Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 83 | }, |
| 84 | } |
| 85 | |
| 86 | cc_fuzz { |
| 87 | name: "libgui_surfaceComposer_fuzzer", |
| 88 | srcs: [ |
| 89 | "libgui_surfaceComposer_fuzzer.cpp", |
| 90 | ], |
| 91 | defaults: [ |
| 92 | "libgui_fuzzer_defaults", |
Pawan Wagh | a1667e5 | 2023-07-12 20:42:35 +0000 | [diff] [blame] | 93 | "service_fuzzer_defaults", |
Devendra Singhi | 6bb90f0 | 2021-12-02 09:42:35 +0530 | [diff] [blame] | 94 | ], |
| 95 | } |
Devendra Singhi | 0cf3045 | 2021-12-02 09:49:28 +0530 | [diff] [blame] | 96 | |
| 97 | cc_fuzz { |
| 98 | name: "libgui_surfaceComposerClient_fuzzer", |
| 99 | srcs: [ |
| 100 | "libgui_surfaceComposerClient_fuzzer.cpp", |
| 101 | ], |
| 102 | defaults: [ |
| 103 | "libgui_fuzzer_defaults", |
Pawan Wagh | a1667e5 | 2023-07-12 20:42:35 +0000 | [diff] [blame] | 104 | "service_fuzzer_defaults", |
Devendra Singhi | 0cf3045 | 2021-12-02 09:49:28 +0530 | [diff] [blame] | 105 | ], |
| 106 | } |
Devendra Singhi | 447a9e6 | 2021-12-02 09:54:31 +0530 | [diff] [blame] | 107 | |
| 108 | cc_fuzz { |
| 109 | name: "libgui_parcelable_fuzzer", |
| 110 | srcs: [ |
| 111 | "libgui_parcelable_fuzzer.cpp", |
| 112 | ], |
| 113 | defaults: [ |
| 114 | "libgui_fuzzer_defaults", |
| 115 | ], |
| 116 | } |
Devendra Singhi | 42cb44a | 2021-12-02 09:58:34 +0530 | [diff] [blame] | 117 | |
| 118 | cc_fuzz { |
| 119 | name: "libgui_bufferQueue_fuzzer", |
| 120 | srcs: [ |
| 121 | "libgui_bufferQueue_fuzzer.cpp", |
| 122 | ], |
| 123 | defaults: [ |
| 124 | "libgui_fuzzer_defaults", |
| 125 | ], |
| 126 | } |
Devendra Singhi | e387a12 | 2021-12-02 10:13:52 +0530 | [diff] [blame] | 127 | |
| 128 | cc_fuzz { |
| 129 | name: "libgui_consumer_fuzzer", |
| 130 | srcs: [ |
| 131 | "libgui_consumer_fuzzer.cpp", |
| 132 | ], |
| 133 | defaults: [ |
| 134 | "libgui_fuzzer_defaults", |
| 135 | ], |
| 136 | } |
Devendra Singhi | becdc80 | 2021-12-02 10:16:07 +0530 | [diff] [blame] | 137 | |
| 138 | cc_fuzz { |
| 139 | name: "libgui_displayEvent_fuzzer", |
| 140 | srcs: [ |
| 141 | "libgui_displayEvent_fuzzer.cpp", |
| 142 | ], |
| 143 | defaults: [ |
| 144 | "libgui_fuzzer_defaults", |
| 145 | ], |
| 146 | } |