xref: /aosp_15_r20/external/flac/fuzzer/Android.bp (revision 600f14f40d737144c998e2ec7a483122d3776fbc)
1*600f14f4SXin Li/******************************************************************************
2*600f14f4SXin Li *
3*600f14f4SXin Li * Copyright (C) 2020 The Android Open Source Project
4*600f14f4SXin Li *
5*600f14f4SXin Li * Licensed under the Apache License, Version 2.0 (the "License");
6*600f14f4SXin Li * you may not use this file except in compliance with the License.
7*600f14f4SXin Li * You may obtain a copy of the License at:
8*600f14f4SXin Li *
9*600f14f4SXin Li * http://www.apache.org/licenses/LICENSE-2.0
10*600f14f4SXin Li *
11*600f14f4SXin Li * Unless required by applicable law or agreed to in writing, software
12*600f14f4SXin Li * distributed under the License is distributed on an "AS IS" BASIS,
13*600f14f4SXin Li * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*600f14f4SXin Li * See the License for the specific language governing permissions and
15*600f14f4SXin Li * limitations under the License.
16*600f14f4SXin Li *
17*600f14f4SXin Li *****************************************************************************
18*600f14f4SXin Li * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19*600f14f4SXin Li */
20*600f14f4SXin Li
21*600f14f4SXin Lipackage {
22*600f14f4SXin Li    // See: http://go/android-license-faq
23*600f14f4SXin Li    // A large-scale-change added 'default_applicable_licenses' to import
24*600f14f4SXin Li    // all of the 'license_kinds' from "external_flac_license"
25*600f14f4SXin Li    // to get the below license kinds:
26*600f14f4SXin Li    //   SPDX-license-identifier-Apache-2.0
27*600f14f4SXin Li    default_applicable_licenses: ["external_flac_license"],
28*600f14f4SXin Li}
29*600f14f4SXin Li
30*600f14f4SXin Licc_fuzz {
31*600f14f4SXin Li    name: "flac_dec_fuzzer",
32*600f14f4SXin Li    host_supported: true,
33*600f14f4SXin Li
34*600f14f4SXin Li    static_libs: [
35*600f14f4SXin Li        "libFLAC",
36*600f14f4SXin Li    ],
37*600f14f4SXin Li
38*600f14f4SXin Li    srcs: [
39*600f14f4SXin Li        "flac_dec_fuzzer.cpp",
40*600f14f4SXin Li    ],
41*600f14f4SXin Li
42*600f14f4SXin Li    fuzz_config: {
43*600f14f4SXin Li        cc: [
44*600f14f4SXin Li            "[email protected]",
45*600f14f4SXin Li        ],
46*600f14f4SXin Li        componentid: 155276,
47*600f14f4SXin Li        hotlists: [
48*600f14f4SXin Li            "4593311",
49*600f14f4SXin Li        ],
50*600f14f4SXin Li        description: "The fuzzer targets the APIs of libFLAC",
51*600f14f4SXin Li        vector: "remote",
52*600f14f4SXin Li        service_privilege: "constrained",
53*600f14f4SXin Li        users: "multi_user",
54*600f14f4SXin Li        fuzzed_code_usage: "shipped",
55*600f14f4SXin Li    },
56*600f14f4SXin Li}
57*600f14f4SXin Li
58*600f14f4SXin Licc_fuzz {
59*600f14f4SXin Li    name: "flac_enc_fuzzer",
60*600f14f4SXin Li    host_supported: true,
61*600f14f4SXin Li
62*600f14f4SXin Li    header_libs: [
63*600f14f4SXin Li        "libaudioutils_headers",
64*600f14f4SXin Li    ],
65*600f14f4SXin Li
66*600f14f4SXin Li    static_libs: [
67*600f14f4SXin Li        "libFLAC",
68*600f14f4SXin Li        "libaudioutils",
69*600f14f4SXin Li    ],
70*600f14f4SXin Li
71*600f14f4SXin Li    srcs: [
72*600f14f4SXin Li        "flac_enc_fuzzer.cpp",
73*600f14f4SXin Li    ],
74*600f14f4SXin Li
75*600f14f4SXin Li    fuzz_config: {
76*600f14f4SXin Li        cc: [
77*600f14f4SXin Li            "[email protected]",
78*600f14f4SXin Li        ],
79*600f14f4SXin Li        componentid: 155276,
80*600f14f4SXin Li        hotlists: [
81*600f14f4SXin Li            "4593311",
82*600f14f4SXin Li        ],
83*600f14f4SXin Li        description: "The fuzzer targets the APIs of libFLAC",
84*600f14f4SXin Li        vector: "local_no_privileges_required",
85*600f14f4SXin Li        service_privilege: "constrained",
86*600f14f4SXin Li        users: "multi_user",
87*600f14f4SXin Li        fuzzed_code_usage: "shipped",
88*600f14f4SXin Li    },
89*600f14f4SXin Li}
90