X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/a01113dcd0f39d5da295ef82785beff9ed86fe38..340931cb2e044a2141d11567dd0f782524e32994:/icuSources/test/fuzzer/fuzzer_driver.cpp diff --git a/icuSources/test/fuzzer/fuzzer_driver.cpp b/icuSources/test/fuzzer/fuzzer_driver.cpp new file mode 100644 index 00000000..820ed85a --- /dev/null +++ b/icuSources/test/fuzzer/fuzzer_driver.cpp @@ -0,0 +1,20 @@ +// © 2019 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +#include +#include + +#include "cmemory.h" + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size); + +int main(int argc, char* argv[]) +{ + (void) argc; + (void) argv; + const char *fuzzer_data = "abc123"; + + LLVMFuzzerTestOneInput((const uint8_t *) fuzzer_data, strlen(fuzzer_data)); + + return 0; +}