Max Spector | ace90bd | 2019-10-21 11:40:43 -0700 | [diff] [blame] | 1 | /* |
| 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 Cherry | f2774a0 | 2020-06-19 14:01:16 -0700 | [diff] [blame] | 16 | |
| 17 | cc_defaults { |
| 18 | name: "log_fuzzer_defaults", |
Max Spector | 0c9d488 | 2019-10-21 11:40:43 -0700 | [diff] [blame] | 19 | static_libs: [ |
| 20 | "libbase", |
| 21 | "libcutils", |
| 22 | "libselinux", |
| 23 | "liblog", |
| 24 | "liblogd", |
| 25 | "libcutils", |
Tom Cherry | 1a796bc | 2020-05-13 09:28:37 -0700 | [diff] [blame] | 26 | "libz", |
| 27 | "libzstd", |
Max Spector | 0c9d488 | 2019-10-21 11:40:43 -0700 | [diff] [blame] | 28 | ], |
Tom Cherry | f2774a0 | 2020-06-19 14:01:16 -0700 | [diff] [blame] | 29 | cflags: ["-Wextra"], |
| 30 | host_supported: true, |
| 31 | } |
| 32 | |
| 33 | cc_fuzz { |
| 34 | name: "log_buffer_log_fuzzer", |
| 35 | defaults: ["log_fuzzer_defaults"], |
| 36 | srcs: [ |
| 37 | "log_buffer_log_fuzzer.cpp", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | cc_fuzz { |
| 42 | name: "serialized_log_buffer_fuzzer", |
| 43 | defaults: ["log_fuzzer_defaults"], |
| 44 | srcs: [ |
| 45 | "serialized_log_buffer_fuzzer.cpp", |
| 46 | ], |
Tom Cherry | b07e339 | 2020-06-24 11:47:49 -0700 | [diff] [blame] | 47 | corpus: [ |
| 48 | "corpus/logentry_use_after_compress", |
| 49 | ] |
Max Spector | 0c9d488 | 2019-10-21 11:40:43 -0700 | [diff] [blame] | 50 | } |