Copy submitted odk fuzzing changes from cdm repository to android
Merging odk changes from http://go/wvgerrit/98084 Copy submitted changes for oemcrypto/odk/test/fuzzing from cdm repository to android so that fuzzer scripts in odk can be run using go/android-fuzzing Google3 CLs: http://cl/301943247 http://cl/304011238 http://cl/307142293 http://cl/307087692 Bug: 150900870 Test: The fuzzer scripts can be built once the code is moved to android tree. Odk fuzzer scripts have been verified and successfully running in google3 Change-Id: I92b8a357c32b145c7f80bdc93d05214862368957
This commit is contained in:
168
libwvdrmengine/oemcrypto/odk/test/fuzzing/Android.bp
Normal file
168
libwvdrmengine/oemcrypto/odk/test/fuzzing/Android.bp
Normal file
@@ -0,0 +1,168 @@
|
||||
// Copyright 2020 Google LLC. All rights reserved. This file and proprietary
|
||||
// source code may only be used and distributed under the Widevine Master
|
||||
// License Agreement.
|
||||
|
||||
cc_defaults {
|
||||
name: "odk_fuzz_library_defaults",
|
||||
srcs: [
|
||||
"odk_fuzz_helper.cpp",
|
||||
],
|
||||
include_dirs: [
|
||||
"vendor/widevine/libwvdrmengine/oemcrypto/odk/test",
|
||||
"vendor/widevine/libwvdrmengine/oemcrypto/odk/include",
|
||||
"vendor/widevine/libwvdrmengine/oemcrypto/odk/src",
|
||||
],
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_license_request_fuzz",
|
||||
srcs: [
|
||||
"odk_license_request_fuzz.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/license_request_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_renewal_request_fuzz",
|
||||
srcs: [
|
||||
"odk_renewal_request_fuzz.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/renewal_request_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_provisioning_request_fuzz",
|
||||
srcs: [
|
||||
"odk_provisioning_request_fuzz.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/provisioning_request_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_license_response_fuzz",
|
||||
srcs: [
|
||||
"odk_license_response_fuzz.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/license_response_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_renewal_response_fuzz",
|
||||
srcs: [
|
||||
"odk_renewal_response_fuzz.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/renewal_response_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_provisioning_response_fuzz",
|
||||
srcs: [
|
||||
"odk_provisioning_response_fuzz.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/provisioning_response_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_license_response_fuzz_with_mutator",
|
||||
srcs: [
|
||||
"odk_license_response_fuzz_with_mutator.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/license_response_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_renewal_response_fuzz_with_mutator",
|
||||
srcs: [
|
||||
"odk_renewal_response_fuzz_with_mutator.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/renewal_response_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "odk_provisioning_response_fuzz_with_mutator",
|
||||
srcs: [
|
||||
"odk_provisioning_response_fuzz_with_mutator.cpp",
|
||||
],
|
||||
fuzz_config: {
|
||||
componentid: 425099,
|
||||
},
|
||||
corpus: ["corpus/arm64/provisioning_response_corpus/*"],
|
||||
static_libs: [
|
||||
"libwv_kdo",
|
||||
"libwv_odk",
|
||||
],
|
||||
defaults: ["odk_fuzz_library_defaults"],
|
||||
proprietary: true,
|
||||
}
|
||||
Reference in New Issue
Block a user