1/****************************************************************************** 2 * 3 * Copyright (C) 2021 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ***************************************************************************** 18 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19 */ 20 21package { 22 // See: http://go/android-license-faq 23 // A large-scale-change added 'default_applicable_licenses' to import 24 // all of the 'license_kinds' from "frameworks_av_services_camera_libcameraservice_license" 25 // to get the below license kinds: 26 // SPDX-license-identifier-Apache-2.0 27 default_applicable_licenses: [ 28 "frameworks_av_services_camera_libcameraservice_license", 29 ], 30} 31 32cc_defaults { 33 name: "camera_service_fuzzer_defaults", 34 header_libs: [ 35 "libmedia_headers", 36 ], 37 shared_libs: [ 38 "libbinder", 39 "libbase", 40 "libutils", 41 "libcutils", 42 "libcameraservice", 43 "libcamera_client", 44 "liblog", 45 "libui", 46 "libgui", 47 "android.hardware.camera.common@1.0", 48 "android.hardware.camera.provider@2.4", 49 "android.hardware.camera.provider@2.5", 50 "android.hardware.camera.provider@2.6", 51 "android.hardware.camera.provider@2.7", 52 "android.hardware.camera.provider-V3-ndk", 53 "android.hardware.camera.device@1.0", 54 "android.hardware.camera.device@3.2", 55 "android.hardware.camera.device@3.3", 56 "android.hardware.camera.device@3.4", 57 "android.hardware.camera.device@3.5", 58 "android.hardware.camera.device@3.6", 59 "android.hardware.camera.device@3.7", 60 "camera_platform_flags_c_lib", 61 ], 62 fuzz_config: { 63 cc: [ 64 "android-camera-fwk-eng@google.com", 65 ], 66 componentid: 41727, 67 libfuzzer_options: [ 68 //based on b/187360866 69 "timeout=770", 70 ], 71 hotlists: [ 72 "4593311", 73 ], 74 description: "The fuzzer targets the APIs of libcameraservice", 75 vector: "local_no_privileges_required", 76 service_privilege: "privileged", 77 users: "multi_user", 78 fuzzed_code_usage: "shipped", 79 }, 80} 81 82cc_fuzz { 83 name: "camera_service_fuzzer", 84 srcs: [ 85 "camera_service_fuzzer.cpp", 86 ], 87 defaults: [ 88 "camera_service_fuzzer_defaults" 89 ], 90} 91 92cc_fuzz { 93 name: "camera_service_aidl_fuzzer", 94 srcs: [ 95 "camera_service_aidl_fuzzer.cpp", 96 ], 97 defaults: [ 98 "camera_service_fuzzer_defaults", 99 "service_fuzzer_defaults", 100 "fuzzer_disable_leaks", 101 ], 102 fuzz_config: { 103 triage_assignee: "waghpawan@google.com", 104 }, 105} 106