blob: 3fab93696f93625204f9349f73ebf2a7d70ab930 [file] [log] [blame]
Akshatha Mohanfac19e52022-05-25 10:01:14 +05301/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17cc_defaults {
18 name: "libmediandk_fuzzer_defaults",
19 shared_libs: [
20 "libandroid_runtime_lazy",
21 "libbase",
22 "libdatasource",
23 "libmedia",
24 "libmediadrm",
25 "libmedia_omx",
26 "libmedia_jni_utils",
27 "libstagefright",
28 "libstagefright_foundation",
29 "liblog",
30 "libutils",
31 "libcutils",
32 "libnativewindow",
33 "libhidlbase",
34 "libgui",
35 "libui",
36 "libmediandk",
37 ],
38 static_libs: [
39 "libmediandk_utils",
40 "libnativehelper_lazy",
41 ],
42 header_libs: [
43 "media_ndk_headers",
44 ],
45 fuzz_config: {
46 cc: [
47 "android-media-fuzzing-reports@google.com",
48 ],
49 componentid: 155276,
50 },
51}
52
53cc_fuzz {
54 name: "ndk_crypto_fuzzer",
55 srcs: ["ndk_crypto_fuzzer.cpp"],
56 defaults: ["libmediandk_fuzzer_defaults"],
57}
kunal rai78809382022-05-18 11:51:21 +053058
59cc_fuzz {
60 name: "ndk_image_reader_fuzzer",
61 srcs: [
62 "ndk_image_reader_fuzzer.cpp",
63 ],
64 shared_libs: [
65 "android.hidl.token@1.0-utils",
66 "android.hardware.graphics.bufferqueue@1.0",
67 ],
68 cflags: [
69 "-D__ANDROID_VNDK__",
70 ],
71 defaults: ["libmediandk_fuzzer_defaults"],
72}
Devendra Singhid8d908d2022-05-31 11:26:57 +053073
74cc_fuzz {
75 name: "ndk_extractor_fuzzer",
76 srcs: ["ndk_extractor_fuzzer.cpp"],
77 defaults: ["libmediandk_fuzzer_defaults"],
78 shared_libs: ["libbinder_ndk",],
79 corpus: ["corpus/*"],
80}
Aditya Wazir321b7c72022-05-18 11:12:36 +053081
82cc_fuzz {
83 name: "ndk_mediaformat_fuzzer",
84 srcs: ["ndk_mediaformat_fuzzer.cpp"],
85 defaults: ["libmediandk_fuzzer_defaults",],
86}
Akshata Kadame9eca472022-05-23 13:15:11 +053087
88cc_fuzz {
89 name: "ndk_drm_fuzzer",
90 srcs: ["ndk_drm_fuzzer.cpp"],
91 defaults: ["libmediandk_fuzzer_defaults",],
92}
Aditya Wazir18b6f5a2022-05-16 11:13:16 +053093
94cc_fuzz {
95 name: "ndk_mediamuxer_fuzzer",
96 srcs: ["ndk_mediamuxer_fuzzer.cpp"],
97 defaults: ["libmediandk_fuzzer_defaults"],
98 shared_libs: ["libbinder_ndk",],
99}
Akshata Kadam25956352022-06-08 18:43:03 +0530100
101cc_fuzz {
102 name: "ndk_sync_codec_fuzzer",
103 srcs: [
104 "ndk_sync_codec_fuzzer.cpp",
105 "NdkMediaCodecFuzzerBase.cpp",
106 ],
107 header_libs: ["libnativewindow_headers",],
108 defaults: ["libmediandk_fuzzer_defaults",],
109}