aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/libchewing/chewing_random_init_fuzzer.c
diff options
context:
space:
mode:
authorGravatar Mike Aizatsky <mike.aizatsky@gmail.com>2016-11-29 10:55:25 -0800
committerGravatar Mike Aizatsky <mike.aizatsky@gmail.com>2016-11-29 10:55:25 -0800
commita143b9b39a51412d133f846688194d68fe4197ba (patch)
tree936eb7e6c320fb7066f0da416727ebab8ce4668c /projects/libchewing/chewing_random_init_fuzzer.c
parent330c900781b1a8abde12e5478bb85854da48afc2 (diff)
[infra] renaming targets/ to projects/
Diffstat (limited to 'projects/libchewing/chewing_random_init_fuzzer.c')
-rw-r--r--projects/libchewing/chewing_random_init_fuzzer.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/projects/libchewing/chewing_random_init_fuzzer.c b/projects/libchewing/chewing_random_init_fuzzer.c
new file mode 100644
index 00000000..e0d755f7
--- /dev/null
+++ b/projects/libchewing/chewing_random_init_fuzzer.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+#include "chewing_fuzzer_common.h"
+
+int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
+ fuzz_input = fuzz_ptr = data;
+ fuzz_size = size;
+
+ const char* stress_argv[] = {
+ "./chewing_fuzzer", "-loop", "1", "-init", NULL,
+ };
+ stress_main(sizeof(stress_argv) / sizeof(stress_argv[0]) - 1,
+ (char**)stress_argv);
+ return 0;
+}