blob: 9916246d4fc6049f55f1b2525a875c5cd01ffa31 [file] [log] [blame]
Devendra Singhid29be4a2022-06-08 11:06:56 +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 */
Bob Badour03d50522022-10-06 11:54:34 -070016package {
17 default_applicable_licenses: ["system_core_init_license"],
18}
19
Devendra Singhid29be4a2022-06-08 11:06:56 +053020cc_defaults {
Nikita Ioffea66adf42023-06-26 14:55:31 +010021 name: "libinit_fuzzer_defaults",
Devendra Singhid29be4a2022-06-08 11:06:56 +053022 static_libs: [
23 "libc++fs",
24 "liblmkd_utils",
25 "libmodprobe",
26 "libprotobuf-cpp-lite",
27 "libpropertyinfoparser",
28 "libsnapshot_init",
29 "libinit",
30 ],
31 shared_libs: [
32 "libbase",
33 "libfs_mgr",
34 "libhidl-gen-utils",
Devendra Singhid29be4a2022-06-08 11:06:56 +053035 "liblog",
36 "libprocessgroup",
37 "libselinux",
38 ],
39 header_libs: ["libinit_headers"],
40 fuzz_config: {
41 cc: [
42 "android-media-fuzzing-reports@google.com",
43 ],
44 componentid: 155276,
45 },
46}
47
48cc_fuzz {
49 name: "init_parser_fuzzer",
50 srcs: [
51 "init_parser_fuzzer.cpp",
52 ],
53 shared_libs: ["libhidlmetadata",],
54 defaults: [
Nikita Ioffea66adf42023-06-26 14:55:31 +010055 "libinit_fuzzer_defaults",
Devendra Singhid29be4a2022-06-08 11:06:56 +053056 ],
57}
Akshata Kadam2ae76712022-04-26 09:52:28 +053058
59cc_fuzz {
60 name: "init_property_fuzzer",
61 srcs: [
62 "init_property_fuzzer.cpp",
63 ],
Nikita Ioffea66adf42023-06-26 14:55:31 +010064 defaults: ["libinit_fuzzer_defaults"],
Akshata Kadam2ae76712022-04-26 09:52:28 +053065}
kunal rai803b5f42022-03-16 11:20:41 +053066
67cc_fuzz {
68 name: "init_ueventHandler_fuzzer",
69 srcs: [
70 "init_ueventHandler_fuzzer.cpp",
71 ],
72 defaults: [
Nikita Ioffea66adf42023-06-26 14:55:31 +010073 "libinit_fuzzer_defaults",
kunal rai803b5f42022-03-16 11:20:41 +053074 ],
75}