Added policy_engine_fuzzer
exec/s: 600 Test: ./policy_engine_fuzzer Bug: 265234582 Change-Id: I1be1f040cfef4d8c7f80de92f26b2e086327658e
This commit is contained in:
committed by
Akshata Kadam
parent
d9b24af07f
commit
2ce71b64be
71
fuzzer/Android.bp
Normal file
71
fuzzer/Android.bp
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright (C) 2023 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at:
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
cc_defaults {
|
||||
name: "libcdm_fuzzer_defaults",
|
||||
cflags: [
|
||||
"-DDYNAMIC_ADAPTER",
|
||||
],
|
||||
static_libs: [
|
||||
"libcdm",
|
||||
"libcdm_protos",
|
||||
"libcdm_utils",
|
||||
"libwvlevel3",
|
||||
"libwv_odk",
|
||||
"libjsmn",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcrypto",
|
||||
"libprotobuf-cpp-lite",
|
||||
"libbinder_ndk",
|
||||
"liblog",
|
||||
"libbase",
|
||||
"libutils",
|
||||
],
|
||||
include_dirs: [
|
||||
"vendor/widevine/libwvdrmengine/cdm/core/include",
|
||||
"vendor/widevine/libwvdrmengine/cdm/metrics/include",
|
||||
"vendor/widevine/libwvdrmengine/cdm/util/include",
|
||||
"vendor/widevine/libwvdrmengine/cdm/include",
|
||||
"vendor/widevine/libwvdrmengine/oemcrypto/include",
|
||||
"vendor/widevine/libwvdrmengine/oemcrypto/odk/include",
|
||||
"external/jsmn",
|
||||
"external/protobuf/src"
|
||||
],
|
||||
header_libs: ["libutils_headers"],
|
||||
fuzz_config: {
|
||||
cc: [
|
||||
"android-media-fuzzing-reports@google.com",
|
||||
],
|
||||
componentid: 59148,
|
||||
untrusted_data: true,
|
||||
critical: false,
|
||||
hotlists: ["4593311"],
|
||||
description: "The fuzzers target the APIs of all widevine modules",
|
||||
vector: "local_no_privileges_required",
|
||||
service_privilege: "privileged",
|
||||
users: "single_user",
|
||||
fuzzed_code_usage: "shipped"
|
||||
},
|
||||
proprietary: true,
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "policy_engine_fuzzer",
|
||||
srcs: ["policy_engine_fuzzer.cpp"],
|
||||
defaults: ["libcdm_fuzzer_defaults"],
|
||||
}
|
||||
Reference in New Issue
Block a user