1// Copyright 2020 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_av_services_camera_libcameraservice_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: [ 22 "frameworks_av_services_camera_libcameraservice_license", 23 ], 24} 25 26cc_defaults { 27 name: "libcameraservice_fuzz_defaults", 28 fuzz_config: { 29 cc: [ 30 "[email protected]", 31 ], 32 componentid: 41727, 33 hotlists: [ 34 "4593311", 35 ], 36 description: "The fuzzer targets the APIs of libcameraservice", 37 vector: "local_no_privileges_required", 38 service_privilege: "privileged", 39 users: "multi_user", 40 fuzzed_code_usage: "shipped", 41 }, 42} 43 44cc_fuzz { 45 name: "libcameraservice_distortion_mapper_fuzzer", 46 defaults: ["libcameraservice_fuzz_defaults"], 47 srcs: [ 48 "DistortionMapperFuzzer.cpp", 49 ], 50 shared_libs: [ 51 "camera_platform_flags_c_lib", 52 "libcamera_client", 53 "libcameraservice", 54 ], 55} 56 57cc_fuzz { 58 name: "libcameraservice_depth_processor_fuzzer", 59 defaults: ["libcameraservice_fuzz_defaults"], 60 srcs: [ 61 "DepthProcessorFuzzer.cpp", 62 ], 63 shared_libs: [ 64 "camera_platform_flags_c_lib", 65 "libcameraservice", 66 ], 67 corpus: ["corpus/*.jpg"], 68} 69