1// Copyright (C) 2021 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 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_fuzz { 20 name: "fmq_fuzzer", 21 22 srcs: [ 23 "fmq_fuzzer.cpp", 24 ], 25 26 target: { 27 darwin: { 28 enabled: false, 29 }, 30 }, 31 32 static_libs: [ 33 "libfmq", 34 "android.hardware.common.fmq-V1-ndk", 35 ], 36 37 shared_libs: [ 38 "libbase", 39 "libcutils", 40 "libhidlbase", 41 "liblog", 42 "libutils", 43 ], 44 45 fuzz_config: { 46 cc: [ 47 "[email protected]", 48 "[email protected]", 49 ], 50 componentid: 655781, 51 libfuzzer_options: [ 52 "max_len=50000", 53 ], 54 use_for_presubmit: true, 55 }, 56 sanitize: { 57 integer_overflow: true, 58 }, 59 60 host_supported: true, 61} 62