1/* 2* Copyright (C) 2023 The Android Open Source Project 3* 4* Licensed under the Apache License, Version 2.0 (the "License"); 5* you may not use this file except in compliance with the License. 6* You may obtain a copy of the License at: 7* 8* http://www.apache.org/licenses/LICENSE-2.0 9* 10* Unless required by applicable law or agreed to in writing, software 11* distributed under the License is distributed on an "AS IS" BASIS, 12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13* See the License for the specific language governing permissions and 14* limitations under the License. 15*/ 16 17cc_defaults { 18 name: "libstagefright_rtsp_fuzzer_defaults", 19 shared_libs: [ 20 "liblog", 21 "libmedia", 22 "libutils", 23 "libstagefright_foundation", 24 ], 25 static_libs: [ 26 "libdatasource", 27 "libstagefright_rtsp", 28 ], 29 header_libs: [ 30 "libstagefright_rtsp_headers", 31 ], 32 fuzz_config: { 33 cc: [ 34 "[email protected]", 35 ], 36 componentid: 155276, 37 hotlists: [ 38 "4593311", 39 ], 40 description: "This fuzzer targets the APIs of libstagefright_rtsp", 41 vector: "local_privileges_required", 42 service_privilege: "privileged", 43 users: "multi_user", 44 fuzzed_code_usage: "shipped", 45 }, 46} 47 48cc_fuzz { 49 name: "sdploader_fuzzer", 50 srcs: [ 51 "sdploader_fuzzer.cpp", 52 ], 53 defaults: [ 54 "libstagefright_rtsp_fuzzer_defaults", 55 ], 56} 57 58cc_fuzz { 59 name: "rtp_writer_fuzzer", 60 srcs: [ 61 "rtp_writer_fuzzer.cpp", 62 ], 63 defaults: [ 64 "libstagefright_rtsp_fuzzer_defaults", 65 ], 66 shared_libs: [ 67 "libandroid_net", 68 "libbase", 69 "libstagefright", 70 "libcutils", 71 ], 72} 73 74cc_fuzz { 75 name: "packet_source_fuzzer", 76 srcs: [ 77 "packet_source_fuzzer.cpp", 78 ], 79 defaults: [ 80 "libstagefright_rtsp_fuzzer_defaults", 81 ], 82} 83 84cc_fuzz { 85 name: "rtsp_connection_fuzzer", 86 srcs: [ 87 "rtsp_connection_fuzzer.cpp", 88 ], 89 shared_libs: [ 90 "libcrypto", 91 "libcutils", 92 "libnetd_client", 93 ], 94 defaults: [ 95 "libstagefright_rtsp_fuzzer_defaults", 96 ], 97} 98