Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 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 | |
| 15 | package { |
| 16 | default_visibility: [ |
| 17 | "//external/icu:__subpackages__", |
| 18 | ], |
| 19 | } |
| 20 | |
| 21 | cc_defaults { |
| 22 | name: "libicu_fuzzer_defaults", |
| 23 | defaults: ["icu_test_defaults"], |
| 24 | srcs: [ |
| 25 | "locale_util.cpp", |
| 26 | ], |
| 27 | fuzz_config: { |
| 28 | componentid: 24949, // Bugs are filed to the "Core library" component |
| 29 | hotlists: ["930429"], // The hotlist applied on the bug |
Kris Alder | c229268 | 2021-02-08 22:25:00 +0000 | [diff] [blame^] | 30 | fuzz_on_haiku_device: false, |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 31 | // Email addresses of users who should be CC'd on bugs. |
| 32 | cc: [ |
| 33 | "vichang@google.com", |
| 34 | "g2.corp.android-icu-maintainers@google.com", |
| 35 | ], |
| 36 | // acknowledged in the Android Security Bulletin for any CVEs found by this fuzz target. |
| 37 | acknowledgement: [ |
| 38 | "Victor Chang of Google", |
| 39 | "ICU Contributors of Google", |
| 40 | ], |
| 41 | }, |
| 42 | } |
| 43 | |
| 44 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 45 | name: "libicu_break_iterator_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 46 | defaults: ["libicu_fuzzer_defaults"], |
| 47 | srcs: ["break_iterator_fuzzer.cpp"], |
| 48 | } |
| 49 | |
| 50 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 51 | name: "libicu_collator_compare_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 52 | defaults: ["libicu_fuzzer_defaults"], |
| 53 | srcs: ["collator_compare_fuzzer.cpp"], |
| 54 | } |
| 55 | |
| 56 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 57 | name: "libicu_collator_rulebased_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 58 | defaults: ["libicu_fuzzer_defaults"], |
| 59 | srcs: ["collator_rulebased_fuzzer.cpp"], |
| 60 | corpus: ["collator_rulebased_fuzzer_seed_corpus.txt"], |
| 61 | } |
| 62 | |
| 63 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 64 | name: "libicu_converter_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 65 | defaults: ["libicu_fuzzer_defaults"], |
| 66 | srcs: ["converter_fuzzer.cpp"], |
| 67 | } |
| 68 | |
| 69 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 70 | name: "libicu_locale_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 71 | defaults: ["libicu_fuzzer_defaults"], |
| 72 | srcs: ["locale_fuzzer.cpp"], |
| 73 | } |
| 74 | |
| 75 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 76 | name: "libicu_number_format_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 77 | defaults: ["libicu_fuzzer_defaults"], |
| 78 | srcs: ["number_format_fuzzer.cpp"], |
| 79 | } |
| 80 | |
| 81 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 82 | name: "libicu_ucasemap_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 83 | defaults: ["libicu_fuzzer_defaults"], |
| 84 | srcs: ["ucasemap_fuzzer.cpp"], |
| 85 | } |
| 86 | |
| 87 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 88 | name: "libicu_uloc_canonicalize_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 89 | defaults: ["libicu_fuzzer_defaults"], |
| 90 | srcs: ["uloc_canonicalize_fuzzer.cpp"], |
| 91 | corpus: ["uloc_canonicalize_fuzzer_seed_corpus.txt"], |
| 92 | } |
| 93 | |
| 94 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 95 | name: "libicu_uloc_for_language_tag_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 96 | defaults: ["libicu_fuzzer_defaults"], |
| 97 | srcs: ["uloc_for_language_tag_fuzzer.cpp"], |
| 98 | corpus: ["uloc_for_language_tag_fuzzer_seed_corpus.txt"], |
| 99 | } |
| 100 | |
| 101 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 102 | name: "libicu_uloc_get_name_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 103 | defaults: ["libicu_fuzzer_defaults"], |
| 104 | srcs: ["uloc_get_name_fuzzer.cpp"], |
| 105 | corpus: ["uloc_get_name_fuzzer_seed_corpus.txt"], |
| 106 | } |
| 107 | |
| 108 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 109 | name: "libicu_uloc_is_right_to_left_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 110 | defaults: ["libicu_fuzzer_defaults"], |
| 111 | srcs: ["uloc_is_right_to_left_fuzzer.cpp"], |
| 112 | corpus: ["uloc_is_right_to_left_fuzzer_seed_corpus.txt"], |
| 113 | } |
| 114 | |
| 115 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 116 | name: "libicu_uloc_open_keywords_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 117 | defaults: ["libicu_fuzzer_defaults"], |
| 118 | srcs: ["uloc_open_keywords_fuzzer.cpp"], |
| 119 | corpus: ["uloc_open_keywords_fuzzer_seed_corpus.txt"], |
| 120 | } |
| 121 | |
| 122 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 123 | name: "libicu_unicode_string_codepage_create_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 124 | defaults: ["libicu_fuzzer_defaults"], |
| 125 | srcs: ["unicode_string_codepage_create_fuzzer.cpp"], |
| 126 | } |
| 127 | |
| 128 | cc_fuzz { |
Victor Chang | d078d9d | 2021-02-01 22:42:59 +0000 | [diff] [blame] | 129 | name: "libicu_uregex_open_fuzzer", |
Victor Chang | f0828de | 2021-01-29 18:30:04 +0000 | [diff] [blame] | 130 | defaults: ["libicu_fuzzer_defaults"], |
| 131 | srcs: ["uregex_open_fuzzer.cpp"], |
| 132 | dictionary: "uregex_open_fuzzer.dict", |
| 133 | } |