1/******************************************************************************
2 *
3 * Copyright (C) 2020 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_license"
25    // to get the below license kinds:
26    //   SPDX-license-identifier-Apache-2.0
27    default_applicable_licenses: ["frameworks_av_license"],
28}
29
30cc_defaults {
31    name: "mpeg4_h263_dec_fuzz_defaults",
32
33    host_supported: true,
34
35    srcs: [
36        "mpeg4_h263_dec_fuzzer.cpp",
37    ],
38
39    static_libs: [
40        "libstagefright_m4vh263dec",
41        "liblog",
42    ],
43
44    cflags: [
45        "-DOSCL_IMPORT_REF=",
46    ],
47
48    fuzz_config: {
49        cc: [
50            "android-media-fuzzing-reports@google.com",
51        ],
52        componentid: 155276,
53        hotlists: [
54            "4593311",
55        ],
56        description: "The fuzzers target the APIs of libstagefright_m4vh263dec library",
57        vector: "remote",
58        service_privilege: "constrained",
59        users: "multi_user",
60        fuzzed_code_usage: "shipped",
61    },
62}
63
64cc_fuzz {
65    name: "mpeg4_dec_fuzzer",
66
67    defaults: [
68        "mpeg4_h263_dec_fuzz_defaults",
69    ],
70
71    cflags: [
72        "-DMPEG4",
73    ],
74}
75
76cc_fuzz {
77    name: "h263_dec_fuzzer",
78
79    defaults: [
80        "mpeg4_h263_dec_fuzz_defaults",
81    ],
82}
83
84cc_defaults {
85    name: "mpeg4_h263_enc_fuzz_defaults",
86
87    host_supported: true,
88
89    srcs: ["mpeg4_h263_enc_fuzzer.cpp"],
90
91    shared_libs: [
92        "libutils",
93        "liblog",
94    ],
95
96    static_libs: [
97        "libstagefright_m4vh263enc",
98    ],
99
100    cflags: [
101        "-Wall",
102        "-Werror",
103    ],
104    fuzz_config: {
105        cc: [
106            "android-media-fuzzing-reports@google.com",
107        ],
108        componentid: 155276,
109        hotlists: [
110            "4593311",
111        ],
112        description: "The fuzzers target the APIs of libstagefright_m4vh263enc library",
113        vector: "local_no_privileges_required",
114        service_privilege: "constrained",
115        users: "multi_user",
116        fuzzed_code_usage: "shipped",
117    },
118}
119
120cc_fuzz {
121    name: "mpeg4_enc_fuzzer",
122
123    defaults: [
124        "mpeg4_h263_enc_fuzz_defaults",
125    ],
126
127    cflags: ["-DMPEG4"],
128}
129
130cc_fuzz {
131    name: "h263_enc_fuzzer",
132
133    defaults: [
134        "mpeg4_h263_enc_fuzz_defaults",
135    ],
136}
137