Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [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 | * |
| 16 | */ |
| 17 | |
Bob Badour | c26d6d5 | 2022-02-10 13:41:04 -0800 | [diff] [blame] | 18 | package { |
| 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 Reck | 38bc8a8 | 2024-02-21 17:08:27 -0500 | [diff] [blame] | 25 | default_team: "trendy_team_android_core_graphics_stack", |
Bob Badour | c26d6d5 | 2022-02-10 13:41:04 -0800 | [diff] [blame] | 26 | } |
| 27 | |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 28 | cc_defaults { |
| 29 | name: "surfaceflinger_fuzz_defaults", |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 30 | static_libs: [ |
Patrick Williams | 8b731c1 | 2023-10-24 09:56:24 -0500 | [diff] [blame] | 31 | "libc++fs", |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 32 | "libsurfaceflinger_common", |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 33 | ], |
| 34 | srcs: [ |
| 35 | ":libsurfaceflinger_sources", |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 36 | ], |
| 37 | defaults: [ |
| 38 | "libsurfaceflinger_defaults", |
| 39 | ], |
| 40 | header_libs: [ |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 41 | "libsurfaceflinger_headers", |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 42 | ], |
| 43 | cflags: [ |
| 44 | "-Wno-unused-result", |
| 45 | "-Wno-conversion", |
| 46 | "-Wno-sign-compare", |
Leon Scroggins III | bfab505 | 2023-03-24 15:45:46 -0400 | [diff] [blame] | 47 | "-Wno-unused-function", |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 48 | ], |
| 49 | fuzz_config: { |
| 50 | cc: [ |
Ayushi Khopkar | 7bf9189 | 2023-03-17 15:45:22 +0530 | [diff] [blame] | 51 | "android-cogs-eng@google.com", |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 52 | ], |
Ayushi Khopkar | 7bf9189 | 2023-03-17 15:45:22 +0530 | [diff] [blame] | 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", |
Alec Mouri | b2089a3 | 2022-01-15 00:34:20 +0000 | [diff] [blame] | 62 | }, |
| 63 | } |
| 64 | |
| 65 | cc_fuzz { |
Pawan Wagh | 1dd5f38 | 2023-06-01 23:43:10 +0000 | [diff] [blame] | 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 | } |