1// Copyright (C) 2021 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_visibility: [ 17 "//external/icu:__subpackages__", 18 ], 19 // See: http://go/android-license-faq 20 // A large-scale-change added 'default_applicable_licenses' to import 21 // all of the 'license_kinds' from "external_icu_icu4c_license" 22 // to get the below license kinds: 23 // SPDX-license-identifier-Unicode-DFS 24 default_applicable_licenses: ["external_icu_icu4c_license"], 25} 26 27cc_defaults { 28 name: "libicu_fuzzer_defaults", 29 defaults: ["icu_test_defaults"], 30 srcs: [ 31 "locale_util.cpp", 32 ], 33 fuzz_config: { 34 componentid: 24949, // Bugs are filed to the "Core library" component 35 hotlists: ["930429"], // The hotlist applied on the bug 36 fuzz_on_haiku_device: true, 37 // Email addresses of users who should be CC'd on bugs. 38 cc: [ 39 "vichang@google.com", 40 "g2.corp.android-icu-maintainers@google.com", 41 ], 42 // acknowledged in the Android Security Bulletin for any CVEs found by this fuzz target. 43 acknowledgement: [ 44 "Victor Chang of Google", 45 "ICU Contributors of Google", 46 ], 47 }, 48} 49 50cc_fuzz { 51 name: "libicu_break_iterator_fuzzer", 52 defaults: ["libicu_fuzzer_defaults"], 53 srcs: ["break_iterator_fuzzer.cpp"], 54} 55 56cc_fuzz { 57 name: "libicu_collator_compare_fuzzer", 58 defaults: ["libicu_fuzzer_defaults"], 59 srcs: ["collator_compare_fuzzer.cpp"], 60} 61 62cc_fuzz { 63 name: "libicu_collator_rulebased_fuzzer", 64 defaults: ["libicu_fuzzer_defaults"], 65 srcs: ["collator_rulebased_fuzzer.cpp"], 66 corpus: ["collator_rulebased_fuzzer_seed_corpus.txt"], 67} 68 69cc_fuzz { 70 name: "libicu_converter_fuzzer", 71 defaults: ["libicu_fuzzer_defaults"], 72 srcs: ["converter_fuzzer.cpp"], 73} 74 75cc_fuzz { 76 name: "libicu_locale_fuzzer", 77 defaults: ["libicu_fuzzer_defaults"], 78 srcs: ["locale_fuzzer.cpp"], 79} 80 81cc_fuzz { 82 name: "libicu_number_format_fuzzer", 83 defaults: ["libicu_fuzzer_defaults"], 84 srcs: ["number_format_fuzzer.cpp"], 85} 86 87cc_fuzz { 88 name: "libicu_ucasemap_fuzzer", 89 defaults: ["libicu_fuzzer_defaults"], 90 srcs: ["ucasemap_fuzzer.cpp"], 91} 92 93cc_fuzz { 94 name: "libicu_uloc_canonicalize_fuzzer", 95 defaults: ["libicu_fuzzer_defaults"], 96 srcs: ["uloc_canonicalize_fuzzer.cpp"], 97 corpus: ["uloc_canonicalize_fuzzer_seed_corpus.txt"], 98} 99 100cc_fuzz { 101 name: "libicu_uloc_for_language_tag_fuzzer", 102 defaults: ["libicu_fuzzer_defaults"], 103 srcs: ["uloc_for_language_tag_fuzzer.cpp"], 104 corpus: ["uloc_for_language_tag_fuzzer_seed_corpus.txt"], 105} 106 107cc_fuzz { 108 name: "libicu_uloc_get_name_fuzzer", 109 defaults: ["libicu_fuzzer_defaults"], 110 srcs: ["uloc_get_name_fuzzer.cpp"], 111 corpus: ["uloc_get_name_fuzzer_seed_corpus.txt"], 112} 113 114cc_fuzz { 115 name: "libicu_uloc_is_right_to_left_fuzzer", 116 defaults: ["libicu_fuzzer_defaults"], 117 srcs: ["uloc_is_right_to_left_fuzzer.cpp"], 118 corpus: ["uloc_is_right_to_left_fuzzer_seed_corpus.txt"], 119} 120 121cc_fuzz { 122 name: "libicu_uloc_open_keywords_fuzzer", 123 defaults: ["libicu_fuzzer_defaults"], 124 srcs: ["uloc_open_keywords_fuzzer.cpp"], 125 corpus: ["uloc_open_keywords_fuzzer_seed_corpus.txt"], 126} 127 128cc_fuzz { 129 name: "libicu_unicode_string_codepage_create_fuzzer", 130 defaults: ["libicu_fuzzer_defaults"], 131 srcs: ["unicode_string_codepage_create_fuzzer.cpp"], 132} 133 134cc_fuzz { 135 name: "libicu_uregex_open_fuzzer", 136 defaults: ["libicu_fuzzer_defaults"], 137 srcs: ["uregex_open_fuzzer.cpp"], 138 dictionary: "uregex_open_fuzzer.dict", 139} 140