blob: 56a3c89d34812b58282beaa62818011d0c501762 [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
22 defaults: [
23 "libbinder_ndk_host_user",
24 ],
25
26 srcs: [
27 "fmq_fuzzer.cpp",
28 ],
29
30 static_libs: [
31 "libfmq",
Jiyong Park1f6baeb2021-08-04 12:48:09 +090032 "android.hardware.common.fmq-V1-ndk",
Devin Moored6836692021-03-31 15:10:44 -070033 ],
34
35 shared_libs: [
36 "libbase",
37 "libcutils",
38 "libhidlbase",
39 "liblog",
40 "libutils",
41 ],
42
43 fuzz_config: {
44 cc: [
45 "devinmoore@google.com",
46 "smoreland@google.com",
47 ],
48 componentid: 655781,
49 libfuzzer_options: [
50 "max_len=50000",
51 ],
Devin Moored6836692021-03-31 15:10:44 -070052 },
53
54 host_supported: true,
55
56 sanitize: {
Devin Moored6836692021-03-31 15:10:44 -070057 scs: true,
58 cfi: true,
Devin Mooref78c0282021-09-07 18:53:53 +000059 address: true,
Devin Moored6836692021-03-31 15:10:44 -070060 memtag_heap: true,
61 // undefined behavior is expected
62 all_undefined: false,
63 // integer overflow is expected
64 integer_overflow: false,
65 },
66}