/* * 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"], } cc_fuzz { name: "content_decryption_fuzzer", srcs: ["content_decryption_fuzzer.cpp"], defaults: ["libcdm_fuzzer_defaults"], } cc_fuzz { name: "system_id_extractor_fuzzer", srcs: ["system_id_extractor_fuzzer.cpp"], defaults: ["libcdm_fuzzer_defaults"], }