]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/fuzzer/fuzzer_driver.cpp
ICU-66108.tar.gz
[apple/icu.git] / 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 (file)
index 0000000..820ed85
--- /dev/null
@@ -0,0 +1,20 @@
+// © 2019 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
+
+#include <stddef.h>
+#include <stdint.h>
+
+#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;
+}