]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/fuzzer/fuzzer_driver.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / test / fuzzer / fuzzer_driver.cpp
1 // © 2019 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3
4 #include <stddef.h>
5 #include <stdint.h>
6
7 #include "cmemory.h"
8
9 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);
10
11 int main(int argc, char* argv[])
12 {
13 (void) argc;
14 (void) argv;
15 const char *fuzzer_data = "abc123";
16
17 LLVMFuzzerTestOneInput((const uint8_t *) fuzzer_data, strlen(fuzzer_data));
18
19 return 0;
20 }