blob: d346cd71df41b2a5bfc98626e502aed6c75f82d7 [file] [log] [blame]
Max Spectorace90bd2019-10-21 11:40:43 -07001/*
2 * Copyright 2019 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 */
Tom Cherryf2774a02020-06-19 14:01:16 -070016
17cc_defaults {
18 name: "log_fuzzer_defaults",
Max Spector0c9d4882019-10-21 11:40:43 -070019 static_libs: [
20 "libbase",
21 "libcutils",
22 "libselinux",
23 "liblog",
24 "liblogd",
25 "libcutils",
Tom Cherry1a796bc2020-05-13 09:28:37 -070026 "libz",
27 "libzstd",
Max Spector0c9d4882019-10-21 11:40:43 -070028 ],
Tom Cherryf2774a02020-06-19 14:01:16 -070029 cflags: ["-Wextra"],
30 host_supported: true,
31}
32
33cc_fuzz {
34 name: "log_buffer_log_fuzzer",
35 defaults: ["log_fuzzer_defaults"],
36 srcs: [
37 "log_buffer_log_fuzzer.cpp",
38 ],
39}
40
41cc_fuzz {
42 name: "serialized_log_buffer_fuzzer",
43 defaults: ["log_fuzzer_defaults"],
44 srcs: [
45 "serialized_log_buffer_fuzzer.cpp",
46 ],
Tom Cherryb07e3392020-06-24 11:47:49 -070047 corpus: [
48 "corpus/logentry_use_after_compress",
49 ]
Max Spector0c9d4882019-10-21 11:40:43 -070050}