aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMitch Phillips <mitchp@google.com>2019-10-16 09:50:45 -0700
committerMitch Phillips <mitchp@google.com>2019-10-24 20:44:36 +0000
commitee770cab5ed672d01d8cd1cdbaa576423d46eeae (patch)
treefdfccdfa54dfca652a87be66889045ef264fe15a /build
parentb033f7d85a279a371c1098affa477614ca70ae31 (diff)
downloadbt-ee770cab5ed672d01d8cd1cdbaa576423d46eeae.tar.gz
Add avrcp_device_fuzz.
This fuzz target exercises the avrcp bluetooth packet parser. Callbacks are basic fakes that do nothing (as generally this is an interaction layer with the JNI). Bug: N/A Test: m avrcp_device_fuzz Change-Id: Ib78ea8cacf2c3ca18f8a515c8b37db2f976930bd
Diffstat (limited to 'build')
-rw-r--r--build/Android.bp27
1 files changed, 22 insertions, 5 deletions
diff --git a/build/Android.bp b/build/Android.bp
index c5ee79f53..32c0f31c0 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -29,9 +29,10 @@ fluoride_defaults {
},
}
+// Fuzzable defaults are the subset of defaults that are used in fuzzing, which
+// requires no shared libraries, and no explicit sanitization.
fluoride_defaults {
- name: "fluoride_types_defaults",
- defaults: ["libchrome_support_defaults"],
+ name: "fluoride_types_defaults_fuzzable",
cflags: [
"-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))",
"-fvisibility=hidden",
@@ -54,15 +55,22 @@ fluoride_defaults {
}
fluoride_defaults {
- name: "fluoride_defaults",
+ name: "fluoride_types_defaults",
+ defaults: [
+ "fluoride_types_defaults_fuzzable",
+ "libchrome_support_defaults"
+ ],
+}
+
+fluoride_defaults {
+ name: "fluoride_defaults_fuzzable",
target: {
android: {
test_config_template: ":BluetoothTestConfigTemplate",
},
},
- defaults: ["fluoride_types_defaults"],
+ defaults: ["fluoride_types_defaults_fuzzable"],
header_libs: ["libbluetooth_headers"],
- shared_libs: ["libstatslog"],
static_libs: [
"libbluetooth-types",
"libbt-platform-protos-lite",
@@ -73,6 +81,15 @@ fluoride_defaults {
},
}
+fluoride_defaults {
+ name: "fluoride_defaults",
+ defaults: ["fluoride_defaults_fuzzable", "fluoride_types_defaults"],
+ shared_libs: ["libstatslog"],
+ sanitize: {
+ misc_undefined: ["bounds"],
+ },
+}
+
// Enables code coverage for a set of source files. Must be combined with
// "clang_coverage_bin" in order to work. See //test/gen_coverage.py for more information
// on generating code coverage.