blob: 0926c0976911a12b8f92f6a79d004b1b5bd321a6 [file] [log] [blame]
Devin Moored6836692021-03-31 15:10:44 -07001// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badour9354c342021-04-21 14:37:45 -070015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Devin Moored6836692021-03-31 15:10:44 -070019cc_fuzz {
20 name: "fmq_fuzzer",
21
Devin Moored6836692021-03-31 15:10:44 -070022 srcs: [
23 "fmq_fuzzer.cpp",
24 ],
25
Steven Moreland2c37e102022-01-07 22:27:45 +000026 target: {
27 darwin: {
28 enabled: false,
29 },
30 },
31
Devin Moored6836692021-03-31 15:10:44 -070032 static_libs: [
33 "libfmq",
Jiyong Park1f6baeb2021-08-04 12:48:09 +090034 "android.hardware.common.fmq-V1-ndk",
Devin Moored6836692021-03-31 15:10:44 -070035 ],
36
37 shared_libs: [
38 "libbase",
39 "libcutils",
40 "libhidlbase",
41 "liblog",
42 "libutils",
43 ],
44
45 fuzz_config: {
46 cc: [
47 "devinmoore@google.com",
48 "smoreland@google.com",
49 ],
50 componentid: 655781,
51 libfuzzer_options: [
52 "max_len=50000",
53 ],
Devin Moored6836692021-03-31 15:10:44 -070054 },
55
56 host_supported: true,
57
58 sanitize: {
Devin Moored6836692021-03-31 15:10:44 -070059 scs: true,
60 cfi: true,
Devin Mooref78c0282021-09-07 18:53:53 +000061 address: true,
Devin Moored6836692021-03-31 15:10:44 -070062 memtag_heap: true,
63 // undefined behavior is expected
64 all_undefined: false,
65 // integer overflow is expected
66 integer_overflow: false,
67 },
68}